Raised This Month: $51 Target: $400
 12% 

[Req] Skins+AmxWho


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xDevil
Junior Member
Join Date: Jun 2020
Old 06-18-2020 , 06:25   [Req] Skins+AmxWho
Reply With Quote #1

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
xDevil is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 06-18-2020 , 10:39   Re: [Req] Skins+AmxWho
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=317034
__________________
Relaxing is offline
Old 06-18-2020, 22:38
Supremache
This message has been deleted by Supremache.
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-18-2020 , 22:39   Re: [Req] Skins+AmxWho
Reply With Quote #3

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



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
Attached Files
File Type: sma Get Plugin or Get Source (admincmd.sma - 143 views - 30.2 KB)

Last edited by Supremache; 06-18-2020 at 22:44.
Supremache is offline
xDevil
Junior Member
Join Date: Jun 2020
Old 06-19-2020 , 12:54   Re: [Req] Skins+AmxWho
Reply With Quote #4

Thanks, But I need Skins Owner/Admin/vip
xDevil is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-19-2020 , 22:24   Re: [Req] Skins+AmxWho
Reply With Quote #5

Quote:
Originally Posted by xDevil View Post
Thanks, But I need Skins Owner/Admin/vip
Want it for ct and t or ct only ???
Supremache is offline
xDevil
Junior Member
Join Date: Jun 2020
Old 06-21-2020 , 05:10   Re: [Req] Skins+AmxWho
Reply With Quote #6

It's BB Mod so for CT
xDevil is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-22-2020 , 12:58   Re: [Req] Skins+AmxWho
Reply With Quote #7

Okey wait iam not at my home
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-22-2020 , 13:26   Re: [Req] Skins+AmxWho
Reply With Quote #8

Quote:
Originally Posted by xDevil View Post
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)

Supremache is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-22-2020 , 13:40   Re: [Req] Skins+AmxWho
Reply With Quote #9

@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) }
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
xDevil
Junior Member
Join Date: Jun 2020
Old 06-23-2020 , 05:02   Re: [Req] Skins+AmxWho
Reply With Quote #10

Thanks but there are skins ?
xDevil is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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