Hi guys
i want block key 'model' for clients and i want used it for othere function change model :
what i try :
PHP Code:
public plugin_init() {
register_forward(FM_SetClientKeyValue, "SetClientKeyValue");
}
new changes[32]
public client_putinserver(id)
{
changes[id] = 0;
}
public SetClientKeyValue(player, const szInfoBuffer[], const szKey[], const szValue[])
{
if(equal(szKey, "model") && is_user_connected(player) && !equal(g_asModels[player], ""))
{
if(changes[player] >= 1 )
{
client_print(player, print_chat, " ====== Stop change model ======= ")
return FMRES_IGNORED
}
client_print(player, print_chat, " ====== Auto change model ======= ")
changes[player]++
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
but the clients still can used this cmd ? is there othere way pleas !
__________________