Proszę o klasę Szpieg
Squezzu
10.08.2013
Szpieg:
-10 hp
-45 Speeda
Bronie:
Scout i deagle.
Umiejentności:
-Przebranie Wroga
-Podwójny skok
Pr0 Ogar970 10.08.2013
WItam Proszę Sprawdź :
Edited by Pr0 Ogar970, 10.08.2013 18:29.
#include <amxmisc> #include <amxmodx> #include <codmod> #include <hamsandwich> #include <cstrike> #include <engine> #include <fun> #include <colorchat> new bool:ma_klase[33]; new const nazwa[] = "Szpieg"; new const opis[] = "Ma 1/4 na resp u wroga"; new const bronie = 1<<CSW_SCOUT |1<<DEAGLE; new const zdrowie = 20; new const kondycja = 5; new const inteligencja = 0; new const wytrzymalosc = 0; new skoki[33]; new ma_klase[33]; public plugin_init() { register_plugin(nazwa, "1.0", "Kiper"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); RegisterHam(Ham_Spawn, "player", "Spawn", 1); } public cod_class_enabled(id) { ma_klase[id] = true; ColorChat(id, GREEN, "Klasa Wykonana przez Pr0 Ogara."); } public cod_class_disabled(id) { ma_klase[id] = false; } public fwCmdStart_MultiJump(id, uc_handle) { if(!is_user_alive(id) || !ma_klase[id]) return FMRES_IGNORED; 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]) { 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; return FMRES_IGNORED; } public Spawn(id) { if(!is_user_alive(id)) return; if(!ma_klase[id]) return; if(random_num(1,4) == 1) { new CsTeams:team = cs_get_user_team(id); cs_set_user_team(id, (team == CS_TEAM_CT)? CS_TEAM_T: CS_TEAM_CT); ExecuteHam(Ham_CS_RoundRespawn, id); cs_set_user_team(id, team); } }
Edited by Pr0 Ogar970, 10.08.2013 18:29.