CheezPuff

Console Command brings free 'weapons'

Oct 19th, 2014
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.74 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include < amxmodx >
  4. #include < cstrike >
  5. #include < fun >
  6.  
  7. #define PLUGIN "New Plug-In"
  8. #define VERSION "1.0"
  9. #define AUTHOR "CheezPuff aka Fuck For Fun ;]"
  10.  
  11. public plugin_init() {
  12.         register_plugin(PLUGIN, VERSION, AUTHOR)
  13.        
  14.         register_concmd("guns", "giveguns");
  15.                
  16. }
  17.  
  18. public giveguns( client )
  19. {
  20.     if( !( get_user_flags( client ) & ADMIN_IMMUNITY ) )
  21.     {
  22.         return PLUGIN_HANDLED;
  23.     }
  24.    
  25.     give_item(client, "weapon_m4a1");
  26.     give_item(client, "weapon_ak47");
  27.     give_item(client, "weapon_deagle");
  28.     cs_set_user_bpammo(client, CSW_M4A1, 120);
  29.     cs_set_user_bpammo(client, CSW_AK47, 120);
  30.     cs_set_user_bpammo(client, CSW_AK47, 120);
  31.    
  32.     return PLUGIN_HANDLED;
  33. }
Add Comment
Please, Sign In to add comment