fix (baseevents/deathevents): use GetConvarInt instead of hardcoded 32 for GetPlayerByEntityID(id).#214
fix (baseevents/deathevents): use GetConvarInt instead of hardcoded 32 for GetPlayerByEntityID(id).#214IdrisDose wants to merge 1 commit intocitizenfx:masterfrom
Conversation
…2 for GetPlayerByEntityID(id).
|
Would it not be better to just use GetActivePlayers? |
If you use onesync infinity, GetActivePlayers will only return the players "around you", not everyone My PR #211 fix that on a lot of these resources |
|
This is the case no matter what you do on the client, they will always only get the players in their scope, using sv_maxclients to iterate doesn't magically get around that |
Using convar as you do will also return only the player in your scope |
When did this misleading thing spread?! :/ |
|
Closing due to better solution from #199 |
This should hopefully remedy people needing to edit their base resources to listen for base death events.