[Tutorials] how to add memberships VIP in your server

أضف رد جديد
صورة العضو الرمزية
arvEL.-™
مشاركات: 24
اشترك في: السبت مارس 14, 2015 1:01 am

[Tutorials] how to add memberships VIP in your server

مشاركة بواسطة arvEL.-™ » السبت مارس 14, 2015 7:59 pm

hi guys , today i will teach you how to add vip member in your server
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
}

Download: http://www.girlshare.ro/34561044.1
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.-
HighLifeZM.CsBlackDevil.Com [89.44.246.162:27015]

أضف رد جديد