Advertisement
ObtiMus

Untitled

Jul 28th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. public plugin_cfg()
  5. {
  6. register_message(get_user_msgid("StatusIcon"), "Message_StatusIcon");
  7. }
  8.  
  9. public Message_StatusIcon(iMsgId, iMsgDest, id)
  10. {
  11. static szIcon[8];
  12. get_msg_arg_string(2, szIcon, charsmax(szIcon));
  13. if( equal(szIcon, "buyzone") )
  14. {
  15. if( get_msg_arg_int(1) )
  16. {
  17. set_pdata_int(id, 235, get_pdata_int(id, 235) & ~(1<<0));
  18. return PLUGIN_HANDLED;
  19. }
  20. }
  21.  
  22. return PLUGIN_CONTINUE;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement