SA-MP Forums Archive
Select male>Female skin Seclect female>Remale skin - 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: Select male>Female skin Seclect female>Remale skin (/showthread.php?tid=492682)



Select male>Female skin Seclect female>Remale skin - PatrickShifflett - 04.02.2014

Well when my player pick male they will spawn with a female skin and the feamle is fine how do I fix the skin for the male when he spawns?

Alos here is the spawn

Код:
   if(dialogid == DIALOG_SPAWN)
    {
		if(response || !response)
		{
			
			for(new x;x<10000;x++)
						{
							new rand=random(300);
							if(PlayerInfo[playerid][pSex] == 0)
							{
								if(IsValidSkin(rand))
								{
									PlayerInfo[playerid][pModel] = rand;
									SetPlayerSkin(playerid, rand);
									break;
								}
							}
							else
							{
								if(IsFemaleSkin(rand))
								{
									PlayerInfo[playerid][pModel] = rand;
									SetPlayerSkin(playerid, rand);
									break;
								}
							}
						}



Re: Select male>Female skin Seclect female>Remale skin - PatrickShifflett - 04.02.2014

This part if(response || !response) ?


Re: Select male>Female skin Seclect female>Remale skin - PatrickShifflett - 04.02.2014

Any more help?