wopox3

Money

Jan 4th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.54 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <reapi>
  3.  
  4. public plugin_init()
  5. {
  6.     RegisterHookChain(RG_CBasePlayer_AddAccount, "CBasePlayer_AddAccount", .post = false)
  7. }
  8. public CBasePlayer_AddAccount(const index, amount, RewardType:type, bool:bTrackChange)
  9. {
  10.     if(type == RT_ENEMY_KILLED)
  11.     {
  12.         SetHookChainArg(2, ATYPE_INTEGER, 1);
  13.        
  14.         log_amx("RewardType:RT_ENEMY_KILLED");
  15.     }
  16.     else
  17.     {
  18.         SetHookChainArg(2, ATYPE_INTEGER, get_user_frags(index))
  19.         SetHookChainArg(4, ATYPE_INTEGER, false)
  20.        
  21.         log_amx("RewardType: other");
  22.     }
  23.  
  24.     return HC_OVERRIDE
  25. }
Add Comment
Please, Sign In to add comment