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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IsPlayerConnected (
/showthread.php?tid=173363)
IsPlayerConnected -
||123|| - 02.09.2010
What is this function for? I mean, I see in some of the game modes the author uses if(IsPlayerConnected(playerid)) in every command...obviously when the player enters the command he is already connected to the server, then?
Re: IsPlayerConnected -
LarzI - 02.09.2010
Servers can be hacked, and commands can be executed by third-party-apps, after what I've heard.
Re: IsPlayerConnected -
woot - 02.09.2010
That was needed back in SAMP 0.1 (afaik), kicked players still could use commands. It's completely useless to check if player who uses the command is connected. Godfather has that, that's why mostlikely every edit has it too.