I can't understand a damn thing from this
http://forums.alliedmods.net/showthread.php?t=69386 because the codes are scrambled across the page...
also I found this in some plugins:
PHP Code:
engfunc(EngFunc_SetClientKeyValue, id, engfunc(EngFunc_GetInfoKeyBuffer, id), "model", "model_name")
but doesn't seem to work... it worked for an older plugin of mine but for a plain simple plugin it doesn't...
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_clcmd("test_model", "test_model")
}
public plugin_precache()
{
precache_model("models/player/vip/vip.mdl")
}
public test_model(id)
{
engfunc(EngFunc_SetClientKeyValue, id, engfunc(EngFunc_GetInfoKeyBuffer, id), "model", "vip")
return PLUGIN_HANDLED
}
__________________