public hook_Touch(ent, id)
{
if(!is_user_alive(id))
return FMRES_IGNORED;
new classname[32];
pev(ent, pev_classname, classname, 31);
if(equali(classname, "shacks_npc") && !inMenu[id])
{
inMenu[id] = true;
new name[33], text[512];
get_user_name(id, name, 32);
format(text, 511, "%L", id, "NU_MENU", name);
xmenu(id)
new iEnt, fOrigin;
while( ( iEnt = find_ent_in_sphere( iEnt, fOrigin, 99.0) ) != 0 )
{
////tu funkcja
}
}
return PLUGIN_HANDLED
}
Coś takiego mi nie działa na zamykanie menu czy ktoś pomoże ? nie wiem jak by to zrobić pierwszy raz się z tym bawię.