/* Plugin generated by AMXX-Studio */ #include #include #include #include #include #include #define PLUGIN "VIP" #define VERSION "1.0" #define AUTHOR "xxx" new bool:dojump[33] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1); register_event("ResetHUD", "resetModel", "b"); register_event("DeathMSG", "eventDeath", "a"); return PLUGIN_CONTINUE } public plugin_precache(){ precache_model("models/player/fragusievip/fragusievip.mdl"); precache_model("models/player/fragusievip/dipsy.mdl"); precache_generic("models/player/fragusievip/dipsyT.mdl"); } public Fwd_PlayerSpawn_Post(id) { if (get_user_flags(id) & ADMIN_LEVEL_H) { if(cs_get_user_team(id) == CS_TEAM_CT) { give_item(id, "weapon_elite") give_item(id,"ammo_9mm") give_item(id,"ammo_9mm") give_item(id,"ammo_9mm") give_item(id,"ammo_9mm") set_user_health (id, 120) cs_set_user_model (id, "fragusievip") } if(cs_get_user_team(id) == CS_TEAM_T) { give_item(id, "weapon_hegrenade") give_item(id, "weapon_flashbang") set_user_health (id, 155) set_user_armor (id, 100) cs_set_user_model (id, "dipsy") } } } public eventDeath() { new ofiara = read_data(2); if(cs_get_user_team(ofiara) == CS_TEAM_CT) { set_task(3.0, "odrodzenie", ofiara); client_print(id, print_chat, "Odrodzisz sie za 3 sekundy!"); } } public odrodzenie(id) ExecuteHamB(Ham_CS_RoundRespawn, id);