07.07.2011, 16:03
Quote:
How does Deliver(playerid) be called?
By a timer? If yes, you'll need to use SetTimerEx instead of SetTimer, to pass the variables. pawn Код:
|
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
new playervehicleid = GetPlayerVehicleID(playerid);
if(ObjectiveReached) return;
if(playervehicleid == OBJECTIVE_VEHICLE && gTeam[playerid] == TEAM_ATTACKERS)
{
SendClientMessageToAll(COLOR_WHITE,"Attackers Win!");
ObjectiveReached = 1;
SetTimerEx("Deliver",500,false,"i",playerid);
}
return;
}