Posts: 159
Threads: 103
Joined: Apr 2017
Reputation:
0
Hi,
IsPlayerConnected, i can check any number, or there is limit?
Posts: 63
Threads: 12
Joined: Jul 2017
Reputation:
0
IsPlayerConnected it is boolean and just can be 0 or 1 (0-false | 1-true)
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.
Posts: 159
Threads: 103
Joined: Apr 2017
Reputation:
0
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?
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
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