SA-MP Forums Archive
howww???? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: howww???? (/showthread.php?tid=127477)



howww???? - Ricop522 - 13.02.2010

Could give me a system for when you are 50 players online, send a message to the server:
50 Online games mortal congratulations!


Re: howww???? - xCoder - 13.02.2010

Top of the your mod

pawn Код:
new onlineplayers = 0;
To OnPlayerConnect:

pawn Код:
public OnPlayerConnect(playerid)
{
onlineplayers++;
if(onlineplayers == 50) { return SendClientMessageToAll(0xFFFF00FF,"50 Online games mortal congratulations!"); }
return 1;
}
)
To OnPlayerDisconnect:

pawn Код:
public OnPlayerDisconnect(playerid)
{
onlineplayers--;
return 1;
}
)