I coded this after many compiling errors, but when Itried it it didn't work.
it was suposed to be used to change the skin to a random one from the list.
any help?
Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
new p_skin[33][32]
new const models[] = {
"player/gign/gign.mdl",
"player/gsg9/gsg9.mdl",
"player/sas/sas.mdl",
"player/spetsnaz/spetsnaz.mdl",
};
public plugin_init()
{
register_plugin("imerge","1","man_s_our")
register_concmd("imerge", "imerge",0)
return PLUGIN_CONTINUE
}
public imerge(id)
{
get_user_info(id,"model",p_skin[id],31);
new mod = random(3);
new model = models[mod];
cs_set_user_model(id, models[mod])
return PLUGIN_CONTINUE
}
public new_round(id)
{
cs_set_user_model(id, p_skin[id])
}