SA-MP Forums Archive
How to block skins in 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to block skins in skin selection? (/showthread.php?tid=78790)



How to block skins in skin selection? - FreddeN - 23.05.2009

In my script I have some skins I dont want players to choose, it's only leader skins etc...
How can I do that?

If it's possible, I want the player to ket killed if he choose that skin.

Thanks!

//FreddeN




Re: How to block skins in skin selection? - OmeRinG - 23.05.2009

OnPlayerRequestSpawn:
if (GetPlayerSkin(playerid) == UNWANTED_SKIN) { return 0; }


Re: How to block skins in skin selection? - MenaceX^ - 23.05.2009

Quote:
Originally Posted by OmeRinG
OnPlayerRequestSpawn:
if (GetPlayerSkin(playerid) == UNWANTED_SKIN) { return 0; }
You can also loop it if there are alot of skins that are unwanted.
OmeRing - the brackets are useless.


Re: How to block skins in skin selection? - FreddeN - 23.05.2009

Can I add it to:

Код:
    case 0:
    {
    	GameTextForPlayer(playerid,"~n~~n~~n~~r~Leader Only, choose this skin will get you kicked!",1500,3);
			{
		         SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,2512.5608,-1672.9667,13.5011);
				SetPlayerFacingAngle(playerid,64.2249);
				SetPlayerCameraPos(playerid,2508.3335,-1671.0104,13.3804);
				SetPlayerCameraLookAt(playerid,2512.5608,-1672.9667,13.5011);
				SetPlayerColor(playerid,0x33AA33AA);
				SetPlayerTeam(playerid,1);
				ApplyAnimation(playerid, "PLAYIDLES", "TIME", 4.1,1,1,1,1,1);
			}
	  }