•  
     

Ajuda Urgente???

Entrei aqui e procurei sobre ADMINS Por Flag. Me Passaram um Plugin Daqui.

Quando Coloco no Servidor.
O Server Não Abre Me Ajudem????

Codigo Abaixo...
O que há de errado??


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/STB/santabrisa_cttop15/santabrisa_cttop15.mdl")
    precache_model("models/STB/santabrisa_ttop15/santabrisa_ttop15.mdl")
    precache_model("models/STB/santabrisa_ctfemale/santabrisa_ctfemale.mdl")
    precache_model("models/STB/santabrisa_tfemale2/santabrisa_tfemale2.mdl")
    precache_model("models/STB/santabrisa_terminator/santabrisa_terminator.mdl") 
    precache_model("models/STB/santabrisa_robocop/santabrisa_robocop.mdl")
    precache_model("models/STB/santabrisa_coringaTR.mdl")
    precache_model("models/STB/santabrisa_coringaTRT.mdl")
    precache_model("models/STB/santabrisa_morte.mdl")
    precache_model("models/STB/santabrisa_nicoly.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, "santabrisa_terminator");
                        else if (iRankPos == 2) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "santabrisa_tfemale2");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_H) cs_set_user_model(Client, "santabrisa_morte");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_B) cs_set_user_model(Client, "santabrisa_coringa");
                        else cs_reset_user_model(Client);
                }
                case TEAM_CT:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "santabrisa_robocop");
                        else if (iRankPos == 2) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 14) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "santabrisa_cttop15");
                          else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_H) cs_set_user_model(Client, "santabrisa_morte");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "santabrisa_ctfemale");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_B) cs_set_user_model(Client, "santabrisa_nicoly");
                        else cs_reset_user_model(Client);
                }
        }
        
}

Última edição por matheusina em 05 dez 2014 02:47, editado 1 vez no total.
 
Apenas Editei pra Por em Meu Server Mais Começou da Erro de Nao Abrir O Server.
 
Colocou os modelos na pasta certa no Server?
 
Anderson Escreveu:Colocou os modelos na pasta certa no Server?





coloquei sim ai..

Imagem
 
Coloca na pasta player

Exemplo:

Código: Selecionar todos

precache_model("models/player/guruqa_ct/guruqa_ct.mdl");
 
Anderson Escreveu:Coloca na pasta player

Exemplo:

Código: Selecionar todos

precache_model("models/player/guruqa_ct/guruqa_ct.mdl");



Assim???


Código: Selecionar todos

public plugin_precache()
{
    precache_model("models/player/santabrisa_cttop15/santabrisa_cttop15.mdl")
    precache_model("models/player/santabrisa_ttop15/santabrisa_ttop15.mdl")
    precache_model("models/player/santabrisa_ctfemale/santabrisa_ctfemale.mdl")
    precache_model("models/player/santabrisa_tfemale2/santabrisa_tfemale2.mdl")
    precache_model("models/player/santabrisa_terminator/santabrisa_terminator.mdl") 
    precache_model("models/player/santabrisa_robocop/santabrisa_robocop.mdl")
    precache_model("models/player/santabrisa_coringaTR.mdl")
    precache_model("models/player/santabrisa_coringaTRT.mdl")
    precache_model("models/player/santabrisa_morte.mdl")
    precache_model("models/player/santabrisa_nicoly.mdl")
}
 
matheusina Escreveu:
Anderson Escreveu:Coloca na pasta player

Exemplo:

Código: Selecionar todos

precache_model("models/player/guruqa_ct/guruqa_ct.mdl");



Assim???


Código: Selecionar todos

public plugin_precache()
{
    precache_model("models/player/santabrisa_cttop15/santabrisa_cttop15.mdl")
    precache_model("models/player/santabrisa_ttop15/santabrisa_ttop15.mdl")
    precache_model("models/player/santabrisa_ctfemale/santabrisa_ctfemale.mdl")
    precache_model("models/player/santabrisa_tfemale2/santabrisa_tfemale2.mdl")
    precache_model("models/player/santabrisa_terminator/santabrisa_terminator.mdl") 
    precache_model("models/player/santabrisa_robocop/santabrisa_robocop.mdl")
    precache_model("models/player/santabrisa_coringaTR.mdl")
    precache_model("models/player/santabrisa_coringaTRT.mdl")
    precache_model("models/player/santabrisa_morte.mdl")
    precache_model("models/player/santabrisa_nicoly.mdl")
}



#Enfim Fiz Isso Mas continua o Mesmo Problema.
Quando dou Restart no Server. O Server não quer Abrir =\
 
Tem erro aqui:

Código: Selecionar todos

    precache_model("models/player/santabrisa_coringaTR.mdl")
    precache_model("models/player/santabrisa_coringaTRT.mdl")
    precache_model("models/player/santabrisa_morte.mdl")
    precache_model("models/player/santabrisa_nicoly.mdl")


O nome da pasta tem que ser igual ao do modelo
 
Anderson Escreveu:Tem erro aqui:

Código: Selecionar todos

    precache_model("models/player/santabrisa_coringaTR.mdl")
    precache_model("models/player/santabrisa_coringaTRT.mdl")
    precache_model("models/player/santabrisa_morte.mdl")
    precache_model("models/player/santabrisa_nicoly.mdl")


O nome da pasta tem que ser igual ao do modelo



Ja fiz e mesmo assim quando coloco o plugin no server.
O Server não abre =x desisto ja disso cansei.


Imagem

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/santabrisa_cttop15/santabrisa_cttop15.mdl")
    precache_model("models/player/santabrisa_ttop15/santabrisa_ttop15.mdl")
    precache_model("models/player/santabrisa_ctfemale/santabrisa_ctfemale.mdl")
    precache_model("models/player/santabrisa_tfemale2/santabrisa_tfemale2.mdl")
    precache_model("models/player/santabrisa_terminator/santabrisa_terminator.mdl") 
    precache_model("models/player/santabrisa_robocop/santabrisa_robocop.mdl")
    precache_model("models/player/santabrisa_coringaTR/santabrisa_coringaTR.mdl")
    precache_model("models/player/santabrisa_coringaTR/santabrisa_coringaTRT.mdl")
    precache_model("models/player/santabrisa_morte/santabrisa_morte.mdl")
    precache_model("models/player/santabrisa_nicoly/santabrisa_nicoly.mdl")
}
 
public plugin_init()
{
        register_plugin("Admin Models SantaBrisa", "1.0", "Matheus Inacio");
        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, "santabrisa_terminator");
                        else if (iRankPos == 2) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_H) cs_set_user_model(Client, "santabrisa_morte");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "santabrisa_ctfemale");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_B) cs_set_user_model(Client, "santabrisa_nicoly");
                        else cs_reset_user_model(Client);
                }
                case TEAM_CT:
                {
                        if (iRankPos == 1) cs_set_user_model(Client, "santabrisa_robocop");
                        else if (iRankPos == 2) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 3) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 4) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 5) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 6) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 7) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 8) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 9) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 10) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 11) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 12) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 13) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 14) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (iRankPos == 15) cs_set_user_model(Client, "santabrisa_cttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_C) cs_set_user_model(Client, "santabrisa_ttop15");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_H) cs_set_user_model(Client, "santabrisa_morte");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_D) cs_set_user_model(Client, "santabrisa_ctfemale");
                        else if (get_user_flags(Client) & ADMIN_LEVEL_B) cs_set_user_model(Client, "santabrisa_nicoly");
                        else cs_reset_user_model(Client);
                }
        }
        
}
 
nao ta na pasta certa cara

Código: Selecionar todos

    precache_model("models/player/santabrisa_coringaTR.mdl")
    precache_model("models/player/santabrisa_coringaTRT.mdl")
    precache_model("models/player/santabrisa_morte.mdl")
    precache_model("models/player/santabrisa_nicoly.mdl")


Código: Selecionar todos

precache_model("models/player/santabisa_nicoly/santabrisa_nicoly.mdl")