Textdraw problem
#6

It's simple as this:
pawn Код:
new PlayersAliveOnTeam[2];

public OnPlayerDisconnect(playerid, reason)
{
    if(IsPlayerAlive(playerid))
    {
        PlayersAliveOnTeam[player's team] --;
    }
    return 1;
}

public OnPlayerSpawn(playerid)
{
    PlayersAliveOnTeam[player'
s team] ++;
    return 1;
}

public OnPlayerDeath(playerid)
{
    PlayersAliveOnTeam[player's team] --;
    return 1;
}
Replace "player's team" for the ID of the team a player is in.

0 = Team A
1 = Team B
2 = Total Amount of Teams
Reply


Messages In This Thread
Textdraw problem - by Crystallize - 02.01.2016, 23:05
Re: Textdraw problem - by Joron - 02.01.2016, 23:18
Re: Textdraw problem - by Crystallize - 02.01.2016, 23:24
Re: Textdraw problem - by Joron - 02.01.2016, 23:26
Re: Textdraw problem - by justinnater - 03.01.2016, 00:44
Re: Textdraw problem - by SickAttack - 03.01.2016, 01:06
Re: Textdraw problem - by Crystallize - 03.01.2016, 01:19
Re: Textdraw problem - by justinnater - 03.01.2016, 01:31
Re: Textdraw problem - by SickAttack - 03.01.2016, 02:28
Re: Textdraw problem - by Crystallize - 03.01.2016, 10:46

Forum Jump:


Users browsing this thread: 3 Guest(s)