Raised This Month: $ Target: $400
 0% 

Can anyone help me on this ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vids
Junior Member
Join Date: Jun 2006
Old 06-19-2006 , 14:11   Can anyone help me on this ?
Reply With Quote #1

This is for DOD HL1
Can anyone help me on this scripts? Is there anything wrong with it ? It's seems don't work even deaths reach to 10 . Maybe I'm too nub to understand where did I go wrong.


==================================

#include <amxmodx>


public plugin_init() {
// ..
register_plugin("deaths_Kicker","1.0","Shadow Leader(123)")
register_event("ResetHUD","newRound","b")
register_cvar("deaths_limit","10")
}

public newRound(id) {

if(get_user_deaths(id) >= get_cvar_num("deaths_limit")) {
server_cmd("banid #%d 5",get_user_userid(id))
server_cmd("kick #%d ^"Reached Death Limits (%d) - Banned 5 min^"",get_user_userid(id),get_user_deaths(id ))
}

return PLUGIN_HANDLED
}

=================

Thank you in advance
vids is offline
 



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