#include #include #include #include #include new bool:g_Vip[33], gRound=0, weapon_id; public plugin_init(){ register_plugin("VIP Ultimate", "5.1.0.2", "benio101 & speedkill"); RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1); register_event("HLTV", "event_new_round", "a", "1=0", "2=0"); register_logevent("GameCommencing", 2, "1=Game_Commencing"); } public client_authorized(id){ if(get_user_flags(id) & 524288 == 524288){ client_authorized_vip(id); } } public client_authorized_vip(id){ g_Vip[id]=true; } public client_disconnect(id){ if(g_Vip[id]){ client_disconnect_vip(id); } } public client_disconnect_vip(id){ g_Vip[id]=false; } public SpawnedEventPre(id){ if(g_Vip[id]){ if(is_user_alive(id)){ SpawnedEventPreVip(id); } } } public event_new_round(){ ++gRound; } public GameCommencing(){ gRound=0; } public SpawnedEventPreVip(id){ if(gRound<=3){ if(gRound>=1){ if(get_user_team(id)%1){ give_item(id, "weapon_glock18"); give_item(id, "ammo_9mm"); weapon_id=find_ent_by_owner(-1, "weapon_glock18", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 20); cs_set_user_bpammo(id, CSW_GLOCK18, 120); } } } }