Restrict a player skin
#1

Hi.
I got this code, and this line doesn't seem to be working:
if(!IsACopSkin && !IsPlayerFED(playerid)) return 0;
Pawno says it has an invalid syntax / function.
Can someone help me with this please? Thanks.
Код:
	{
		new iSkin;
		if(sscanf(params, "d", iSkin)) return SCP(playerid, "[skin id]");
		if(!IsValidSkin(iSkin)) return SCP(playerid, "[skin id]");
		if(!IsACopSkin && !IsPlayerFED(playerid)) return 0;
		else
		{
        GivePlayerMoneyEx(playerid, -350);
		SetPlayerSkin(playerid, iSkin);
		dUserSetINT(PlayerName(playerid)).("skin",iSkin);
		PlayerInfo[playerid][Skin] = iSkin;
		return 1;
		}
		return 1;
	}
Reply


Messages In This Thread
Restrict a player skin - by justjamie - 29.03.2016, 16:27
Re: Restrict a player skin - by justjamie - 29.03.2016, 16:29
Re: Restrict a player skin - by Skimmer - 29.03.2016, 16:31
Re: Restrict a player skin - by justjamie - 29.03.2016, 16:35
Re: Restrict a player skin - by Skimmer - 29.03.2016, 16:36
Re: Restrict a player skin - by Golden96 - 29.03.2016, 16:36
Re: Restrict a player skin - by Mencent - 29.03.2016, 16:38
Re: Restrict a player skin - by Konstantinos - 29.03.2016, 16:44
Re: Restrict a player skin - by Mencent - 29.03.2016, 16:46
Re: Restrict a player skin - by justjamie - 29.03.2016, 17:17

Forum Jump:


Users browsing this thread: 1 Guest(s)