Hi, guys! I have some error and I don't know how exactly to fix it. I've searched, but I didn't find solution. The error appears on the line with:
PHP Code:
if(cs_get_user_model(id) == "sas.mdl")
and
PHP Code:
if(cs_get_user_model(id) == "leet.mdl")
This is the code. The main idea is a part of a menu, which sets the user a model of a player from he other team. Or "chameleon" option. Thanks in advance!
PHP Code:
{
if(cs_get_user_model(id) == "leet.mdl")
{
ColorMessage(id, "^3Tova veche go ^4imash^3!");
return PLUGIN_HANDLED;
}
else
{
cs_set_user_model(id,"leet.mdl");
}
}
else
{
if(cs_get_user_model(id) == "sas.mdl")
{
ColorMessage(id, "^3Tova veche go ^4imash^3!");
return PLUGIN_HANDLED;
}
else
{
cs_set_user_model(id,"sas.mdl");
}
}