Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <reapi>
- public plugin_init()
- {
- RegisterHookChain(RG_CBasePlayer_AddAccount, "CBasePlayer_AddAccount", .post = false)
- }
- public CBasePlayer_AddAccount(const index, amount, RewardType:type, bool:bTrackChange)
- {
- if(type == RT_ENEMY_KILLED)
- {
- SetHookChainArg(2, ATYPE_INTEGER, 1);
- log_amx("RewardType:RT_ENEMY_KILLED");
- }
- else
- {
- SetHookChainArg(2, ATYPE_INTEGER, get_user_frags(index))
- SetHookChainArg(4, ATYPE_INTEGER, false)
- log_amx("RewardType: other");
- }
- return HC_OVERRIDE
- }
Add Comment
Please, Sign In to add comment