AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Req] Skins+AmxWho (https://forums.alliedmods.net/showthread.php?t=325353)

xDevil 06-18-2020 06:25

[Req] Skins+AmxWho
 
Hello guys, I want some skins on codes for Owner+Admin+vip please
and I want amx_who codes
Owner
Co-Owner
Head Admin
Full Admin
Obican Admin
VIP
Tag

abcdefghijkmnopqrstu
bcdefghijkmnopqrstu
cdefghijkmnopq
defghijklmno
efghijklmno
hijklmno
b

Relaxing 06-18-2020 10:39

Re: [Req] Skins+AmxWho
 
https://forums.alliedmods.net/showthread.php?t=317034

Supremache 06-18-2020 22:39

Re: [Req] Skins+AmxWho
 
1 Attachment(s)
Quote:

Originally Posted by xDevil (Post 2706302)
Hello guys, I want some skins on codes for Owner+Admin+vip please
and I want amx_who codes
Owner
Co-Owner
Head Admin
Full Admin
Obican Admin
VIP
Tag

abcdefghijkmnopqrstu
bcdefghijkmnopqrstu
cdefghijkmnopq
defghijklmno
efghijklmno
hijklmno
b

I have did it before but with another sytle..

https://i.ibb.co/x8hdYPD/Console.png

I have combiered "admin_who with admin_cmd"

If you want to edit access or names
those are the code.
PHP Code:

#define MAX_GROUPS 9

// Amx_who admin access
new const szPrefix[] = { "Welcome To Our Server | ADMIN ACCESS" };
new 
g_groupNames[MAX_GROUPS][] = {
"[1] Vlasnik/Owner",
"[2] Co-Owner",
"[3] Head-Admin",
"[4] Full-Admin",
"[5] Super-Admin",
"[6] Junior-Admin",
"[7] Gold-Member ",
"[8] LEGEND ",
"[9] SUSPENDED"
}
new 
g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefginopqrst",
"bcdefjiopqrst",
"bcdejipqrst",
"bcdeiqrst",
"bcdeirst",
"bit",
"bt",
"b"


But remmber to change "#define MAX_GROUPS 9" number if you have did group flags

xDevil 06-19-2020 12:54

Re: [Req] Skins+AmxWho
 
Thanks, But I need Skins Owner/Admin/vip :)

Supremache 06-19-2020 22:24

Re: [Req] Skins+AmxWho
 
Quote:

Originally Posted by xDevil (Post 2706437)
Thanks, But I need Skins Owner/Admin/vip :)

Want it for ct and t or ct only ???

xDevil 06-21-2020 05:10

Re: [Req] Skins+AmxWho
 
It's BB Mod so for CT

Supremache 06-22-2020 12:58

Re: [Req] Skins+AmxWho
 
Okey wait iam not at my home

Supremache 06-22-2020 13:26

Re: [Req] Skins+AmxWho
 
Quote:

Originally Posted by xDevil (Post 2706668)
It's BB Mod so for CT

PHP Code:

/*
|
| v1.1 By MrAbdoO  // owner + admin + vip models for zm mod ( CT Only )
| v1.0 By OciXCrom // owner + admin models for plublic mod ( CT , T )
|
*/

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

enum _:ModelsInfo
{
    
Flag,
    
CTModel[32],
}

new const 
g_eModels[][ModelsInfo] =
{
    { 
ADMIN_LEVEL_A"GoOWNER" },
    { 
ADMIN_KICK"GoADMIN" },
    { 
ADMIN_LEVEL_H"GoVIP"}
}

new 
Trie:g_tModels

public plugin_init()
{
    
register_plugin("Multiple Player Models""2.0""MrAbdoO")
    
RegisterHam(Ham_SpawnModel"player""OnPlayerSpawn"1)
}

public 
plugin_end()
    
TrieDestroy(g_tModels)

public 
plugin_precache()
{
    
g_tModels TrieCreate()
    
    for(new 
isizeof(g_eModels); i++)
    {
        
precache_player_model(g_eModels[i][CTModel])
    }
}

public 
OnPlayerSpawn(id)
{
    if(
is_user_alive(id))
    {
        static 
bool:bMatchiFlagsi
        bMatch 
false
        
        
for(iFlags get_user_flags(id), 0sizeof(g_eModels); i++)
        {
            if(
iFlags g_eModels[i][Flag])
            {
                switch(
cs_get_user_team(id))
                {
                    case 
CS_TEAM_CTcs_set_user_model(idg_eModels[i][CTModel])
                }
                
                
bMatch true
                
break
            }
        }
        
        if(!
bMatch)
        {
            static 
szModel[32]
            
cs_get_user_model(idszModelcharsmax(szModel))
            
            if(
TrieKeyExists(g_tModelsszModel))
                
cs_reset_user_model(id)
        }
    }
}

precache_player_model(szModel[])
{
    
TrieSetCell(g_tModelsszModel1)
    
    static 
szFile[128]
    
formatex(szFilecharsmax(szFile), "models/player/%s/%s.mdl"szModelszModel)
    
precache_model(szFile)
    
replace(szFilecharsmax(szFile), ".mdl""T.mdl")
    
    if(
file_exists(szFile))
        
precache_model(szFile)



OciXCrom 06-22-2020 13:40

Re: [Req] Skins+AmxWho
 
@Supremache - changing the settings for the plugin doesn't make you its author. Breaking the plugin by replacing "Ham_Spawn" with "Ham_SpawnModel" for no reason doesn't help either.

Code:
#include <amxmodx> #include <cstrike> #include <hamsandwich> enum _:ModelsInfo {     Flag,     CTModel[32]/*,     TModel[32]*/ } new const g_eModels[][ModelsInfo] = {     { ADMIN_LEVEL_A, "owner_ct" },     { ADMIN_LEVEL_B, "admin_ct" } } new bool:g_bHasCustomSkin[33] public plugin_init() {     register_plugin("Multiple Player Models", "1.0", "OciXCrom")     RegisterHam(Ham_Spawn, "player", "OnPlayerSpawn", 1) } public plugin_precache() {     for(new i; i < sizeof(g_eModels); i++)     {         precache_player_model(g_eModels[i][CTModel])         //precache_player_model(g_eModels[i][TModel])     } } public client_putinserver(id)     g_bHasCustomSkin[id] = false public OnPlayerSpawn(id) {     if(is_user_alive(id))     {         new bool:bMatch         for(new iFlags = get_user_flags(id), i; i < sizeof(g_eModels); i++)         {             if(iFlags & g_eModels[i][Flag])             {                 switch(cs_get_user_team(id))                 {                     case CS_TEAM_CT: set_model(id, g_eModels[i][CTModel])                     //case CS_TEAM_T: set_model(id, g_eModels[i][TModel])                 }                 bMatch = true                 break             }         }         if(!bMatch && g_bHasCustomSkin[id])         {             g_bHasCustomSkin[id] = false             cs_reset_user_model(id)         }     } } set_model(const id, const szModel[]) {     cs_set_user_model(id, szModel)     g_bHasCustomSkin[id] = true } stock precache_player_model(const name[], &id = 0) {     new model[128]     formatex(model, charsmax(model), "models/player/%s/%sT.mdl", name, name)     if(file_exists(model))         id = precache_generic(model)     static const extension[] = "T.mdl"     #pragma unused extension     copy(model[strlen(model) - charsmax(extension)], charsmax(model), ".mdl")     return precache_model(model) }

xDevil 06-23-2020 05:02

Re: [Req] Skins+AmxWho
 
Thanks but there are skins ? :bacon!:


All times are GMT -4. The time now is 02:32.

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