06.11.2010, 08:51
How can i check if a player is last alive in the mission and reward him 5000k.
New PlayerTotalVar;
new PlayerVar[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
PlayerTotalVar++;
PlayerVar[playerid] = 1;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
PlayerTotalVar--;
return 1;
}
forward TimeName(playerid);
public TimeName(playerid)
{
if(PlayerTotalVar == 1 && PlayerVar[playerid] == 1)
{
GivePlayerMoney....
}
return 1;
}