plugin adminmodel

Šiame forume vartotojai gali prašyti jiems reikiamo plugino.
Forum rules
Šiame forume galite siūlyti idėjas ar prašyti jums reikalingų pluginų. Jei kas nors pradės jį kurti, tai pasirašys Jūsų sukurtoje temoje. Niekada nepykite, jei niekas neatsako į Jūsų prašymą. Gal tai tiesiog per sudėtinga, arba reikalauja per daug darbo.
Post Reply
Kenzy
Jau po truputį tampa savu
Posts: 106
Joined: 2017 Jan 22 20:41

plugin adminmodel

Post 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}

DYaGesS
Flooderis arba specialistas
Posts: 875
Joined: 2013 Jan 16 01:01
Skype: usercs.com
Contact:

Re: plugin adminmodel

Post by DYaGesS »

ADMIN_RESERVATION not ADMIN_LEVEL_RESERVATION
Padėjau? +rep

Kenzy
Jau po truputį tampa savu
Posts: 106
Joined: 2017 Jan 22 20:41

Re: plugin adminmodel

Post 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 ??
Last edited by Kenzy on 2017 Mar 19 17:13, edited 1 time in total.

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: plugin adminmodel

Post 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
Image
Image
Image

Kenzy
Jau po truputį tampa savu
Posts: 106
Joined: 2017 Jan 22 20:41

Re: plugin adminmodel

Post 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 ?

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: plugin adminmodel

Post 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
Image
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests