what are the advantages?
# new model differs from the other of the players
كود: تحديد الكل
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define VIP_LEVEL ADMIN_LEVEL_T
public plugin_init() {
register_plugin("VIP Model", "0.2", "arvEL.-")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/te_arvEL/te_arvEL.mdl")
precache_model("models/player/ct_arvEL/ct_arvEL.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_LEVEL_H) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "te_arvEL")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "ct_arvEL")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
now how to grant memberships VIP ???
go to config folder and edit this file (addons\amxmodx\configs\user.ini)
put "NAME" "PASS" "FLAG"
for example:
"arvEL.-" "DG-Host" "t" "a"
NOTE: this tutorial special to forum DG-HOST.
tutorial by: arvEL.-