Adding police commands
#1

Hey, Im about to release my Fort Carson Roleplay script, And before i do... I need somebody to help me add /Tazer, and also a /BCSD in the ammunation room
Reply
#2

This is not a 'GIMME TEH CODES' forum. Go elsewhere for that. Attempt at creating the commands yourself and we will help you along. Also, if you're asking people to spend their time doing something for you, at least be polite about it.
Reply
#3

I don't want somebody to do it for me, I just need some help thats all; Calm down.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)