Čaues, mam takovej problémek mám JailBreak Server, a chtěl bych aby šlo změnit terroristum skin , a CT skin.
Našel jsem na webu tohle ->
Kód: Vybrat vše
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
new gModel[] = "models/player/modelname/modelname.mdl"
new pcvarFlag
new bool:IsAdmin[33]
public plugin_init()
{
register_plugin("Playermodel handler", "1.3.3.7", "Jelle")
pcvarFlag = register_cvar("model_flag", "b")
RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", true)
}
public plugin_precache()
{
precache_model(gModel)
}
public client_putinserver(id)
{
IsAdmin[id] = false
}
public client_authorized(id)
{
new string[10]
get_pcvar_string(pcvarFlag, string, 9)
if ( !(get_user_flags(id) & read_flags(string)) )
{
IsAdmin[id] = false
}
else
{
IsAdmin[id] = true
}
}
public ham_PlayerSpawn_Post(id)
{
if ( cs_get_user_team(id) == CS_TEAM_UNASSIGNED || cs_get_user_team(id) == CS_TEAM_SPECTATOR ) return
if ( IsAdmin[id] && is_user_alive(id) )
{
cs_set_user_model(id, "modelname")
}
}
Kód: Vybrat vše
Syntax:
cs_set_user_model ( index, const model[] )
Type:
Native
Notes:
index is a player index from 1 to 32.
model is set as "gign" or "leet", for example, NOT "models/player/gign/gign.mdl".
Co je to za plugin , a kam tyto info vložit.
