Player online - 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: Player online (
/showthread.php?tid=276947)
Player online -
Speed - 15.08.2011
What is function to check how many players are online
Re: Player online -
DeathOnaStick - 15.08.2011
Quote:
Originally Posted by Speed
What is function to check how many players are online
|
pawn Код:
GetOnlinePlayers(){
new tmp=0;
for(new i=0; i<=MAX_PLAYERS; i++){
if(IsPlayerConnected(i))
tmp++;}
return tmp;
}
I scripted it by hand here now, untested, let me know if it worked.
AW: Player online -
Forbidden - 15.08.2011
But if you do that ,you should do it in a Textdraw ,Textdrawstrings or you do it with SendClientMessageToAll