04.02.2015, 23:03
I want do, at /find command, checkpoint follow target.
I try this. I do a timer.
new connect_timer[MAX_PLAYERS];
At command.
connect_timer[playerid] = SetTimerEx("FINDING", 5000, true, "i",giveplayerid, playerid);
At finish is KillTimer and DisablePlayerCheckpoint.
I try this. I do a timer.
new connect_timer[MAX_PLAYERS];
At command.
connect_timer[playerid] = SetTimerEx("FINDING", 5000, true, "i",giveplayerid, playerid);
At finish is KillTimer and DisablePlayerCheckpoint.
Код:
forward FINDING(giveplayerid, playerid);
public (giveplayerid, playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(giveplayerid, X,Y,Z);
SetPlayerCheckpoint(playerid, X,Y,Z, 6);
}

