Raised This Month: $32 Target: $400
 8% 

Solved unkown code error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode