Advertisement
Akc3n7

Speed

Feb 10th, 2023
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.82 KB | None | 0 0
  1. #include < amxmodx >
  2. #include < fun >
  3. #include < cstrike >
  4.  
  5. #define VIP_FLAG ADMIN_LEVEL_H
  6.  
  7. new const g_weapons[] = { CSW_P228, CSW_SCOUT, CSW_XM1014, CSW_MAC10, CSW_AUG, CSW_ELITE, CSW_FIVESEVEN, CSW_UMP45, CSW_SG550,  CSW_GALI, CSW_GALIL,
  8. CSW_FAMAS, CSW_USP, CSW_GLOCK18, CSW_AWP, CSW_MP5NAVY, CSW_M249, CSW_M3, CSW_M4A1, CSW_TMP, CSW_G3SG1, CSW_DEAGLE, CSW_SG552, CSW_AK47, CSW_P90 }
  9.  
  10. public plugin_init() {
  11.    
  12.         register_plugin( "Speed", "1.0", "A k c 3 n 7" );
  13.     register_event( "CurWeapon","CheckWeapon","be","1=1" );
  14. }
  15.  
  16. public CheckWeapon( id ) {
  17.    
  18.     new Weapon;
  19.     Weapon = get_user_weapon(id);
  20.    
  21.     for (new i = 0; i < sizeof (g_weapons); i++)
  22.     if( Weapon == g_weapons[i] ) {
  23.        
  24.         if( is_user_alive( id ) && get_user_flags( id ) & VIP_FLAG ) {
  25.            
  26.                set_user_maxspeed(id, 350.0 );
  27.         }
  28.     }
  29. }  
  30.  
  31.  
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement