Why do so much if he only wants to execute this code once?
Code:
public plugin_init()
{
//...
set_task(0.1 , "CheckMap")
}
public CheckMap()
{
new mapname[4]
get_mapname(mapname, 3)
if(!equali(mapname, "de_"))
return PLUGIN_HANDLED
//Put code here
}
its simplier and has less variables. so uses less memory.
Yours has two functions and 3 variables(1 global). and this one has one function and one variable. with less code doing the same thing.