Help With Checkpoints
#2

Try something like this
pawn Код:
new players_in_checkpoint;
public OnPlayerEnterCheckpoint(playerid)
{
    GameTextForPlayer(playerid,"~R~You have reached the control centre",4000,3);
    SendClientMessageToAll(COLOR_RED,"One of the Attackers has Reached The Control Centre");
    GivePlayerMoney(playerid, 0);
    DisablePlayerCheckpoint(playerid);

    if (++players_in_checkpoint == 5)
        //there are 5 players in checkpoint, do your next action

     return 1;
}
Reply


Messages In This Thread
Help With Checkpoints - by borg245 - 30.03.2009, 19:03
Re: Help With Checkpoints - by Nubotron - 31.03.2009, 03:51
Re: Help With Checkpoints - by Mikep - 31.03.2009, 04:44
Re: Help With Checkpoints - by borg245 - 31.03.2009, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)