[HELP] Can you see something wrong?
#1

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
Reply
#2

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)