Już problem zażegnany
//====================//
#pragma compress 1
//====================//
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
enum _:REGISTER_PLUGIN { PLUGIN, VERSION, AUTHOR, URL, DESCRIPTION };
new const myinfo[REGISTER_PLUGIN][] = {
" [ mPlayers » Models ] ",
"1.0.0",
"mpN`",
"AmxxPro.pl",
"Podmienia modele postaci by mpN`"
};
public plugin_init() {
register_plugin(
.plugin_name = myinfo[PLUGIN],
.version = myinfo[VERSION],
.author = myinfo[AUTHOR],
.url = myinfo[URL],
.description = myinfo[DESCRIPTION]
);
RegisterHam(Ham_Spawn, "player", "mModels_Revival", 1);
}
public plugin_precache(){
precache_model("models/player/CT-ESL/CT-ESL.mdl");
precache_model("models/player/TT-ESL/TT-ESL.mdl");
}
public mModels_Revival(iClient){
if(is_user_alive(iClient) && is_user_connected(iClient)){
if(get_user_team(iClient) == 1) cs_set_user_model(iClient, "TT-ESL");
else if(get_user_team(iClient) == 2) cs_set_user_model(iClient, "CT-ESL");
else cs_reset_user_model(iClient);
}
}
Trzeba zrobić dodatkowy folder CT-ESL i TT-ESL i tam modele z nazwami CT-ESL.mdl i TT-ESL.mdl