Advertisement
Guest User

zemicoords i zemicoordsigrac

a guest
Nov 20th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. CMD:zemicoords(playerid, params[])
  2. {
  3. new Float:X, Float:Y, Float:Z;
  4. new stringce[126];
  5. GetPlayerPos(playerid, X, Y, Z);
  6. format(stringce, sizeof(stringce), "Tvoite koordinati se:\nX: %f\nY: %f\nZ: %f;", X, Y, Z);
  7. SendClientMessage(playerid, -1, stringce);
  8. return 1;
  9. }
  10.  
  11. CMD:zemicoordsigrac(playerid, params[])
  12. {
  13. new Float:X, Float:Y, Float:Z;
  14. new stringce2[126], id;
  15.  
  16. if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
  17. {
  18. if(sscanf(params, "i", id)) return SendClientMessage(playerid, -1, "{FFEA02}KORISTI: {FFFFFF}/zemicoordsigrac [ID na igracot]"
  19. GetPlayerPos(id, X, Y, Z);
  20. format(stringce2, sizeof(stringce2), "Koordinati na igracot %s se:\nX: %f\nY: %f\nZ: %f;", id, X, Y, Z);
  21. SendClientMessage(playerid, -1, stringce2);
  22. }
  23. else
  24. {
  25. SendClientMessage(playerid, -1, "{FF0000}GRESKA: {FFFFFF}Ne ste ovlasteni za ovaa komanda");
  26. }
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement