Adding police commands
#4

Well I suggest you get the general knowledge about Control Structures before even attempting something like this.

You would start by making an enumerator or a player variable.

You would make a variable equal the Police faction you are making.

You would then make a command and add an 'if' statement to check if the player's variable is equivalent to the police faction.

From there on, you can pretty much make any RP faction out there. Here is how you would start. You would use your own variables of course.

This is ZCMD btw. One of the most widely used command processors out there. Very simple to use.
pawn Код:
CMD:rcsd(playerid,params[])
{
    if(pInfo[playerid][pFaction] == 2)
    {
        //code here
    }
}
Goodluck.
Reply


Messages In This Thread
Adding police commands - by Joshswag - 22.02.2012, 05:37
Re: Adding police commands - by JamesC - 22.02.2012, 05:54
Re: Adding police commands - by Joshswag - 23.02.2012, 05:25
Re: Adding police commands - by ReneG - 23.02.2012, 05:57

Forum Jump:


Users browsing this thread: 2 Guest(s)