Advertisement
Guest User

gotocoords

a guest
Nov 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. CMD:gotocoords(playerid, params[])
  2. {
  3. new Float:X, Float:Y, Float:Z;
  4.  
  5. if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
  6. {
  7. if(sscanf(params, "fff", X, Y, Z)) return SendClientMessage(playerid, -1, "{FFEA02}KORISTI: {FFFFFF}/gotocoords [X coords] [Y coords] [Z coords]");
  8. SetPlayerPos(playerid, X, Y, Z);
  9. SendClientMessage(playerid, -1, "{FF0000}INFO: {FFFFFF}Se teleportiravte do vasite koordinati!");
  10. }
  11. else
  12. {
  13. SendClientMessage(playerid, -1, "{FF0000}GRESKA: {FFFFFF}Ne ste ovlasteni za ovaa komanda");
  14. }
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement