SA-MP Forums Archive
no 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)
+--- Thread: no player online (/showthread.php?tid=510929)



no player online - AroseKhanNiazi - 03.05.2014

how to get that there is no other player online expect the player who uses the command (any command)


Re: no player online - EpicMan - 03.05.2014

make a sendclientmessage or gametextforplayer should fix your problem


Re: no player online - AroseKhanNiazi - 03.05.2014

i mean how to get if there is anyother player online


Re: no player online - PrivatioBoni - 03.05.2014

Global variable.
Increment by one on connect, decrement by one on disconnect.

If the online count is 1 (and obviously that 1 person is the command executor), then SendClientMessage.


Re: no player online - iBanner - 03.05.2014

Count online players

https://sampforum.blast.hk/showthread.php?tid=314001