|
Author
|
Message
|
|
Member
Join Date: May 2006
Location: Moscow, Russia
|

06-28-2006
, 23:38
Re: Can anyone help me on this ?
|
#1
|
try this:
#include <amxmodx>
#include <dodfun>
public plugin_init() {
register_plugin("deaths_Kicker","1.0","Shadow Leader(123)")
register_event("ResetHUD","newRound","a") // flag "b" change to "a"
register_cvar("deaths_limit","10")
}
public newRound(id) {
new authid[32],reason[64]
get_user_authid(id, authid, 31)
if(dod_get_pl_deaths(id) >= get_cvar_num("deaths_limit")) {
format(reason,63,"Reached Death Limits (%s)",get_cvar_num("deaths_limit")) // i add this
server_cmd("kick #%d %s,get_user_userid(id),reason)
server_cmd("banid %s 5",authid) // changed %d to %s because authid is a string
}
}
__________________
HLDS protocol 48 (CS 1.1.2.6 build 4883 on FreeBSD 9.0)
AMXX v1.8.1.3746 | METAMOD v1.19p32 | DProto 0.9.87
Web: Nginx 1.0.10 (build 1.1), Apache 2.2.21, PHP 5.3.8, MySQL 5.5.17
|
|
|
|