#2

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.
or you can use Iterator

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.
Reply


Messages In This Thread
HELP - by nbx2000 - 15.12.2018, 01:20
Re: HELP - by UFF - 15.12.2018, 02:33
Re: HELP - by nbx2000 - 15.12.2018, 18:18
Re: HELP - by UFF - 16.12.2018, 04:46
Re: HELP - by GeorgeLimit - 16.12.2018, 04:53
Re: HELP - by UFF - 16.12.2018, 05:02
Re: HELP - by GeorgeLimit - 16.12.2018, 05:09
Re: HELP - by UFF - 16.12.2018, 05:11
Re: HELP - by GeorgeLimit - 16.12.2018, 05:20
Re: HELP - by UFF - 16.12.2018, 05:43

Forum Jump:


Users browsing this thread: 3 Guest(s)