Raised This Month: $ Target: $400
 0% 

help with my code?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Des12
Senior Member
Join Date: Jan 2005
Old 03-16-2006 , 23:41  
Reply With Quote #1

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "ktd" #define VERSION "0.1" #define AUTHOR "SweatyBanana" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("ResetHUD", "ktd", "b") } public ktd(id) {     new Frags = get_user_frags(id)     new Deaths = get_user_deaths(id)     new MAXFRAGDEATH = 3 * Deaths     new LIMITWARN = 2 * Deaths     new name[32]               if(Frags > 3)     {         get_user_name(id,name,31)         client_print(0,print_chat,"[KTD] Anyone with a kill/death ratio will be kicked.",name)     }         if(Frags >= LIMITWARN)     {         get_user_name(id,name,31)         client_print(0,print_chat,"WARNING: %s will be kicked soon for too high of a Kill/Death ratio.",name)     }     if(Frags >= MAXFRAGDEATH)     {         get_user_name(id,name,31)         client_print(0,print_chat,"[KTD] %s has been kicked due to too high of a Kill/Death ratio.",name)         server_cmd("kick ^"%s^" ^" too high of a Kill/Death ratio^"",name);     }     return PLUGIN_CONTINUE     }
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
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 16:35.


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