Raised This Month: $ Target: $400
 0% 

Can anyone help me on this ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vids
Junior Member
Join Date: Jun 2006
Old 06-20-2006 , 09:41  
Reply With Quote #1

Thank you for the Reply.


I've tried both: By v3x
if(dod_get_pl_deaths(id) >= get_cvar_num("deaths_limit"))

and by: Z@C
if(get_user_deaths(id) >= get_cvar_num("deaths_limit"))

Both scripts I have changed the "%s"
and enable/disable dodfun (tried both)

But it seems luck not on my side. It still won't kick when reach 10 deaths.

any further suggestion to help?

Thank you.
vids is offline
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 #2

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