Thread: [Solved] unkown code error
View Single Post
Author Message
man_s_our
Senior Member
Join Date: Jul 2017
Location: aim_taliban
Old 08-19-2017 , 09:18   unkown code error
Reply With Quote #1

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])
}

Last edited by man_s_our; 03-25-2018 at 19:26.
man_s_our is offline