Bom e o segunte no meu servidor tem uma menina q joga la de vip eu queria colocar uma skin so pra ela de mulher.
mais eu n sei como q faz isso! alguem pode me ajudar?
mais eu n sei como q faz isso! alguem pode me ajudar?
Código:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#pragma semicolon 1
#define PLUGIN "MODELS MENU"
#define VERSAO "1.0"
#define AUTHOR "MODELS"
//*~ Acesso aos Models ~*//
#define ACESS_ADM_MODEL ADMIN_LEVEL_D
#define ACESS_MST_MODEL ADMIN_LEVEL_F
#define ACESS_FEM_MODEL ADMIN_LEVEL_G
#define ATIVAR_ADM_MODEL (get_pcvar_num(szAdmModel) == 1)
#define ATIVAR_MST_MODEL (get_pcvar_num(szMSTModel) == 1)
#define ATIVAR_FEM_MODEL (get_pcvar_num(szFemModel) == 1)
//*~ Models de Admin ~*//
#if defined ATIVAR_ADM_MODEL
new const adm_tr[] = "impulsev2_admin1_te";
new const adm_ct[] = "impulsev2_admin1_ct";
#endif
//*~ Model de MST ~*//
#if defined ATIVAR_MST_MODEL
new const MST_tr[] = "impulsev2_master_te";
new const MST_ct[] = "impulsev2_master_ct";
#endif
//*~ Model de Menina ~*//
#if defined ATIVAR_FEM_MODEL
new const fem_tr[] = "impulsev2_girls_te";
new const fem_ct[] = "impulsev2_girls_ct";
#endif
new szAdmModel, szMSTModel, szFemModel;
public plugin_init() {
register_plugin( PLUGIN, VERSAO, AUTHOR );
szAdmModel = register_cvar( "models_adm", "1" );
szMSTModel = register_cvar( "models_MST", "1" );
szFemModel = register_cvar( "models_fem", "1" );
register_event("ResetHUD", "servidor_models", "b");
return PLUGIN_CONTINUE;
}
public plugin_precache() {
new szFile[256];
new TrPrecache[64], CtPrecache[64];
#if defined ATIVAR_ADM_MODEL
formatex( TrPrecache, 63, "models/player/%s/%s.mdl", adm_tr, adm_tr );
formatex( CtPrecache, 63, "models/player/%s/%s.mdl", adm_ct, adm_ct );
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", adm_tr, adm_tr);
if(file_exists(szFile))
precache_model(szFile);
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", adm_ct, adm_ct);
if(file_exists(szFile))
precache_model(szFile);
#endif
#if defined ATIVAR_MST_MODEL
formatex( TrPrecache, 63, "models/player/%s/%s.mdl", MST_tr, MST_tr );
formatex( CtPrecache, 63, "models/player/%s/%s.mdl", MST_ct, MST_ct );
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", MST_tr, MST_tr);
if(file_exists(szFile))
precache_model(szFile);
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", MST_ct, MST_ct);
if(file_exists(szFile))
precache_model(szFile);
#endif
#if defined ATIVAR_FEM_MODEL
formatex( TrPrecache, 63, "models/player/%s/%s.mdl", fem_tr, fem_tr );
formatex( CtPrecache, 63, "models/player/%s/%s.mdl", fem_ct, fem_ct );
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", fem_tr, fem_tr);
if(file_exists(szFile))
precache_model(szFile);
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", fem_ct, fem_ct);
if(file_exists(szFile))
precache_model(szFile);
#endif
precache_model( TrPrecache );
precache_model( CtPrecache );
return PLUGIN_CONTINUE;
}
public satelite_models( index, level, cid ) {
new CsTeams:userTeam = cs_get_user_team( index );
#if defined ATIVAR_ADM_MODEL
if(get_pcvar_num(szAdmModel)) {
if( access( index, ACESS_ADM_MODEL )) {
cs_set_user_model( index, userTeam == CS_TEAM_CT ? adm_ct : adm_tr);
}
}
#endif
#if defined ATIVAR_MST_MODEL
if(get_pcvar_num(szMSTModel)) {
if( access( index, ACESS_MST_MODEL )) {
cs_set_user_model( index, userTeam == CS_TEAM_CT ? MST_ct : MST_tr );
}
}
#endif
#if defined ATIVAR_FEM_MODEL
if(get_pcvar_num(szFemModel)) {
if( access( index, ACESS_FEM_MODEL )) {
cs_set_user_model( index, userTeam == CS_TEAM_CT ? fem_ct : fem_tr );
}
}
#endif
return PLUGIN_CONTINUE;
}
|
|