Hello guys!
Im trying to change the Model by my Steamid:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <zombieplague>
public plugin_init() {
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
}
public plugin_precache()
{
precache_model("models/player/mottzi/mottzi.mdl")
}
public fwHamPlayerSpawnPost(id)
{
set_task(3.0, "model_set1", id)
}
public model_set1(id)
{
if(is_user_alive(id) && !zp_get_user_zombie(id))
{
new steamid[36]
get_user_authid(id, steamid, 35)
if(equal(steamid , "STEAM_0:1:18593568"))
{
cs_set_user_model(id, "mottzi")
}
}
}
Model Prechached, and Its in the Player Folder but why it dont works?!
Please Help me guys i rly need that.
__________________