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=550302)
IsPlayerConnected -
BoU3A - 12.12.2014
Hello is this right to check if two player are connected
PHP код:
if(!IsPlayerConnected(player1 || player2))
?
Re: IsPlayerConnected -
Divergent - 12.12.2014
Код:
if(IsPlayerConnected(player1) || IsPlayerConnected(player2))
This will check if either of the 2 are connected
Код:
if(IsPlayerConnected(player1) && IsPlayerConnected(player2))
This will check if
both are connected.