13.04.2009, 17:22
Hey, for my RP server, I want the command /showmebank to take the player infront of the bank to show them where it is, but they cant move, and when they are done, they can do /takemeback and it will take them back to where they were... I am a noob scripter and I came up with this but it returns errors.
(thats saying 0,0,0, is the bank, (as test))
thanks
Код:
if(strcmp(cmd,"/showmebank", true) ==0) { GetPlayerPos(playerid, Float:x, Float:y, Float:z); SetPlayerPos(playerid, 0,0,0) SetPlayerControllable(playerid, 0) } else if(strcmp(cmd,"/takemeback", true) ==0) { SetPlayerPos(playerid, x, y, z); return 1; }
thanks