Page 1 of 1

plugin adminmodel

Posted: 2017 Mar 19 16:47
by Kenzy
Hello,
i have this plugin to vip/admin model , but VIP didnt get Model Only ADMIN
Flag VIP : bit , but not working on model
i try

Code: Select all

#define FLAG ADMIN_LEVEL_B

and

Code: Select all

#define ADMIN_LEVEL_RESERVATION 
but not working on flag b
can u fix it please ?

Code: Select all

#include <amxmodx>#include <amxmisc>#include <cstrike>#include <fun>#include <engine> public plugin_init() {        register_plugin("AMX Admin Model", "1.1.1", "Ssand")        register_event("ResetHUD", "resetModel", "b")        return PLUGIN_CONTINUE} public plugin_precache() {        precache_model("models/player/admin_ct/admin_ct.mdl")        precache_model("models/player/admin_te/admin_te.mdl")         return PLUGIN_CONTINUE} public resetModel(id, level, cid) {     new name[33]    get_user_name(id, name, 32)     if(equali(name, "admin"))    {        new CsTeams:userTeam = cs_get_user_team(id)        if (userTeam == CS_TEAM_T)        {            cs_set_user_model(id, "admin_te")        }        else if(userTeam == CS_TEAM_CT)        {            cs_set_user_model(id, "admin_ct")        }    }    else    {        cs_reset_user_model(id)    }    return PLUGIN_CONTINUE}

Re: plugin adminmodel

Posted: 2017 Mar 19 16:52
by DYaGesS
ADMIN_RESERVATION not ADMIN_LEVEL_RESERVATION

Re: plugin adminmodel

Posted: 2017 Mar 19 17:13
by Kenzy
DYaGesS wrote:ADMIN_RESERVATION not ADMIN_LEVEL_RESERVATION
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Code: Select all

Warning: Redefinition of constant/macro (symbol "ADMIN_RESERVATION") on line 7Header size:            428 bytesCode size:              688 bytesData size:              604 bytesStack/heap size:      16384 bytes; estimated max. usage=781 cells (3124 bytes)Total requirements:   18104 bytes 1 Warning.Done. 
can u fix it pls and send me ??

Re: plugin adminmodel

Posted: 2017 Mar 19 17:17
by laimiukas3
Kenzy wrote:
DYaGesS wrote:ADMIN_RESERVATION not ADMIN_LEVEL_RESERVATION
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Code: Select all

Warning: Redefinition of constant/macro (symbol "ADMIN_RESERVATION") on line 7Header size:            428 bytesCode size:              688 bytesData size:              604 bytesStack/heap size:      16384 bytes; estimated max. usage=781 cells (3124 bytes)Total requirements:   18104 bytes 1 Warning.Done. 
can u fix it pls and send me ??
rehlds http://amxmodx.lt/viewtopic.php?f=46&t=7868

or http://amxmodx.lt/viewtopic.php?f=15&t= ... lit=pmodel

Re: plugin adminmodel

Posted: 2017 Mar 19 17:21
by Kenzy

Code: Select all

{ "snowleet", "lolgign", ADMIN_LEVEL_B },    { "viptt", "vipct", ADMIN_LEVEL_H },    { "bomjtt", "bomjct", ADMIN_ALL },

Code: Select all

{ "admin_ct", "admin_ct.mdl", ADMIN_LEVEL_B },    { "admin_tt", "admin_tt", ADMIN_LEVEL_H },    { "bomjtt", "bomjct", ADMIN_ALL }, 
like that changer ?

Re: plugin adminmodel

Posted: 2017 Mar 19 17:37
by laimiukas3
Kenzy wrote:

Code: Select all

{ "snowleet", "lolgign", ADMIN_LEVEL_B },    { "viptt", "vipct", ADMIN_LEVEL_H },    { "bomjtt", "bomjct", ADMIN_ALL },

Code: Select all

{ "admin_ct", "admin_ct.mdl", ADMIN_LEVEL_B },    { "admin_tt", "admin_tt", ADMIN_LEVEL_H },    { "bomjtt", "bomjct", ADMIN_ALL }, 
like that changer ?
{ "admin_ct", "admin_te", ADMIN_RESERVATION },

and upload models to
cstrike/models/player/admin_ct/admin_ct.mdl
cstrike/models/player/admin_ct/admin_te.mdl