AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] VIP+ADMIN+Owner Skins Plugin (https://forums.alliedmods.net/showthread.php?t=291217)

waizedzzy 12-04-2016 07:57

[REQ] VIP+ADMIN+Owner Skins Plugin
 
Hello guys, I'm requesting here a plugin witch it gives a skin for
Vips - ADMIN_LEVEL_H
Admin - ADMIN_BAN
Owner - o - ADMIN_LEVEL_C

so the models will be in:
models/lamdaskins/vipct.mdl
models/lamdaskins/vipt.mdl
models/lamdaskins/adminct.mdl
models/lamdaskins/admint.mdl
models/lamdaskins/ownerct.mdl
models/lamdaskins/ownert.mdl

:nono: Don't say that i didn't searched, I've found some that i don't like (ex: skins in steam id)
Thanks for helping me, Have a nice day. :):)

ironskillz1 12-04-2016 19:08

Re: [REQ] VIP+ADMIN+Owner Skins Plugin
 
Not tested, did this while tired so maybe some mistake some where.

Code:

#include <amxmodx>
#include <cstrike>

enum
{
        TEAM_UNASSIGNED,
        TEAM_T,
        TEAM_CT,
        TEAM_SPECTATOR
};

enum _:enumPlayerModels
{
        Owner,
        Admin,
        Vip
}

new const Player_Level[enumPlayerModels][] =
{
        ADMIN_LEVEL_C, //owner
        ADMIN_BAN, //admin
        ADMIN_LEVEL_H //vip
}

new const Player_Models[enumPlayerModels][] =
{
        {"models/player/lamdaskins/ownerct.mdl", "models/player/lamdaskins/ownert.mdl"},
        {"models/player/lamdaskins/adminct.mdl", "models/player/lamdaskins/admint.mdl"},
        {"models/player/lamdaskins/vipct.mdl", "models/player/lamdaskins/vipt.mdl"}
}

new playerModel[33];

public plugin_precache()
{
        for(new i = 0; i < enumPlayerModels; i++)
        {
                precache_model(Player_Models[i][0]) //ct models
                precache_model(Player_Models[i][1]) //t models
        }
}

public plugin_init()
{
        register_plugin("Admin Models", "1.0", "SnusMumrikeN");
       
        register_event("ResetHUD", "ResetHUD", "be");
}

public client_authorized(id)
{
        playerModel[id] = -1;
       
        for(new i = 0; i < enumPlayerModels; i++)
        {
                if (get_user_flags(id) & Player_Level[i][0])
                {
                        playerModel[id] = i;
                        return;
                }
        }
}

public ResetHUD(id)
{
        if(playerModel[id] == -1)
                return;
               
        if (!is_user_alive(id))
                return;
       
        new CsTeams:Team = cs_get_user_team(id);
       
        switch (Team)
        {
                case TEAM_CT: cs_set_user_model(id, Player_Models[playerModel[id]][0]);       
                case TEAM_T: cs_set_user_model(id, Player_Models[playerModel[id]][1]); 
        }
       
}


waizedzzy 12-05-2016 10:57

Re: [REQ] VIP+ADMIN+Owner Skins Plugin
 
Thx, I'll try it :)

yas17sin 12-06-2016 17:55

Re: [REQ] VIP+ADMIN+Owner Skins Plugin
 
can you please post the models here

OciXCrom 12-06-2016 18:55

Re: [REQ] VIP+ADMIN+Owner Skins Plugin
 
Quote:

Originally Posted by yas17sin (Post 2475730)
can you please post the models here

What have the models got to do with the request?!

yas17sin 12-06-2016 19:19

Re: [REQ] VIP+ADMIN+Owner Skins Plugin
 
Quote:

Originally Posted by OciXCrom (Post 2475744)
What have the models got to do with the request?!

he say he the models and i don"t have i just asked for it

OciXCrom 12-07-2016 05:19

Re: [REQ] VIP+ADMIN+Owner Skins Plugin
 
You don't need the models to make the code.

ironskillz1 12-07-2016 09:20

Re: [REQ] VIP+ADMIN+Owner Skins Plugin
 
Quote:

Originally Posted by yas17sin (Post 2475730)
can you please post the models here

If you want to use your own models and admin ranks you can easily edit these lines in the plugin.

Code:

enum _:enumPlayerModels
{
        Owner,
        Admin,
        Vip
}

new const Player_Level[enumPlayerModels][] =
{
        ADMIN_LEVEL_C, //owner
        ADMIN_BAN, //admin
        ADMIN_LEVEL_H //vip
}

new const Player_Models[enumPlayerModels][] =
{
        {"models/player/lamdaskins/ownerct.mdl", "models/player/lamdaskins/ownert.mdl"},
        {"models/player/lamdaskins/adminct.mdl", "models/player/lamdaskins/admint.mdl"},
        {"models/player/lamdaskins/vipct.mdl", "models/player/lamdaskins/vipt.mdl"}
}


yas17sin 12-08-2016 19:35

Re: [REQ] VIP+ADMIN+Owner Skins Plugin
 
thanks it work

SomewhereLost 01-23-2019 14:48

Re: [REQ] VIP+ADMIN+Owner Skins Plugin
 
Quote:

L 25/06/2018 - 12:57:59: (map "mini_dust") Mod_LoadModel: odels/player/owner_ct/owner_ct.mdl not found
L 25/06/2018 - 12:58:10: (map "de_dust2") Mod_LoadModel: odels/player/owner_ct/owner_ct.mdl not found
L 25/06/2018 - 12:58:21: (map "de_dust2") Mod_LoadModel: odels/player/owner_ct/owner_ct.mdl not found
L 25/06/2018 - 12:581: (map "de_dust2") Mod_LoadModel: odels/player/owner_ct/owner_ct.mdl not found
Missing "m" after loadmodel.


All times are GMT -4. The time now is 12:05.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.