04.03.2019, 11:06
pawn Код:
new CountPUBGPlayers = -1;
pawn Код:
CountPUBGPlayers ++;
pawn Код:
CountPUBGPlayers ---;
pawn Код:
new string[10];
format(string, sizeof string, "%d alive", CountPUBGPlayers);
If you want to restrict and allowing PUBG event just when X players are joined, you can do:
pawn Код:
#define MIN_PLAYERS_REQUIRED 5 //(Change it as your needs)
pawn Код:
CMD:pubg(playerid)
{
if(CountPUBGPlayers < MIN_REQUIRED_PLAYERS) return SendClientMessage("#MIN_REQUIRED_PLAYERS" players are neeeded to join PUBG event.");
return 1;
}