is it possible to change the hostage model!
well this is what i came up with, but when i put it in the server crashes?
i dnt know why either!
Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
public plugin_init(){
register_plugin("changemodel","0.1","0~~ sperm")
register_event("ResetHUD","newRound","b")
// Call newRound() when the round is over
}
public newRound(id){
checkModel(id)
}
public plugin_precache(){
precache_model("player/hostige/hostige.mdl")
return PLUGIN_CONTINUE
//
// Just precache the model, so if the user does not have it, they have to download
//
}
public checkModel(id){
cs_get_hostage_id(id)
if ( cs_get_hostage_id(id) )
{
entity_set_model(id, "player/hostige/hostige.mdl")
}
return PLUGIN_HANDLED
}
thank you
im trying to get it for my Diablo 3 server: 69.93.73.214:27015
__________________