Raised This Month: $ Target: $400
 0% 

Free For All, without CSDM


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-22-2006 , 08:49  
Reply With Quote #2

I'm not really good at the message blocking, but the worst case scenario is your chat area gets spammed every time you shoot a teammate.

Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("FFA","1.0","Hawk552")         register_cvar("amx_ffa","0")         register_event("DeathMsg","fnEventDeathMsg","a")     register_event("SayText","fnEventSayText","a") } public fnEventDeathMsg() {     new iAttacker = read_data(1),iVictim = read_data(2)     if(iAttacker && get_user_team(iAttacker) == get_user_team(iVictim) && get_cvar_num("amx_ffa"))         set_user_frags(iAttacker,get_user_frags(iAttacker) + 2) } public fnSayText() {     if(!get_cvar_num("amx_ffa"))         return PLUGIN_CONTINUE             new szData[32]     read_data(1,szData,31)         if(containi(szData,"a teammate") != -1)         return PLUGIN_HANDLED             return PLUGIN_CONTINUE }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



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:34.


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