Hello, I've searched all the forum and tried it many ways, but still it doesn't work.
Here's my problem, right now I'm using cstrike to change user models and its giving svc_bad and kicking many people off my server. I want the model to be Smith model, but without cstrike. It would be grate if it could work with Ham.
The second thing is, that I want it to show when a Vip has connected to the server.
And the third thing is, that I want to show the player status like VIP on hud message, I already have the code for the hud message, but I cant make it to display the status, my idea is, that it would get the status by acces flags.
Here are portions of the codes.
Model:
PHP Code:
public plugin_precache() {
precache_model("models/player/smith/smith.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_CVAR) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "smith")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "smith")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
Connection message:
PHP Code:
set_hudmessage(255, 255, 255, -1.0, 0.35, 0, 4.0, 4.0, 2.0, 2.0, 4);
show_hudmessage(0, "VIP %s has joined the server!", szName);
The connection messages has been taken from this plugin
http://forums.alliedmods.net/showthread.php?t=76883
Hoping to get some help vL.
Also +karma to anyone who can help me