IsPlayerConnected
#1

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?
Reply
#2

Servers can be hacked, and commands can be executed by third-party-apps, after what I've heard.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)