Restrict a player skin
#8

Quote:
Originally Posted by Mencent
Посмотреть сообщение
PHP код:
if(skinid >= 280 || skinid <=289
The skin ID should be in range of 280-289 so AND must be used.

Like Golden96 said, you don't use a parameter for IsACopSkin in the statement and both can be written a little better:
pawn Код:
IsACopSkin(skinid)
{
    return (280 <= skinid <= 289);
}

IsPlayerFED(playerid)
{
    switch (PlayerInfo[playerid][playerteam])
    {
        case COPS, EMS, POLITIC, SASF, FBI: return 1;
    }
    return 0;
}
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)