P1xeL

Print Money

Jun 21st, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.55 KB | None | 0 0
  1. #include < amxmodx >
  2. #include < cstrike >
  3.  
  4. new gMoneyPrint
  5.  
  6. public plugin_init()
  7. {
  8.     register_plugin("Print Money", "v1", "xDrugz")
  9.    
  10.     gMoneyPrint = register_cvar( "amx_printmoney", "1" )
  11.     register_event("HLTV", "EventNewRound", "a", "1=0", "2=0")
  12. }
  13. public EventNewRound( )
  14. {
  15.     if ( get_pcvar_num( gMoneyPrint ) )
  16.     {
  17.         ActionPrintChat( 1 )
  18.     }
  19. }
  20. public ActionPrintChat( id )
  21. {
  22.     if ( is_user_alive( id ) )
  23.     {
  24.         new pMoney = cs_get_user_money( id )
  25.         client_cmd(id, "say_team %d $", pMoney)
  26.     }
  27. }
Add Comment
Please, Sign In to add comment