Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/pos", true) == 0 || strcmp(cmd, "/position", true) == 0)
- {
- new Float:x, Float:y, Float:z, Float:a;
- if(IsPlayerInAnyVehicle(playerid)){GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);GetVehicleZAngle(GetPlayerVehicleID(playerid), a);}
- else{GetPlayerPos(playerid, x, y, z);GetPlayerFacingAngle(playerid, a);}
- format(string, sizeof(string), "%f, %f, %f, %f", x, y, z, a);
- SendClientMessage(playerid, COLOR_RED, string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment