Porśba o vipa itp
`Adidas.
03.07.2014
Witam czy mógłby mi ktoś dać link lub napisać vipa który ma łom i:
- 2xskok
-160hp
-vipchat
-vipvoice
-jakieś inne modele
ten łom więcej hp zadaje
za zabicie dostaje 15 hp a za HS 30hp
widać ile dmg zadał
Użytkownik `Adidas. edytował ten post 03.07.2014 20:47
EK.Pikawa
03.07.2014
Hmm masz gotowy generator vipa . tutał łapaj link http://amxx.pl/vipgenerator/ jeżeli nie uda ci się tutaj coś wydłubać to postaram ci się to zrobić .
EK.Pikawa
03.07.2014
#include <amxmodx> #include <colorchat> #include <cstrike> #include <fakemeta> #include <fun> #include <hamsandwich> #define IsPlayer(%1) (1<=%1<=maxPlayers) forward amxbans_admin_connect(id); new bool:g_Vip[33], g_Hudmsg, ioid, maxPlayers, skoki[33]; new const g_Prefix[] = "Vip Chat"; public plugin_init(){ register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill"); register_forward(FM_CmdStart, "CmdStartPre"); RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1); RegisterHam(Ham_TakeDamage, "player", "takeDamage", 0); register_event("DeathMsg", "DeathMsg", "a"); g_Hudmsg=CreateHudSyncObj(); register_event("Damage", "damage", "b", "2!0", "3=0", "4!0"); register_clcmd("say_team", "VipChat"); } 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; set_user_health(id, get_user_health(id)+60); new g_Model[64]; formatex(g_Model,charsmax(g_Model),"%s",get_user_team(id) == 1 ? "VipTT" : "VipCT"); cs_set_user_model(id,g_Model); } public plugin_cfg(){ maxPlayers=get_maxplayers(); } public takeDamage(this, idinflictor, idattacker, Float:damage, damagebits){ if(((IsPlayer(idattacker) && is_user_connected(idattacker) && g_Vip[idattacker] && (ioid=idattacker)) || (ioid=pev(idinflictor, pev_owner) && IsPlayer(ioid) && is_user_connected(ioid) && g_Vip[ioid]))){ if(random(2)<1){ damage*=(100+10)/100; } if(damagebits & DMG_BLAST){ if(get_user_team(ioid)==1){ if(random(2)<1){ new classname[32]; pev(idinflictor, pev_classname, classname, 31); if(equali(classname,"v_knife")){ damage*=(100+10)/100; } } } } } } 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?30:15),130)); } public damage(id){ new attacker=get_user_attacker(id); new damage=read_data(2); if(g_Vip[id]){ set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1); ShowSyncHudMsg(id, g_Hudmsg, "%i^n", damage); } if(is_user_connected(attacker) && g_Vip[attacker]){ set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1); ShowSyncHudMsg(attacker, g_Hudmsg, "%i^n", damage); } } public VipChat(id){ if(g_Vip[id]){ new g_Msg[256], g_Text[256]; read_args(g_Msg,charsmax(g_Msg)); remove_quotes(g_Msg); if(g_Msg[0] == '*' && g_Msg[1]){ new g_Name[64]; get_user_name(id,g_Name,charsmax(g_Name)); formatex(g_Text,charsmax(g_Text),"^x01(%s) ^x03%s : ^x04%s",g_Prefix, g_Name, g_Msg[1]); for(new i=1;i<33;i++){ if(is_user_connected(i) && g_Vip[i]) ColorChat(i, GREEN, "%s", g_Text); } return PLUGIN_HANDLED_MAIN; } } return PLUGIN_CONTINUE; } public plugin_precache(){ precache_model("models/player/VipCT/VipCT.mdl"); precache_model("models/player/VipTT/VipTT.mdl"); } public amxbans_admin_connect(id){ client_authorized(id); }tutaj models/player/VipTT/VipTT.mdl
models/player/VipCT/VipCT.mdl dajesz swoje modele nie wiem czy działa nie testowałem ..