Alive Textdraw Help
#3

pawn Код:
new CountPUBGPlayers = -1;
When someone joins PUBG event:

pawn Код:
CountPUBGPlayers ++;
When someone dies/left:

pawn Код:
CountPUBGPlayers ---;
Showing players alive:

pawn Код:
new string[10];
format(string, sizeof string, "%d alive", CountPUBGPlayers);
Now it's up to you on how update the textdraw.

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)
If you have a command to join the PUBG event, then:

pawn Код:
CMD:pubg(playerid)
{
     if(CountPUBGPlayers < MIN_REQUIRED_PLAYERS) return SendClientMessage("#MIN_REQUIRED_PLAYERS" players are neeeded to join PUBG event.");
     return 1;
}
Reply


Messages In This Thread
Alive Textdraw Help - by RJTabish - 04.03.2019, 08:15
Re: Alive Textdraw Help - by masuzaron - 04.03.2019, 09:37
Re: Alive Textdraw Help - by SymonClash - 04.03.2019, 11:06
Re: Alive Textdraw Help - by RJTabish - 04.03.2019, 15:15
Re: Alive Textdraw Help - by TheToretto - 04.03.2019, 15:56
Re: Alive Textdraw Help - by RJTabish - 04.03.2019, 16:13
Re: Alive Textdraw Help - by Pottus - 04.03.2019, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)