Granat : (HE - Podpalający) (FB - Zamrażaj...
oGARNIACZ
26.11.2013
Cześć.
Robie Serwer Zombie Escape i jak zrobić Granat : (HE - Podpalający) (FB - Zamrażający) (SG - Flara)
Za pomoc +
Kaktus.
26.11.2013
Udało mi się znaleźć jedynie granat zamrażający.
oGARNIACZ
26.11.2013
Ehh, no okey zawsze coś.
Plusik
Jednak spróbujcie znaleść też chociaż granat który podpala. to dam jeszcze plusa
xMaliNax
26.11.2013
Tylko tyle znalazłem, gdy coś znajdę jeszcze edytuje
#include <amxmodx> #include <fakemeta> new const FLARE_MODEL[] = "models/w_flare.mdl"; //new const FLARE_SOUNDS[][] = { "ambience/burning1.wav", "ambience/burning3.wav" }; new pcvar_flare_duration; public plugin_init() { register_plugin("Smoke Flares", "0.1", "Mini_Midget") pcvar_flare_duration = register_cvar("flare_duration", "20.0") register_forward(FM_SetModel, "fw_setmodel") register_forward(FM_Think, "fw_think"); } public plugin_precache() { engfunc(EngFunc_PrecacheModel, FLARE_MODEL); //for (new i = 0 ; i < sizeof FLARE_SOUNDS ; i++) // engfunc(EngFunc_PrecacheSound, FLARE_SOUNDS[i]); } public fw_setmodel(ent, model[]) { //Not a valid ent or Thrower not alive if (!pev_valid(ent) || !is_user_alive(pev(ent, pev_owner))) // not a valid ent return FMRES_IGNORED; new Float: duration = get_pcvar_float(pcvar_flare_duration) if (equali(model,"models/w_smokegrenade.mdl")) { new className[33] pev(ent, pev_classname, className, 32) // Stop smoke grenade from exploding set_pev(ent, pev_nextthink, get_gametime() + duration); //Effects set_pev(ent,pev_effects,EF_BRIGHTLIGHT); fm_set_rendering(ent, kRenderFxGlowShell, 150, 150, 250, kRenderNormal, 16) //Sound //engfunc(EngFunc_EmitSound, ent, CHAN_AUTO, FLARE_SOUNDS[random(sizeof FLARE_SOUNDS)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM); if(equal(className, "weaponbox") || equal(className, "armoury_entity") || equal(className, "grenade")) { engfunc(EngFunc_SetModel, ent, FLARE_MODEL); return FMRES_SUPERCEDE } } return FMRES_IGNORED; } public fw_think(ent) { //Not a valid ent or Thrower not alive if (!pev_valid(ent) || !is_user_alive(pev(ent, pev_owner))) // not a valid ent return FMRES_IGNORED; static classname[33] pev(ent, pev_classname, classname, sizeof classname - 1); static model[33] pev(ent, pev_model, model, sizeof model - 1); if( equal(model, FLARE_MODEL) && equal(classname, "grenade")) engfunc(EngFunc_RemoveEntity, ent); return FMRES_IGNORED; } stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16) { new Float:RenderColor[3]; RenderColor[2] = float(<img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.gif' class='bbc_emoticon' alt='B)' />; RenderColor[0] = float(r); RenderColor[1] = float(g); set_pev(entity, pev_renderfx, fx); set_pev(entity, pev_rendercolor, RenderColor); set_pev(entity, pev_rendermode, render); set_pev(entity, pev_renderamt, float(amount)); return 1; }
Flara znika po 20s ale możesz zmienić w tej linijce:
Lecz czas trzeba pisać w sekundach
pcvar_flare_duration = register_cvar("flare_duration", "20.0")
Znalazłem podpalający:
* Plugin generated by AMXX-Studio */ #include #include #include #include #define PLUGIN "Firing Nades" #define VERSION "1.0" #define AUTHOR "Sn!ff3r" new exhaust new smoke1 public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) } // pobrano z cs-puchatek.pl public client_damage (attacker, victim, damage, wpnindex, hitplace, TA) { if(wpnindex != 4) return; new param[1]; param[0] = victim if(damage < 20) set_task(0.2,"ignite_effects",_,param,1,"a",5) else set_task(0.2,"ignite_effects",_,param,1,"a",10) emit_sound(victim,CHAN_AUTO,"ambience/flameburst1.wav",VOL_NORM,ATTN_NORM,0,PITCH_NORM) } public ignite_effects(param[]) { new id = param[0] if(!is_user_alive(id)) return; // pobrano z cs-puchatek.pl new forigin[3],rx,ry,rz get_user_origin(id,forigin) rx = random_num(-30,30) ry = random_num(-30,30) rz = random_num(-30,30) message_begin(MSG_BROADCAST,SVC_TEMPENTITY) write_byte (120) write_coord(forigin[0]) write_coord(forigin[1]) write_coord(forigin[2]-30) write_coord(random_num(-90,90)) write_coord(random_num(-90,90)) write_coord(-100) write_short (exhaust) write_byte(4) write_byte(4) write_byte(100) write_byte(5) message_end() //Smoke message_begin(MSG_BROADCAST,SVC_TEMPENTITY) write_byte(5) write_coord(forigin[0]+(rx*2)) write_coord(forigin[1]+(ry*2)) write_coord(forigin[2]+100+(rz*2)) write_short(smoke1) write_byte(60) write_byte(15) message_end() // pobrano z cs-puchatek.pl message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("ScreenFade"),{0,0,0},id) write_short(1<<10) write_short(1<<36) write_short(0x0000) write_byte(255) write_byte(0) write_byte(0) write_byte(100) message_end() set_user_health(id,get_user_health(id) - 1) } public plugin_precache() { smoke1 = precache_model("sprites/steam1.spr") exhaust = precache_model("sprites/muz1.spr") precache_sound("ambience/flameburst1.wav") // }
Użytkownik xMaliNax edytował ten post 26.11.2013 23:01