IsPlayerConnected
#1

Hi,

IsPlayerConnected, i can check any number, or there is limit?
Reply
#2

IsPlayerConnected it is boolean and just can be 0 or 1 (0-false | 1-true)
Reply
#3

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)