Hello,
Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
public plugin_init()
{
register_plugin( "VIP MODELS", "1.0", "ArtHa" );
RegisterHam( Ham_Spawn, "player", "FnHamSpawn", 1 );
}
public plugin_precache()
{
precache_model("models/player/vip_ct/vip_ct.mdl");
precache_model("models/player/vip_t/vip_t.mdl");
}
public FnHamSpawn(id)
{
if(is_user_alive(id))
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
if(cs_get_user_team(id) == CS_TEAM_CT)
{
cs_set_user_model(id,"vip_ct")
}
else if(cs_get_user_team(id) == CS_TEAM_T)
{
cs_set_user_model(id,"vip_t")
}
}
}
}
Everything looks good, but after some time of playing, with this plugin i get:
eK* ArtHa overflowed
Reliable channel overflowed
__________________