Adding police commands - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Adding police commands (
/showthread.php?tid=320223)
Adding police commands -
Joshswag - 22.02.2012
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
Re: Adding police commands -
JamesC - 22.02.2012
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.
Re: Adding police commands -
Joshswag - 23.02.2012
I don't want somebody to do it for me, I just need some help thats all; Calm down.
Re: Adding police commands -
ReneG - 23.02.2012
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.