View Single Post
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-10-2017 , 12:37   Re: Help for my plugin
Reply With Quote #6

You did not show the code where you disable the plugin.. You just showed the checks to see if a plugin should be disabled or not based off of awp being in the map name. You'd want to add something like.

PHP Code:
if (StrContains(mapname"awp_"false) == -1)
{
    
ServerCommand("sm plugins unload pluginname1");
    
ServerCommand("sm plugins unload pluginname1");
}
else
{
    
ServerCommand("sm plugins load pluginname1");
    
ServerCommand("sm plugins load pluginname1");

__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is offline