my problem is it works for custom models too for different named.. i use custom models too and i need to check custom models. what could i do ?
PHP Code:
GetModelNameByIndex(GetClientViewModelIndex(client), ModelName, sizeof(ModelName))
if (strcmp(ModelName,"*/weapons/v_snip_awp.mdl"))//i use v_test.mdl for awp model for example still get it v_snip_awp.mdl
{
PrintToChatAll("TEST")
return Plugin_Stop
}
}
edit:it works for all weapons, how can i check what model does he using ? can somebody show me ?