How to block skins in skin selection?
#1

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

Reply
#2

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

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.
Reply
#4

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);
			}
	  }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)