Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:zemicoords(playerid, params[])
- {
- new Float:X, Float:Y, Float:Z;
- new stringce[126];
- GetPlayerPos(playerid, X, Y, Z);
- format(stringce, sizeof(stringce), "Tvoite koordinati se:\nX: %f\nY: %f\nZ: %f;", X, Y, Z);
- SendClientMessage(playerid, -1, stringce);
- return 1;
- }
- CMD:zemicoordsigrac(playerid, params[])
- {
- new Float:X, Float:Y, Float:Z;
- new stringce2[126], id;
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
- {
- if(sscanf(params, "i", id)) return SendClientMessage(playerid, -1, "{FFEA02}KORISTI: {FFFFFF}/zemicoordsigrac [ID na igracot]"
- GetPlayerPos(id, X, Y, Z);
- format(stringce2, sizeof(stringce2), "Koordinati na igracot %s se:\nX: %f\nY: %f\nZ: %f;", id, X, Y, Z);
- SendClientMessage(playerid, -1, stringce2);
- }
- else
- {
- SendClientMessage(playerid, -1, "{FF0000}GRESKA: {FFFFFF}Ne ste ovlasteni za ovaa komanda");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement