[Poszukuje] Vip'a na Serwer DD2/INF+As...
Adzio 03.07.2013
Witam poszukuje pluginu Vipa na Serwer DD2/INF+Asysty
Co ma posiadać VIP:
Wybór broni:
M4A1+Deagle i all granaty
AK47+Deagle i all granaty
Famas+Deagle i all granaty
Galil+Deagle i all granaty
AWP+Deagle i all granaty
Shotgun automatyczny+Deagle i all granaty
Krowa+Deagle i all granaty.
Dodatkowe informacje:
Podwójny Skok
20 HP za Head Shoot
10 HP za normalny kill
Inny wygląd dla Vipa
Jak pisze w Say'u to zeby pisalo [VIP] Nick: Tekst
i w Tabeli Punktów żeby pisało VIP.
Proszę o plik sma i amxx. proszę kto by mógł zrobić m itego VIP'a bardzo go potrzebuje.
Użytkownik Adzio edytował ten post 03.07.2013 17:23
Co ma posiadać VIP:
Wybór broni:
M4A1+Deagle i all granaty
AK47+Deagle i all granaty
Famas+Deagle i all granaty
Galil+Deagle i all granaty
AWP+Deagle i all granaty
Shotgun automatyczny+Deagle i all granaty
Krowa+Deagle i all granaty.
Dodatkowe informacje:
Podwójny Skok
20 HP za Head Shoot
10 HP za normalny kill
Inny wygląd dla Vipa
Jak pisze w Say'u to zeby pisalo [VIP] Nick: Tekst
i w Tabeli Punktów żeby pisało VIP.
Proszę o plik sma i amxx. proszę kto by mógł zrobić m itego VIP'a bardzo go potrzebuje.
Użytkownik Adzio edytował ten post 03.07.2013 17:23
Chinczyk
04.07.2013
#include <amxmodx> #include <cstrike> #include <engine> #include <fakemeta> #include <fun> #include <hamsandwich> new bool:g_Vip[33], menu, menu_callback_handler, skoki[33], weapon_id; public plugin_init(){ register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill"); register_forward(FM_CmdStart, "CmdStartPre"); RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1); register_event("DeathMsg", "DeathMsg", "a"); } 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 CmdStartPre(id, uc_handle){ if(g_Vip[id]){ if(is_user_alive(id)){ CmdStartPreVip(id, uc_handle); } } } public CmdStartPreVip(id, uc_handle){ new flags = pev(id, pev_flags); if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]>0){ --skoki[id]; new Float:velocity[3]; pev(id, pev_velocity,velocity); velocity[2] = random_float(265.0,285.0); set_pev(id,pev_velocity,velocity); } else if(flags & FL_ONGROUND && skoki[id]!=-1){ skoki[id] = 1; } } public SpawnedEventPre(id){ if(g_Vip[id]){ if(is_user_alive(id)){ SpawnedEventPreVip(id); } } } public SpawnedEventPreVip(id){ skoki[id]=1; show_vip_menu(id); } public menu_1_handler(id){ new henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0); give_item(id, "weapon_hegrenade"); ++henum; new fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0); give_item(id, "weapon_flashbang"); ++fbnum; cs_set_user_bpammo(id, CSW_FLASHBANG, 2); new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0); give_item(id, "weapon_smokegrenade"); ++sgnum; give_item(id, "weapon_deagle"); give_item(id, "ammo_50ae"); weapon_id=find_ent_by_owner(-1, "weapon_deagle", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 7); cs_set_user_bpammo(id, CSW_DEAGLE, 35); give_item(id, "weapon_m4a1"); give_item(id, "ammo_556nato"); weapon_id=find_ent_by_owner(-1, "weapon_m4a1", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 30); cs_set_user_bpammo(id, CSW_M4A1, 90); } public menu_2_handler(id){ new henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0); give_item(id, "weapon_hegrenade"); ++henum; new fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0); give_item(id, "weapon_flashbang"); ++fbnum; cs_set_user_bpammo(id, CSW_FLASHBANG, 2); new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0); give_item(id, "weapon_smokegrenade"); ++sgnum; give_item(id, "weapon_deagle"); give_item(id, "ammo_50ae"); weapon_id=find_ent_by_owner(-1, "weapon_deagle", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 7); cs_set_user_bpammo(id, CSW_DEAGLE, 35); give_item(id, "weapon_ak47"); give_item(id, "ammo_762nato"); weapon_id=find_ent_by_owner(-1, "weapon_ak47", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 30); cs_set_user_bpammo(id, CSW_AK47, 90); } public menu_3_handler(id){ new henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0); give_item(id, "weapon_hegrenade"); ++henum; new fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0); give_item(id, "weapon_flashbang"); ++fbnum; cs_set_user_bpammo(id, CSW_FLASHBANG, 2); new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0); give_item(id, "weapon_smokegrenade"); ++sgnum; give_item(id, "weapon_deagle"); give_item(id, "ammo_50ae"); weapon_id=find_ent_by_owner(-1, "weapon_deagle", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 7); cs_set_user_bpammo(id, CSW_DEAGLE, 35); give_item(id, "weapon_famas"); give_item(id, "ammo_556nato"); weapon_id=find_ent_by_owner(-1, "weapon_famas", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 25); cs_set_user_bpammo(id, CSW_FAMAS, 90); } public menu_4_handler(id){ new henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0); give_item(id, "weapon_hegrenade"); ++henum; new fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0); give_item(id, "weapon_flashbang"); ++fbnum; cs_set_user_bpammo(id, CSW_FLASHBANG, 2); new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0); give_item(id, "weapon_smokegrenade"); ++sgnum; give_item(id, "weapon_deagle"); give_item(id, "ammo_50ae"); weapon_id=find_ent_by_owner(-1, "weapon_deagle", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 7); cs_set_user_bpammo(id, CSW_DEAGLE, 35); give_item(id, "weapon_galil"); give_item(id, "ammo_556nato"); weapon_id=find_ent_by_owner(-1, "weapon_galil", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 35); cs_set_user_bpammo(id, CSW_GALI, 90); } public menu_5_handler(id){ new henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0); give_item(id, "weapon_hegrenade"); ++henum; new fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0); give_item(id, "weapon_flashbang"); ++fbnum; cs_set_user_bpammo(id, CSW_FLASHBANG, 2); new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0); give_item(id, "weapon_smokegrenade"); ++sgnum; give_item(id, "weapon_deagle"); give_item(id, "ammo_50ae"); weapon_id=find_ent_by_owner(-1, "weapon_deagle", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 7); cs_set_user_bpammo(id, CSW_DEAGLE, 35); give_item(id, "weapon_awp"); give_item(id, "ammo_338magnum"); weapon_id=find_ent_by_owner(-1, "weapon_awp", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 10); cs_set_user_bpammo(id, CSW_AWP, 30); } public menu_6_handler(id){ new henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0); give_item(id, "weapon_hegrenade"); ++henum; new fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0); give_item(id, "weapon_flashbang"); ++fbnum; cs_set_user_bpammo(id, CSW_FLASHBANG, 2); new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0); give_item(id, "weapon_smokegrenade"); ++sgnum; give_item(id, "weapon_deagle"); give_item(id, "ammo_50ae"); weapon_id=find_ent_by_owner(-1, "weapon_deagle", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 7); cs_set_user_bpammo(id, CSW_DEAGLE, 35); give_item(id, "weapon_xm1014"); give_item(id, "ammo_buckshot"); weapon_id=find_ent_by_owner(-1, "weapon_xm1014", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 7); cs_set_user_bpammo(id, CSW_XM1014, 32); } public menu_7_handler(id){ new henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0); give_item(id, "weapon_hegrenade"); ++henum; new fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0); give_item(id, "weapon_flashbang"); ++fbnum; cs_set_user_bpammo(id, CSW_FLASHBANG, 2); new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0); give_item(id, "weapon_smokegrenade"); ++sgnum; give_item(id, "weapon_deagle"); give_item(id, "ammo_50ae"); weapon_id=find_ent_by_owner(-1, "weapon_deagle", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 7); cs_set_user_bpammo(id, CSW_DEAGLE, 35); give_item(id, "weapon_m249"); give_item(id, "ammo_556natobox"); weapon_id=find_ent_by_owner(-1, "weapon_m249", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 100); cs_set_user_bpammo(id, CSW_M249, 200); } public DeathMsg(){ new killer=read_data(1); new victim=read_data(2); if(is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){ DeathMsgVip(killer,victim,read_data(3)); } } public DeathMsgVip(kid,vid,hs){ set_user_health(kid, min(get_user_health(kid)+(hs?20:10),200)); } public show_vip_menu(id){ menu=menu_create("\rMenu VIPa","menu_handler"); menu_callback_handler=menu_makecallback("menu_callback"); new bool:active=false, num=-1; menu_additem(menu,"\wM4A1+Deagle i all granaty","",0,menu_callback_handler); if(menu_callback(id, menu, ++num)==ITEM_ENABLED){ active=true; } menu_additem(menu,"\wAK47+Deagle i all granaty","",0,menu_callback_handler); if(menu_callback(id, menu, ++num)==ITEM_ENABLED){ active=true; } menu_additem(menu,"\wFamas+Deagle i all granaty","",0,menu_callback_handler); if(menu_callback(id, menu, ++num)==ITEM_ENABLED){ active=true; } menu_additem(menu,"\wGalil+Deagle i all granaty","",0,menu_callback_handler); if(menu_callback(id, menu, ++num)==ITEM_ENABLED){ active=true; } menu_additem(menu,"\wAWP+Deagle i all granaty","",0,menu_callback_handler); if(menu_callback(id, menu, ++num)==ITEM_ENABLED){ active=true; } menu_additem(menu,"\wShotgun+Deagle i all granaty","",0,menu_callback_handler); if(menu_callback(id, menu, ++num)==ITEM_ENABLED){ active=true; } menu_additem(menu,"\wKrowa+Deagle i all granaty","",0,menu_callback_handler); if(menu_callback(id, menu, ++num)==ITEM_ENABLED){ active=true; } if(active){ menu_setprop(menu,MPROP_EXITNAME,"Wyjscie"); menu_setprop(menu,MPROP_TITLE,"\yMenu Vipa"); menu_setprop(menu,MPROP_NUMBER_COLOR,"\r"); menu_display(id, menu); } else { menu_destroy(menu); } } public menu_callback(id, menu, item){ if(is_user_alive(id)){ if(item==0){ return ITEM_ENABLED; } if(item==1){ return ITEM_ENABLED; } if(item==2){ return ITEM_ENABLED; } if(item==3){ return ITEM_ENABLED; } if(item==4){ return ITEM_ENABLED; } if(item==5){ return ITEM_ENABLED; } if(item==6){ return ITEM_ENABLED; } } return ITEM_DISABLED; } public menu_handler(id, menu, item){ if(is_user_alive(id)){ if(item==0){ menu_1_handler(id); } if(item==1){ menu_2_handler(id); } if(item==2){ menu_3_handler(id); } if(item==3){ menu_4_handler(id); } if(item==4){ menu_5_handler(id); } if(item==5){ menu_6_handler(id); } if(item==6){ menu_7_handler(id); } } menu_destroy(menu); return PLUGIN_HANDLED; }
Chinczyk
05.07.2013
niestety mam ostzezenie wiec nie moge Ci dac pliku amxx..
ale powiem Ci jak go zrobic
1. Pobierz plik vip.sma z zalacznika
2. Wrzuc go na pulpit
3. Wejdz na http://amxx.pl/kompilator/
4. Nacisnij "przegladaj" tutaj masz screena ---> (kliknij aby powiekszyc)
5. Znajdz plik vip.sma i nacisnij otworz
i masz juz .sma odemnie i amxx
Mam nadzieje ze pomoglem