14.08.2015, 19:58
Script
the cmd is supposed to work like the following: i write the x/y/z position and i get teleported there , i tested it with /setpos 0 0 0 and it worked , but when i do anything other than 0 0 0 i still teleport to 0 0 0 any help ?
Thanks
Код:
CMD:setpos(playerid,params[]) { if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,0xFF0000FF,"<!>You are not authorized to use this command!"); new Float:x,Float:y,Float:z; if(sscanf(params,"uii",x,y,z))return SendClientMessage(playerid,COL_GREEN,"USAGE: /setpos [x] [y] [z]"); SetPlayerPos(playerid,x,y,z); return 1; }
Thanks