Hi!I have another with precache model after using this tutorial:
http://forums.alliedmods.net/showthr...nu+item+native .I added in the zombie classes structure a model for the knife:
Code:
enum _:ClassData
{
ClassName[32],
ClassDes[32],
ClassModel[32],
ClassClaw[32],
ClassHP,
ClassSpeed,
ClassGrav
}
When the native wich registers the zombie class is called, i precache the model:
Code:
new zombieClaw[128]
formatex(zombieClaw, charsmax(zombieClaw), "models/zombie_deathmatch/%s", eClassData[ClassClaw])
precache_model(zombieClaw)
If a player plays on the server and he want's to see to model of the knife , the server crashes because the model is not precached.