/find command
#1

hello,
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 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
Reply


Messages In This Thread
/find command - by morha12 - 30.04.2013, 04:16
Re: /find command - by morha12 - 30.04.2013, 14:40
Re : /find command - by DaTa[X] - 30.04.2013, 14:45
Re: /find command - by Babul - 30.04.2013, 14:52
Re: /find command - by morha12 - 30.04.2013, 15:15
Re: /find command - by morha12 - 30.04.2013, 16:11
Re: /find command - by morha12 - 01.05.2013, 13:46
Re: /find command - by morha12 - 02.05.2013, 04:15

Forum Jump:


Users browsing this thread: 1 Guest(s)