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

Skin On Flags!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Famdl
Junior Member
Join Date: Mar 2017
Old 05-26-2017 , 04:09   Skin On Flags!
Reply With Quote #1

Hi EveryOne . i need a Plugin to set A skin to who has Flag T and Set Different skin On whom Have Flag T+K( i Need Different Skins For Vips and Admins ) Can Anyone Help Me ?! Thanks

Sorry For Bad Eng

Last edited by Famdl; 05-26-2017 at 04:10.
Famdl is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 05-26-2017 , 07:54   Re: Skin On Flags!
Reply With Quote #2

search
DjSoftero is offline
sirerick
Senior Member
Join Date: Jul 2012
Location: Venezuela
Old 05-26-2017 , 08:17   Re: Skin On Flags!
Reply With Quote #3

test

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "admin models"
#define VERSION "1.0"
#define AUTHOR "SirErick"

enum _:modelsplayers
{
    
FLAG_K_CT,
    
FLAG_K_TT,
    
FLAG_T_CT,
    
FLAG_T_TT
}
enum _:models_player_set 
{
    
PLAYER_FLAG[64]
}
enum _FLAG_DATA_ADMIN
{
    
ADM_FLAG,
    
FLAG_ADM_SLOT
}

new const 
flags_Admin[][FLAG_DATA_ADMIN] = 
{
    { 
ADMIN_PASSWORD,             1},
    { 
ADMIN_LEVEL_H,           2}
}
new const 
admin_models[modelsplayers][models_player_set] = 

    { 
"CT_FLAG_K"}, // you models name here
    
"TT_FLAG_K"},
    { 
"CT_FLAG_T"},
    { 
"TT_FLAG_T"}


new 
g_acess[33]

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Spawn"player""PlayerPostSpawn"1);
}
public 
plugin_precache()
{
    new 
ibuffer[64]
    
    for(
0;sizeof admin_models;i++) 
    {     
        
formatex(buffersizeof buffer"models/player/%s/%s.mdl"admin_models[i][PLAYER_FLAG], admin_models[i][PLAYER_FLAG]);
        
precache_model(buffer);
    }

}
public 
client_putinserver(id)
{
    static 
flags_a
    flags_a 
get_user_flags(id);
        
    for(new 
sizeof flags_Admin i++ ) 
    {
        if(
flags_a flags_Admin[i][ADM_FLAG])
        { 
            
g_acess[id] = flags_Admin[i][FLAG_ADM_SLOT];
            break;
        }
    }
}
public 
client_disconnect(id)
{
    
g_acess[id] = 0
}    
public 
PlayerPostSpawn(id)
{
    if (!
is_user_alive(id))
        return;
        
    switch (
g_acess[id])
    {
        case 
1
        {
            switch (
cs_get_user_team(id))
            {
                case 
CS_TEAM_CTcs_set_user_model(idadmin_models[FLAG_K_CT][PLAYER_FLAG])
                case 
CS_TEAM_Tcs_set_user_model(idadmin_models[FLAG_K_TT][PLAYER_FLAG])
            }
        }
        case 
2
        {
            switch (
cs_get_user_team(id))
            {
                case 
CS_TEAM_CTcs_set_user_model(idadmin_models[FLAG_T_CT][PLAYER_FLAG])
                case 
CS_TEAM_Tcs_set_user_model(idadmin_models[FLAG_T_TT][PLAYER_FLAG])
            }
        }
    }
    

__________________
√ Zombie plague + greats updates. finished.
√ Surf-Mod level + greats updates Finished.
√ Zombie Scenario like cso. Finished.
Click Here
√ Call Of Duty MOD. Finished.
Click Here


Sorry for my bad english. I'm using translate.
sirerick 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 14:18.


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