Scripting help.
#4

^ Then you can use if statements or switches to determine whether they are or are not in a faction.

Like so:

pawn Код:
if(PlayerInfo[playerid][pFaction] == 1 && PlayerInfo[playerid][pRank] == 6) //Lets say faction 1 is LSPD and they are leader (rank 6)
{
    //What happens if they are in the LSPD
}
else return SendClientMessage(playerid, -1, "You are not in that faction!");

//Or

switch(PlayerInfo[playerid][pFaction])
{
    case 1: //LSPD
    {
        //Do something here if they are LSPD
    }
    case 2: //Faction 2
    {
        //Do something here if they are in faction 2
    }
}
Reply


Messages In This Thread
Scripting help. - by Tamara - 13.08.2012, 23:33
Re: Scripting help. - by Kindred - 14.08.2012, 00:00
Re : Scripting help. - by Sandiel - 14.08.2012, 00:04
Re: Scripting help. - by Kindred - 14.08.2012, 00:07
Re: Scripting help. - by StrangeLove - 14.08.2012, 00:07
Re : Scripting help. - by Sandiel - 14.08.2012, 00:10
Re: Scripting help. - by Kindred - 14.08.2012, 01:15
Re: Scripting help. - by Tamara - 14.08.2012, 01:39

Forum Jump:


Users browsing this thread: 1 Guest(s)