View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-10-2012 , 18:26   Re: [Any] Gravity Reset
Reply With Quote #9

Quote:
Originally Posted by St00ne View Post
Hi,

The plugin currently doesn't work on CS:S. The event teamplay_round_win must be replaced by something else for cs:s I think.
teamplay_round_win is for TF2, it not use round_end like most source games.

*edit
You can replace HookEvent part
PHP Code:
........
    
decl String:folder[64];
    
GetGameFolderName(foldersizeof(folder));

    if (
strcmp(folder"tf") == 0)
    {
        
HookEvent("teamplay_round_win"Event_RoundEnd);
    }
    else
    {
        if(!
HookEventEx("round_end"Event_RoundEnd))
        {
            
SetFailState("Unable to find event: round_end");
        }
    }
........ 

Last edited by Bacardi; 03-10-2012 at 18:34.
Bacardi is offline