A Couple things I need help on. (;
#7

pawn Код:
new Stranger[MAX_PLAYERS]; //Global Var

CMD:mask(playerid, params[])
{
    if(PInfo[playerid][pFaction] == factionid)
    {
        if(PInfo[playerid][pMask] == 0)
        {
            PlayerInfo[playerid][pMask] = 1;
            SendClientMessage(playerid, 0xFFFFFF, "Mask ON.");
            Stranger[playerid]++;
            SetPlayerName(playerid, Stranger[playerid]);
        }
        else if(PInfo[playerid][pMask] == 1)
        {
            PlayerInfo[playerid][pMask] =0;
            SendClientMessage(playerid, 0xFFFFFF, "Mask OFF.");
            Stranger[playerid--;
            SetPlayerName(playerid, PInfo[playerid][pName]);
        }
    }
    else
    {
        SendClientMessage(playerid, 0xFFFFFF, "You're not allowed to do that.");
    }
    return 1;
}
I haven't scripting properly in a while.
Reply


Messages In This Thread
A Couple things I need help on. (; - by BleverCastard - 06.01.2012, 15:49
Re: A Couple things I need help on. (; - by Stigg - 06.01.2012, 15:52
Re: A Couple things I need help on. (; - by BleverCastard - 06.01.2012, 15:54
Re: A Couple things I need help on. (; - by Stigg - 06.01.2012, 15:57
Re: A Couple things I need help on. (; - by BleverCastard - 06.01.2012, 15:57
Re: A Couple things I need help on. (; - by BleverCastard - 06.01.2012, 16:14
Re: A Couple things I need help on. (; - by Luis- - 06.01.2012, 16:31
Re: A Couple things I need help on. (; - by BleverCastard - 06.01.2012, 16:33
Re: A Couple things I need help on. (; - by Luis- - 06.01.2012, 16:36
Re: A Couple things I need help on. (; - by BleverCastard - 06.01.2012, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)