Raised This Month: $ Target: $400
 0% 

Bomb Planted called twice


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Apollyon
SourceMod Donor
Join Date: Dec 2007
Location: California
Old 05-08-2010 , 14:54   Bomb Planted called twice
Reply With Quote #1

Everything works except that when I plant the bomb it seems to call the function 2 times. My chat message appears twice and I get 2 bonus kills instead of 1. What am I missing?

PHP Code:
register_logevent("eBombPlanted"3"2=Planted_The_Bomb"); 
PHP Code:
public eBombPlanted()
{
    for(new 
1<= g_iMaxPlayers; ++i)
    {    
        if(
is_user_alive(i) && get_user_team(i) == 1)
        {
            new 
frags 2;
            if(
fragsset_user_frags(i,get_user_frags(i) + frags);
    
            
ColorChat(iRED"[Badlands] ^4Bonus Frags!");
        }
    }
    return 
PLUGIN_CONTINUE;

__________________

Last edited by Apollyon; 05-08-2010 at 20:38.
Apollyon 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 03:40.


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