Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < amxmodx >
- #include < fun >
- #include < cstrike >
- #define VIP_FLAG ADMIN_LEVEL_H
- 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,
- 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 }
- public plugin_init() {
- register_plugin( "Speed", "1.0", "A k c 3 n 7" );
- register_event( "CurWeapon","CheckWeapon","be","1=1" );
- }
- public CheckWeapon( id ) {
- new Weapon;
- Weapon = get_user_weapon(id);
- for (new i = 0; i < sizeof (g_weapons); i++)
- if( Weapon == g_weapons[i] ) {
- if( is_user_alive( id ) && get_user_flags( id ) & VIP_FLAG ) {
- set_user_maxspeed(id, 350.0 );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement