View Single Post
Heypio
Junior Member
Join Date: Nov 2017
Old 12-10-2017 , 11:31   Re: Help for my plugin
Reply With Quote #3

I wrote this but it did not work

Code:
public void OnAutoConfigsBuffered()
{
   CreateTimer(5.0, plugindisable);
}

public Action plugindisable(Handle timer)
{
   char mapname[256];
   GetCurrentMap(mapname, 256);
   if (StrContains(mapname, "awp_", false) == -1)
   {
           // disable
   }
}

Last edited by Heypio; 12-10-2017 at 11:31.
Heypio is offline