Raised This Month: $ Target: $400
 0% 

combined kills????


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 05-27-2007 , 21:35   Re: combined kills????
Reply With Quote #10

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #define KILL_LIMIT 50 new terrorist_kills, ct_kills public plugin_init() {     register_plugin("Restart On x Kills", "1.0", "Lee") } public client_death(killer, victim, wpnindex, hitplace, TK) {     switch(cs_get_user_team(killer))     {         case CS_TEAM_T: terrorist_kills++         case CS_TEAM_CT: ct_kills++     }         if(terrorist_kills >= KILL_LIMIT || ct_kills >= KILL_LIMIT)     {         terrorist_kills = 0         ct_kills = 0         server_cmd("sv_restart 5")     } }
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #define KILL_LIMIT 50 new terrorist_kills, ct_kills public plugin_init() {     register_plugin("Restart On x Kills", "1.0", "Lee") } public client_death(killer, victim, wpnindex, hitplace, TK) {     switch(cs_get_user_team(killer))     {         case CS_TEAM_T:                         if(++terrorist_kills >= KILL_LIMIT)             {                 kill_limit_reached()                 client_print(0, print_chat, "The terrorist team have reached %d kills..", KILL_LIMIT)             }                         case CS_TEAM_CT:                         if(++ct_kills >= KILL_LIMIT)             {                 kill_limit_reached()                 client_print(0, print_chat, "Counter-Terrorists have reached %d kills..", KILL_LIMIT)             }     } } public kill_limit_reached() {     terrorist_kills = 0     ct_kills = 0     server_cmd("sv_restart 5") }

Last edited by Lee; 05-27-2007 at 21:39.
Lee 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 10:32.


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