02.02.2012, 20:44
Hello, guys!
And all I need is how to do that if player is not in that Checkpoint so the timer should end? I hope you understand me, thanks for any help
pawn Код:
if(gTeam[playerid] == TEAM_BLUE || TEAM_GREEN) // Guessing the Blue team is defined as this
{
if(Checkpoint)
{
SendClientMessage(playerid,OBJECTIVE_COLOR,"Wait 20 seconds.");
SetTimerEx("SetZone",20000,false,"i",playerid);
}
}
pawn Код:
forward SetZone(playerid);
public SetZone(playerid)
{
SendClientMessage(playerid, OBJECTIVE_COLOR, "You have captured the flag.");
return 1;
}