08.06.2015, 02:44
You can use funcidx just incase some one don't want to use few callbacks, they won't require it to be included in their code.
I don't like your Ammo change method. Looping for all slots (12) in OnPlayerUpdate. Actually you can simply use GetPlayerAmmo and store it in a variable in OnPlayerSpawn and then make checks in OnPlayerUpdate.
And just a tip, use break once you have what you want in your loop.
You can use static so that no one can edit it outside from include.
OnPlayerNameChange
OnPlayerFreezeStateChange
The most useless ones i will ever use
BTW, i thought this was something new than this!
E: For some reason, i don't see your hooking?
I don't like your Ammo change method. Looping for all slots (12) in OnPlayerUpdate. Actually you can simply use GetPlayerAmmo and store it in a variable in OnPlayerSpawn and then make checks in OnPlayerUpdate.
And just a tip, use break once you have what you want in your loop.
pawn Code:
new PlayerUpdateInfo[MAX_PLAYERS][UpdateData];
new PlayerFPSInfo[MAX_PLAYERS][FPSData];
OnPlayerNameChange
OnPlayerFreezeStateChange
The most useless ones i will ever use
BTW, i thought this was something new than this!
E: For some reason, i don't see your hooking?