Posts: 3,351
Threads: 780
Joined: Jan 2010
Hi all.
I need to do a script that check if there are more than 70 players online and he active a function that i decide.
Example: When server reach 70 players,the script will auto give weapon etc.
Thanks
Posts: 23
Threads: 8
Joined: Mar 2010
Reputation:
0
new pCount
OnPlayerConnect
pCount++;
if(pCount == 70)
{
ActivateLogitech90'sFunction();
}
OnPlayerDisconnect
pCount--;
Might help u..
Posts: 3,351
Threads: 780
Joined: Jan 2010
Thanks guys!
I've another question..
I've inserted a GameTextForPlayer with text (CRAZY HOUR ACTIVE)
And i need to show until server has 70 players,if we reach 69 players,the text will hide.
How to?
Thanks alot.
Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by Lutsen
U want to show it when there are 70 players online??
Код:
if(pCount == 70)
{
GameTextForPlayer(blablabla);
}
|
Yeah,and when there are 69 players,the text will hide.
And a loop again if reach 70 players.