hello, i am beginer in sm / c++..
i have done plugin, which allows players control server by typing some commands into chat, as srr, slo3, sko3..
for now, i have there for map change command smap <map name>, but i have it for every map particularly..
example:
Code:
if (strcmp(text[startidx], "smap aim_ancients", false) == 0)
{
ServerCommand("sm_map aim_ancients"); return Plugin_Handled;
}
else if (strcmp(text[startidx], "smap aim_ballers", false) == 0)
{
ServerCommand("sm_map aim_ballers"); return Plugin_Handled;
}
else if (strcmp(text[startidx], "smap aim_colt_inside", false) == 0)
{
ServerCommand("sm_map aim_colt_inside"); return Plugin_Handled;
}
else if (strcmp(text[startidx], "smap aim_deagle7k", false) == 0)
{
ServerCommand("sm_map aim_deagle7k"); return Plugin_Handled;
}
how i can get map name from player's massage?
i hope you will understand me :-/ i am from slovakia..
thanks..
or is it there some plugin, with this function?
// my plugin is in basetriggers.smx.