PHP Code:
public Fw_CmdStart(client, uc_handle, seed)
{
if (!is_user_alive(client))
return FMRES_IGNORED
new button = get_uc(uc_handle, UC_Buttons)
new oldbuttons = pev(client, pev_oldbuttons)
static ent, body
new Float: aim_distance = get_user_aiming(client, ent, body)
if (PRESSED(IN_USE) && aim_distance <= DISTANCE_E_BUTTON_USE)
{
if (pev_valid(ent))
{
static classname[32];
pev(ent, pev_classname, classname, charsmax(classname)) // undefine symbol "charsmax"
else if (equal(classname, "Guard"))
{
Main_Guard_Menu(client)
return FMRES_IGNORED;
}
}
}
return FMRES_IGNORED;
}