It looks like this
PHP Code:
public cbMyMenu(id, menu, item){
static stats[8]
new prefix[10];
get_pcvar_string(g_cPrefix, prefix, charsmax(prefix));
if(!is_user_alive(id)){
ColorChat(id, GREEN, "[%s]^x01 Nie mozesz zmienic noza bedac niezywym", prefix);
return PLUGIN_HANDLED
}
switch(item){
case 0:{
if(stats[0] < 50){
client_print(id, print_chat, "You cant use this knife");
return PLUGIN_HANDLED
}
else SetKnife(id, 0)
}
}