Sambata, 2017-11-18, 0:37 AM
Main
Registration
Login
Radio ShowMix
Welcome Vizitator | RSS
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum » Counter Strike » Plugins » Da Afara Pe Cei Care Dau Hs Prin Zid
Da Afara Pe Cei Care Dau Hs Prin Zid
nightzoneDate: Luni, 2008-12-08, 4:50 PM | Message # 1
Owner
Group: Administrator
Messages: 182
Reputation: 0
Status: Offline
Sa incepem

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!

**Si Cum il fac sa mearga?
Simplu

Creezi un fisier .txt,ii modifici extensia in .sma,scrii codul acela,iar apoi il
compilezi

**Cum il compilez?
Simplu

Intri Aici ! Si Uplodezi sma.


http://nightzone.tk Da Un Clik Si Ajutane Sa Ne Marim Comunitatea Multumesc !
 
Forum » Counter Strike » Plugins » Da Afara Pe Cei Care Dau Hs Prin Zid
Page 1 of 11
Search:


| Copyright MyCorp © 2017 | Hosted by uCoz |