Skin Selection - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread:  Skin Selection (
/showthread.php?tid=659723)
 
Skin Selection - 
KamilPolska -  14.10.2018
How to make skins < Women Men >. E.g. The left button has skins for women and the right button has skins for men.
I have to do it on variables? Skins_Women and Skins_Men.
Re: Skin Selection - 
KamilPolska -  14.10.2018
Edit: I mean the class of women and men.
Re: Skin Selection - 
KamilPolska -  14.10.2018
Okay. I wanted to use AddPlayerClass
Re: Skin Selection - 
KamilPolska -  15.10.2018
How can I use this for AddPlayerClass in OnGameModeInit ?
Re: Skin Selection - 
KamilPolska -  16.10.2018
He wants to make clicking the left button are women's skins and the right men skins button. HELP!
Код:
public OnGameModeInit()
{
	for(new i, j = sizeof(g_aMaleSkins); i < j; i++) 
	{
		AddPlayerClass(g_aMaleSkins[i], -1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
	}
	for(new i, j = sizeof(g_aFemaleSkins); i < j; i++) 
	{
		AddPlayerClass(g_aFemaleSkins[i], -1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
	}
	return 1;
}