What do i write to make that
T gets 1 skin
and CT gets another skin
This is my plugin:
Code:
#include <amxmodx>
#include <cstrike>
public plugin_init()
{
register_plugin("m0rfin's Custom Models" , "0.1" , "m0rfin");
register_event("ResetHUD" , "event_ResetHUD" , "f");
}
public plugin_precache()
{
// notice the path structure
precache_model("player/gign/slewme.mdl");
}
public event_ResetHUD(id)
set_task(1.0 , "set_model" , id);
public set_model(id)
{
if(is_user_alive(id)) // check if the player is alive
{
// get the player's auth id
new authid[33];
get_user_authid(id , authid , 32);
// check the player's authid for a match
if(equal(authid , "STEAM_0:1:3611893"))
{
// and finally set the model
cs_set_user_model(id , "slewme");
}
}
}