•  
     

amx_adminmodel_top15.sma - Top15 ganha bonecos bonitos - Top1 ganha robô - Admin ganha bonecos bonitos pra homem e mulher

Código: Selecionar todos

#include <amxmodx>
#include <cstrike>
#include <csx> 
 
enum
{
        TEAM_UNASSIGNED,
        TEAM_T,
        TEAM_CT,
        TEAM_SPECTATOR
};
 
public plugin_precache()
{
    precache_model("models/player/acemprol_cttop15/acemprol_cttop15.mdl")
    precache_model("models/player/acemprol_ttop15/acemprol_ttop15.mdl")
    precache_model("models/player/acemprol_ctfemale/acemprol_ctfemale.mdl")
    precache_model("models/player/acemprol_tfemale2/acemprol_tfemale2.mdl")
    precache_model("models/player/acemprol_terminator/acemprol_terminator.mdl") 
    precache_model("models/player/acemprol_robocop/acemprol_robocop.mdl")
}
 
public plugin_init()
{
        register_plugin("Admin Models", "1.0", "hleV e Anderson");
        register_event("ResetHUD", "ResetHUD", "be");
}
 
public ResetHUD(Client)
{

        if (!is_user_alive(Client))
                return;
        new izStats[8] = {0, ...} 
        new izBody[8] 
        new iRankPos 
        iRankPos = get_user_stats(Client, izStats, izBody); 
        new CsTeams:Team = cs_get_user_team(Client);
        
        switch (Team)
        {
                case TEAM_T:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "acemprol_terminator");
                        else if (iRankPos == 2) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "acemprol_tfemale2");
                        else cs_reset_user_model(Client);
                }
                case TEAM_CT:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "acemprol_robocop");
                        else if (iRankPos == 2) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 14) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "acemprol_ctfemale");
                        else cs_reset_user_model(Client);
                }
        }
        
}


amx_adminmodel_top15_admins.sma
(4.67 KiB) Transferido 230 vezes


Download de modelos bonitos: http://www.gurubr.com/melhores-players- ... -t426.html
 
Esse plugin os adm ganha boneco bonito e o master ganha terminator e robocop ?
 
So uma duvida anderson se eu quiser instalar um skin diferente dessas apenas pra adms como ficaria o sma? Sem alterar as skin do top15 e sem admin mulher
 
Da hor4 u.Ú
 

Código: Selecionar todos

#include <amxmodx>
#include <cstrike>
#include <csx>
 
enum
{
        TEAM_UNASSIGNED,
        TEAM_T,
        TEAM_CT,
        TEAM_SPECTATOR
};
 
public plugin_precache()
{
    precache_model("models/player/acemprol_cttop15/acemprol_cttop15.mdl")
    precache_model("models/player/acemprol_ttop15/acemprol_ttop15.mdl")
    precache_model("models/player/acemprol_ctpredator/predator_ctadmin.mdl")
    precache_model("models/player/acemprol_tpredator/predator_tadmin.mdl")
    precache_model("models/player/acemprol_terminator/acemprol_terminator.mdl")
    precache_model("models/player/acemprol_robocop/acemprol_robocop.mdl")
}
 
public plugin_init()
{
        register_plugin("Admin Models", "1.0", "hleV e Anderson");
        register_event("ResetHUD", "ResetHUD", "be");
}
 
public ResetHUD(Client)
{

        if (!is_user_alive(Client))
                return;
        new izStats[8] = {0, ...}
        new izBody[8]
        new iRankPos
        iRankPos = get_user_stats(Client, izStats, izBody);
        new CsTeams:Team = cs_get_user_team(Client);
       
        switch (Team)
        {
                case TEAM_T:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "acemprol_terminator");
                        else if (iRankPos == 2) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "acemprol_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "acemprol_terminator");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "acemprol_tpredator");
                        else cs_reset_user_model(Client);
                }
                case TEAM_CT:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "acemprol_robocop");
                        else if (iRankPos == 2) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 14) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "acemprol_cttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "acemprol_robocop");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "acemprol_ctpredator");
                        else cs_reset_user_model(Client);
                }
        }
       
}


Ae Anderson ve se fico certo

Vou colocar essas skin como exemplo:

TR
Imagem

CT
Imagem
 
a pasta tem que ter o mesmo nome do download

aqui está errado:

Código: Selecionar todos

precache_model("models/player/acemprol_tpredator/predator_tadmin.mdl")



O certo seria


Código: Selecionar todos

precache_model("models/player/acemprol_tpredator/acemprol_tpredator.mdl")
 
Anderson Escreveu:a pasta tem que ter o mesmo nome do download

aqui está errado:

Código: Selecionar todos

precache_model("models/player/acemprol_tpredator/predator_tadmin.mdl")



O certo seria


Código: Selecionar todos

precache_model("models/player/acemprol_tpredator/acemprol_tpredator.mdl")


a mam por isso nao queria funfa com james bonde e coringa quando eu coloquei...
 
É só criar uma pasta em models > player depois substituir pelo que tem na sma.

Se lá tem models > player > admintr [Exemplo]
admintr seria o nome da pasta onde você vai por a model
Depois adiciona a model na pasta e bota o mesmo nome na sma, e por fim compila a sma.
 

Código: Selecionar todos

#include <amxmodx>
#include <cstrike>
#include <csx> 
 
enum
{
        TEAM_UNASSIGNED,
        TEAM_T,
        TEAM_CT,
        TEAM_SPECTATOR
};
 
public plugin_precache()
{
    precache_model("models/player/ultraforum_cttop15/ultraforum_cttop15.mdl")
    precache_model("models/player/ultraforum_ttop15/ultraforum_ttop15.mdl")
    precache_model("models/player/ultraforum_devilmycray/ultraforum_devilmycray.mdl") 
    precache_model("models/player/ultraforum_justiceiro/ultraforum_justiceiro.mdl")
    precache_model("models/player/ultraforum_admct/ultraforum_admct.mdl")
    precache_model("models/player/ultraforum_admtr/ultraforum_admtr.mdl")

}
 
public plugin_init()
{
        register_plugin("Admin Models", "1.0", "hleV e Anderson");
        register_event("ResetHUD", "ResetHUD", "be");
}
 
public ResetHUD(Client)
{

        if (!is_user_alive(Client))
                return;
        new izStats[8] = {0, ...} 
        new izBody[8] 
        new iRankPos 
        iRankPos = get_user_stats(Client, izStats, izBody); 
        new CsTeams:Team = cs_get_user_team(Client);
        
        switch (Team)
        {
                case TEAM_T:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "ultraforum_devilmycray");
                        else if (iRankPos == 2) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "ultraforum_admtr");
                        else cs_reset_user_model(Client);
                }
                case TEAM_CT:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "ultraforum_justiceiro");
                        else if (iRankPos == 2) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 14) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "ultraforum_admct");
                        else cs_reset_user_model(Client);
                }
        }
        
}


A e Anderson ve se esta certo..
 

Código: Selecionar todos

#include <amxmodx>
#include <cstrike>
#include <csx> 
 
enum
{
        TEAM_UNASSIGNED,
        TEAM_T,
        TEAM_CT,
        TEAM_SPECTATOR
};
 
public plugin_precache()
{
    precache_model("models/player/ultraforum_cttop15/ultraforum_cttop15.mdl")
    precache_model("models/player/ultraforum_ttop15/ultraforum_ttop15.mdl")
    precache_model("models/player/ultraforum_ctfemale/ultraforum_ctfemale.mdl")
    precache_model("models/player/ultraforum_tfemale2/ultraforum_tfemale2.mdl")
    precache_model("models/player/ultraforum_terminator/ultraforum_terminator.mdl") 
    precache_model("models/player/ultraforum_robocop/ultraforum_robocop.mdl")
}
 
public plugin_init()
{
        register_plugin("Admin Models", "1.0", "hleV");
        register_event("ResetHUD", "ResetHUD", "be");
}
 
public ResetHUD(Client)
{

        if (!is_user_alive(Client))
                return;
        new izStats[8] = {0, ...} 
        new izBody[8] 
        new iRankPos 
        iRankPos = get_user_stats(Client, izStats, izBody); 
        new CsTeams:Team = cs_get_user_team(Client);
        
        switch (Team)
        {
                case TEAM_T:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "ultraforum_terminator");
                        else if (iRankPos == 2) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "ultraforum_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "ultraforum_tfemale2");
                        else cs_reset_user_model(Client);
                }
                case TEAM_CT:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "ultraforum_robocop");
                        else if (iRankPos == 2) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 14) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "ultraforum_cttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "ultraforum_ctfemale");
                        else cs_reset_user_model(Client);
                }
        }
        
}


ve se vai