Raised This Month: $ Target: $400
 0% 

Can anyone help me on this ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Z@C
Member
Join Date: May 2006
Location: Moscow, Russia
Old 06-28-2006 , 23:38   Re: Can anyone help me on this ?
Reply With Quote #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
Z@C is offline
Send a message via ICQ to Z@C
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode