Quote:
Originally Posted by batu07040
Ohh, Basic
Code:
if ( get_user_flags (id) & ADMIN_CHAT )
{
cs_set_user_model(id,"modelname");
}
|
its my code after editing is it right ?
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/ALILP-VIP/VIP.mdl")
precache_model("models/player/ALILP-VIP/vipt.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_CHAT) {
cs_set_user_model(id, "VIP")
}
return PLUGIN_CONTINUE
}
my signature describe my condition
__________________
Never Learned any scripting lang completely but always got what I wanted by editing and learning the things I need from others scripts !
So please be kind with me and dont see me as a pro
.