View Single Post
alilp
Junior Member
Join Date: Aug 2017
Old 08-06-2017 , 12:33   Re: Cs 1.6 V.I.P/Admin model Plugin !
Reply With Quote #3

Quote:
Originally Posted by batu07040 View Post
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 .

Last edited by alilp; 08-06-2017 at 12:43.
alilp is offline