IsPlayerConnected
#5

I have once experienced a 'hack' or cheat of some sort, where there was a player who was apparently not even existent, but he was still speaking through main chat. We couldn't kick him or anything because we had 'IsPlayerConnected' checks in our commands, which kept telling us the player we were trying to kick did not exist. He had no player name, but he was taking up a player id. To this day, I still don't know what he was using, or whether this is even possible any more. I see no harm in having it, but preferably, I would still keep that check.

Rather than having an 'IsPlayerConnected' check in every single command, just put it at the top of your 'OnPlayerCommandText' or 'OnPlayerCommandReceived' (if using zcmd) callbacks.
pawn Код:
if(!IsPlayerConnected(playerid)) return 1;
Reply


Messages In This Thread
IsPlayerConnected - by Mauricee - 10.07.2015, 21:06
Re: IsPlayerConnected - by JaydenJason - 10.07.2015, 21:08
Re: IsPlayerConnected - by Mauricee - 10.07.2015, 21:36
Re: IsPlayerConnected - by 025Tadija - 10.07.2015, 21:37
Re: IsPlayerConnected - by Threshold - 10.07.2015, 21:46
Re: IsPlayerConnected - by Vince - 10.07.2015, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)