Ok, so the the plugin compiles and everything but the model does not set. Can anybody find out why? By the model not setting I mean that it does not load at spawn. And it precaches but it wont load.
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
new Master_admin
new MasteR_ID[33]= "STEAM_0:1:14718661"
public plugin_init() {
register_plugin("", "", "")
register_event("ResetHUD", "spawn_event", "be")
}
public plugin_precache()
{
precache_model("models/player/gign_everyone_else/gign_everyone_else.mdl")
precache_model("models/player/gsg9_bambi_aka_special/gsg9_bambi_aka_special.mdl")
}
public Spawn_event(id)
{
if(is_user_admin(id))
{
set_task(2.0,"spawned",id)
}
}
public spawned(id)
{
if(id == Master_admin)
{
cs_set_user_model(id, "gsg9_bambi_aka_special")
//set your model heer
}
else
{
cs_set_user_model(id, "gign_everyone_else")
//Set defult admin model
}
}
public client_connect(id)
{
new authid[32]
get_user_authid(id,authid,31)
if(equal(MasteR_ID,authid))
{
Master_admin= id
}
}
public client_disconnect(id)
{
if(id == Master_admin)
{
Master_admin= 99999999999
}
}