Bem este plugin foi criado pelo Satelite eu só editei.
Nele você pode adicionar 4 skins para 4 determinados ranks.
Vamos lá.
\* Flags */
Models Masters (Flag "n")
Models Admins Homens (Flag "s")
Models Admins Mulheres (Flag "q")
Models Donos (Flag "a")
\* Diretórios */
new const mas_tr[] = "master_tr";
new const mas_ct[] = "master_ct
new const adm_tr[] = "admin_tr";
new const adm_ct[] = "admin_ct
new const fem_tr[] = "fem_tr";
new const fem_ct[] = "fem_ct
new const don_tr[] = "dono_tr";
new const don_ct[] = "dono_ct
Vou alterar a de master aí no caso ficaria assim:
new const mas_tr[] = "josh_master_tr";
new const mas_ct[] = "josh_master_ct";
Daí ficaria assim
models/player/josh_master_tr/master_tr.mdl
models/player/josh_master_ct/master_ct.mdl
SMA:
Nele você pode adicionar 4 skins para 4 determinados ranks.
Vamos lá.
\* Flags */
Models Masters (Flag "n")
Models Admins Homens (Flag "s")
Models Admins Mulheres (Flag "q")
Models Donos (Flag "a")
\* Diretórios */
new const mas_tr[] = "master_tr";
new const mas_ct[] = "master_ct
new const adm_tr[] = "admin_tr";
new const adm_ct[] = "admin_ct
new const fem_tr[] = "fem_tr";
new const fem_ct[] = "fem_ct
new const don_tr[] = "dono_tr";
new const don_ct[] = "dono_ct
Vou alterar a de master aí no caso ficaria assim:
new const mas_tr[] = "josh_master_tr";
new const mas_ct[] = "josh_master_ct";
Daí ficaria assim
models/player/josh_master_tr/master_tr.mdl
models/player/josh_master_ct/master_ct.mdl
SMA:
- Código:
/*
Atencao em editar para nao ter erros
*Detalhes
Models Masters (Flag "n")
Models Admins Homens (Flag "s")
Models Admins Mulheres (Flag "q")
Models Donos (Flag "a")
*Editar diretorio em
* new const mas_tr[] = "master_tr";
* new const mas_ct[] = "master_ct";
*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#pragma semicolon 1
#define PLUGIN "DONO MASTER ADMIN and VIP Models"
#define VERSAO "3.0"
#define AUTHOR "Satelite edited by Josh"
//*~ Acesso aos Models ~*//
#define ACESS_MAS_MODEL ADMIN_LEVEL_B
#define ACESS_ADM_MODEL ADMIN_LEVEL_G
#define ACESS_FEM_MODEL ADMIN_LEVEL_E
#define ACESS_DON_MODEL ADMIN_LEVEL_A
#define ATIVAR_MAS_MODEL (get_pcvar_num(szMasModel) == 1)
#define ATIVAR_ADM_MODEL (get_pcvar_num(szAdmModel) == 1)
#define ATIVAR_FEM_MODEL (get_pcvar_num(szFemModel) == 1)
#define ATIVAR_DON_MODEL (get_pcvar_num(szDonModel) == 1)
//*~ Models de Master ~*//
#if defined ATIVAR_MAS_MODEL
new const mas_tr[] = "master_tr";
new const mas_ct[] = "master_ct";
#endif
//*~ Models de Admin ~*//
#if defined ATIVAR_ADM_MODEL
new const adm_tr[] = "admin_tr";
new const adm_ct[] = "admin_ct";
#endif
//*~ Model de Menina ~*//
#if defined ATIVAR_FEM_MODEL
new const fem_tr[] = "fem_tr";
new const fem_ct[] = "fem_ct";
#endif
//*~ Models de Dono ~*//
#if defined ATIVAR_DON_MODEL
new const don_tr[] = "dono_tr";
new const don_ct[] = "dono_ct";
#endif
new szMasModel, szAdmModel, szFemModel, szDonModel;
public plugin_init() {
register_plugin( PLUGIN, VERSAO, AUTHOR );
szMasModel = register_cvar( "models_mas", "1" );
szAdmModel = register_cvar( "models_adm", "1" );
szFemModel = register_cvar( "models_fem", "1" );
szDonModel = register_cvar( "models_don", "1" );
register_event("ResetHUD", "reset_models", "a");
return PLUGIN_CONTINUE;
}
public plugin_precache() {
new szFile[256];
new TrPrecache[64], CtPrecache[64];
#if defined ATIVAR_MAS_MODEL
formatex( TrPrecache, 63, "models/player/%s/%s.mdl", mas_tr, mas_tr );
formatex( CtPrecache, 63, "models/player/%s/%s.mdl", mas_ct, mas_ct );
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", mas_tr, mas_tr);
if(file_exists(szFile))
precache_model(szFile);
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", mas_ct, mas_ct);
if(file_exists(szFile))
precache_model(szFile);
#endif
#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_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
#if defined ATIVAR_DON_MODEL
formatex( TrPrecache, 63, "models/player/%s/%s.mdl", don_tr, don_tr );
formatex( CtPrecache, 63, "models/player/%s/%s.mdl", don_ct, don_ct );
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", don_tr, don_tr);
if(file_exists(szFile))
precache_model(szFile);
formatex(szFile, charsmax(szFile), "models/player/%s/%sT.mdl", don_ct, don_ct);
if(file_exists(szFile))
precache_model(szFile);
#endif
precache_model( TrPrecache );
precache_model( CtPrecache );
return PLUGIN_CONTINUE;
}
public reset_models( index, level, cid ) {
new CsTeams:userTeam = cs_get_user_team( index );
#if defined ATIVAR_MAS_MODEL
if(get_pcvar_num(szMasModel)) {
if( access( index, ACESS_MAS_MODEL )) {
cs_set_user_model( index, userTeam == CS_TEAM_CT ? mas_ct : mas_tr);
}
}
#endif
#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_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
#if defined ATIVAR_DON_MODEL
if(get_pcvar_num(szDonModel)) {
if( access( index, ACESS_DON_MODEL )) {
cs_set_user_model( index, userTeam == CS_TEAM_CT ? don_ct : don_tr);
}
}
#endif
return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/