SA-MP Forums Archive
[HELP] Can you see something wrong? - 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: [HELP] Can you see something wrong? (/showthread.php?tid=129757)



[HELP] Can you see something wrong? - FreddeN - 23.02.2010

I'm working on a script that will block unofficial players to pick special skin ids from the skin selection.

Код:
	if(GetPlayerSkin(playerid) == 280 || 150 || 284)
	{
	  if(PlayerInfo[playerid][pLAERank] >= 1)
	  {

		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "	You are not authorized to use that skin.");
    	return 0;
		}
	}
This blocks the skin ids but it also blocks all other skins that dont got anything to do with this skin ids.

Thanks


Re: [HELP] Can you see something wrong? - Niixie - 23.02.2010

What function did u put it in.
(sorz, for writing link an idiot, but ma' girlfriends (whai) buttom doesnt work <.<)


Re: [HELP] Can you see something wrong? - lameguy - 23.02.2010

pawn Код:
if(GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 150 || GetPlayerSkin(playerid) == 284)



Re: [HELP] Can you see something wrong? - Jeffry - 23.02.2010

Quote:
Originally Posted by Johnson_boy
pawn Код:
if(GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 150 || GetPlayerSkin(playerid) == 284)
Wow, you was faster. I wanted to say same.


Re: [HELP] Can you see something wrong? - FreddeN - 23.02.2010

Quote:
Originally Posted by Jeffry
Quote:
Originally Posted by Johnson_boy
pawn Код:
if(GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 150 || GetPlayerSkin(playerid) == 284)
Wow, you was faster. I wanted to say same.
hehe, thanks