15.12.2018, 02:33
pawn Код:
new PlayersInMG = 0; // PlayersInMG will be your players count in minigun game and should be used in the textdraw
// In Command
CMD:minigun(playerid)
{
//When Player join minigun
PlayersInMG++; // This will increase count of the players who join the minigun game.
return 1;
}
//In exit Command
CMD:exitminigun(playerid)
{
//When player leave the minigun
PlayersInMG--; // This will decrease count of the players who join the minigun game.
return 1;
}
// You have to use PlayersInMG to Set the TextdrawString for Minigun players.
pawn Код:
new Iterator:PlayerInMG<MAX_PLAYERS>;
// In Command
CMD:minigun(playerid)
{
//When Player join minigun
Iter_Add(PlayerInMG, playerid );
return 1;
}
//In exit Command
CMD:exitminigun(playerid)
{
//When player leave the minigun
Iter_Remove( PlayerInMG, playerid );
return 1;
}
// You have to use Iter_Count(PlayerInCNR); to Set the TextdrawString for Minigun players.