www.nexthead.tk NOUA ADRESA !!!

www.nexthead.tk NOUA ADRESA !!!
 
AcasaAcasa  CalendarCalendar  FAQFAQ  CautareCautare  MembriMembri  GrupuriGrupuri  InregistrareInregistrare  ConectareConectare  

Distribuiţi | 
 

 Sa Fie Dat Afara Cand Da HeadShot Prin Perete

In jos 
AutorMesaj
GrEeNSkUlL
Administrator
Administrator
avatar

Numarul mesajelor : 270
Location : Arad
Data de inscriere : 23/11/2008

MesajSubiect: Sa Fie Dat Afara Cand Da HeadShot Prin Perete   Mier Dec 24, 2008 10:38 am

Cod:

#include <amxmodx>
#include <fakemeta_util>

#define PLUGIN "Wall Kill" //rewrited
#define VERSION "1.0"
#define AUTHOR "Red-X"

new
g_warning[32],
maxim_warnings;

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("DeathMsg", "_death_msg", "a");

maxim_warnings = register_cvar("amx_maxwarnings","2");

register_logevent("round_start", 2, "1=Round_Start");
}

public _death_msg()
{
new killer = read_data(1)
new victim = read_data(2)
new head_shot = read_data(3)

new kweapon[32]
read_data(4,kweapon,31)

if(!is_user_connected(killer) || !is_user_connected(victim))
return 1;

if(equali(kweapon,"grenade"))
return 1;

new bool:is_visible = fm_is_ent_visible(killer,victim,1)

if(!is_visible && head_shot)
{
g_warning[killer]++

if(g_warning[killer] >= get_pcvar_num(maxim_warnings))
{
g_warning[killer] = 0;
server_cmd("kick #%i ^"Suspected with wall & aim! Watch out!^"",get_user_userid(killer))
}
}
return 0;
}

public round_start()
{
new players = get_playersnum(0)

for(new i = 0; i < players; i++)
{
g_warning[i] = 0;
}
}




Ai cvar amx_maximwarnings - cate hs prin perete poti sa dai maxim pe runda!Daca a facut cate poate maxim ii da kick!

NOTE:Trebuie fakemeta_util.inc pentru a il compila asa ca am pus o versiune compilata deja!

Hs Wall Restrict
Sus In jos
Vezi profilul utilizatorului http://zone.forum-canada.com
 
Sa Fie Dat Afara Cand Da HeadShot Prin Perete
Sus 
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
www.nexthead.tk NOUA ADRESA !!! :: ZoNe.malware-site.www-Tutoriale :: AmxModX-
Mergi direct la: