Raised This Month: $ Target: $400
 0% 

logevent hook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-13-2012 , 15:52   logevent hook
Reply With Quote #1

I'm trying to hook an event of Terrorists (or CT) winning, but it would seem my code is improper. Someone give me a hand?

PHP Code:
//init
register_logevent("event_Tvictory" 2"3=Terrorists_Win")

public 
event_Tvictory()
{
    if(!
get_pcvar_num(toggle_pcvar) || !get_pcvar_num(frags_pcvar) || !get_pcvar_num(sc_pcvar))
        return     
PLUGIN_CONTINUE    
        
    
new players[32], num
    get_players
(playersnum"aceh""T")

    for(new 
i=0,idi<numi++)
    {
        
id players[i]
        if(
g_bknuckles[id] && is_user_connected(id) )
            
giveFrags(id1"SC_WIN")
    }
    
    return 
PLUGIN_CONTINUE

i probably just simply don't understand register_logevent sufficiently.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz 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:17.


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