09.02.2018, 01:34
This is more optimized. Why?
- Your loop do : 0 to 1000 but I'm pretty sure you don't have 1000 players on your server
- You are checking admin level for people doesn't exist
- This one loop through 0 to the highest player id
- It check if the player is connected or not
You can even add && !IsPlayerNPC(i) if you have bots on your server.
- Your loop do : 0 to 1000 but I'm pretty sure you don't have 1000 players on your server
- You are checking admin level for people doesn't exist
- This one loop through 0 to the highest player id
- It check if the player is connected or not
You can even add && !IsPlayerNPC(i) if you have bots on your server.