View Single Post
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 01-29-2021 , 13:40   Re: [ANY] SwapTeam Manager [Updated 22-01-21] Version 1.0.0
Reply With Quote #3

I could be wrong about this, but I noticed you put this into the code:
PHP Code:
public Extension __ext_tf2 =    {
    
name "TF2 Tools",        //This allows any game to load without "TF2 Tools Extension is required" error on plugin startup
    
file "game.tf2.ext",    //since the other games doesn't use the tf2 natives and the extension is automatically loaded
    
required 0            //when server is running team fortress 2
};

public 
Extension __ext_cstrike =    {
    
name "cstrike",
    
file "games/game.cstrike.ext",
    
required 0
}; 
I'm pretty sure you can just undefine the requirement of the extensions when you define the includes. Example:
PHP Code:
#undef REQUIRE_EXTENSIONS
#include <tf2_stocks>
#include <cstrike> 
ThatKidWhoGames is offline