Raised This Month: $ Target: $400
 0% 

Round end


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JRISETH
Junior Member
Join Date: Jun 2011
Old 06-20-2012 , 06:15   Round end
Reply With Quote #1

Hello,

I'm currently doing a plugin for my public server. The idea of the plugin is that when a terrorist team wins, then all the CTs would die and vice-versa. The problem is, that when I'm alone in the server testing the plugin, it works great. When 2 or more people are in the server, then when CT defuses a bomb, all terrorists die but I've also got a message, that says 'All Terrorists have been killed' and when CT defuses a bomb, that message appears twice for some reason. When Terrorists plant a bomb and it exploads, then all players die and messages appear three or four times for some reason.

Here's my code:

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <colorchat> #include <cstrike> #include <csx> #define PLUGIN "JRISETH / Kill looser team members" #define VERSION "1.0" #define AUTHOR "JRISETH" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")     register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")   } public t_win() {         ColorChat(0, GREEN, "TERRORISTIDE^1 tiim vƵitis, kƵik ellujƤƤnud ^4COUNTER-TERRORISTID^1 tapeti.");         new         pPlayers[32],         pNum;             get_players(pPlayers, pNum, "ae", "CT");         for(new i; i < pNum; i++)         user_silentkill(pPlayers[i]);         return PLUGIN_HANDLED } public ct_win() {         ColorChat(0, GREEN, "COUNTER-TERRORISTIDE^1 tiim vƵitis, kƵik ellujƤƤnud ^4TERRORISTID^1 tapeti.");         new         pPlayers[32],         pNum;             get_players(pPlayers, pNum, "ae", "TERRORIST");         for(new i; i < pNum; i++)         user_silentkill(pPlayers[i]);         return PLUGIN_HANDLED }
JRISETH 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 06:14.


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