30.04.2013, 04:16
hello,
i am need help with building a command.
the code is:
i am a new scripter..
i want that the command will show me the player with check point and after we doing the command again its will disable the check point...
sorry for my bad english..
thanx for helpers
i am need help with building a command.
the code is:
Код HTML:
new hfind CMD:hfind(playerid,params[]) { if(!IsPlayerAdmin(playerid)) return 1;//Rcon admin if(hfind = true) { new targetid; new Float:x, Float:y, Float:z; if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, -1, "Usage: /hfind (ID) "); GetPlayerPos(targetid, x, y, z); SetPlayerCheckpoint(playerid, x, y, z, 6.0); SetTimerEx("findPlayer", 1000, 1, "ii", targetid, playerid); } else if(hfind = false) { DisablePlayerCheckpoint(playerid); return 1; }
i want that the command will show me the player with check point and after we doing the command again its will disable the check point...
sorry for my bad english..
thanx for helpers