Checkpoint (for a team)
#5

You can also create some kind of pickup where a player can go on and off duty.
When the player goes on duty, set an array to 1 for example.
You can then loop trough players and send a message to whoever is on fire fighter duty.

PHP код:
new FireFighterDuty[MAX_PLAYERS];
    for(new 
i=0i<GetMaxPlayers(); i++)
    {
        if(
FireFighterDuty[i] == 1)
        {
            
SetPlayerCheckpoint(i,,1);
            
SendClientMessage(i, -1"A fire has been reported! A waypoint has been set on your map.");
        }
    } 
So whenever a player goes on fire duty, this is what you need to do with the value of the array.

PHP код:
FireFighterDuty[playerid] = 1
And when the player turns off the duty

PHP код:
FireFighterDuty[playerid] = 0
Reply


Messages In This Thread
Checkpoint (for a team) - by Astonish - 27.01.2018, 11:02
Re: Checkpoint (for a team) - by Sting. - 27.01.2018, 11:07
Re: Checkpoint (for a team) - by Astonish - 27.01.2018, 11:12
Re: Checkpoint (for a team) - by Sew_Sumi - 27.01.2018, 12:10
Re: Checkpoint (for a team) - by jasperschellekens - 27.01.2018, 13:07
Re: Checkpoint (for a team) - by Astonish - 28.01.2018, 09:27
Re: Checkpoint (for a team) - by iSteve - 28.01.2018, 09:32
Re: Checkpoint (for a team) - by Astonish - 28.01.2018, 10:32
Re: Checkpoint (for a team) - by JesterlJoker - 28.01.2018, 10:34
Re: Checkpoint (for a team) - by Astonish - 28.01.2018, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)