Give armour To Only V.I.P'S
#3

Enums are somewhat better.
for example:
pawn Код:
enum pInfo
{
Vip
}
new PlayerInfo[MAX_PLAYERS][pInfo];

CMD:givemearmour(playerid, params[])
{
    if(PlayerInfo[playerid][Vip] >= 1)
    {
        SetPlayerArmour(playerid, 100);
    }
return 1;
}
Ofcourse, you should save it too. But i'm not going that deep to tell you now.
Reply


Messages In This Thread
Give armour To Only V.I.P'S - by California_ - 25.01.2013, 21:19
Re: Give armour To Only V.I.P'S - by Roach_ - 25.01.2013, 21:21
Re: Give armour To Only V.I.P'S - by Neil. - 25.01.2013, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)