IsPlayerConnected - 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: IsPlayerConnected (
/showthread.php?tid=638621)
IsPlayerConnected -
Bussyman - 03.08.2017
Hi,
IsPlayerConnected, i can check any number, or there is limit?
Re: IsPlayerConnected -
Suttix - 03.08.2017
IsPlayerConnected it is boolean and just can be 0 or 1 (0-false | 1-true)
Re: IsPlayerConnected -
Vince - 03.08.2017
Sorry, but why do you keep asking all these nonsensical questions? A player is either connected, or he's not. There is no third option.
Re: IsPlayerConnected -
Bussyman - 03.08.2017
Yes, but is there limit what player i can check, id depends what max_players i set or what in server.cfg i set max players, or i can give any id?
Re: IsPlayerConnected -
Misiur - 03.08.2017
You can even check IsPlayerConnected(cellmax + 1) and nothing bad will happen. If it wasn't safe all gamemodes would gain 3 times the code they have to do sanity checks