How to make a command with an extra parameter?
#1

See, this is where pawn gets hard (for me). I want to know how I would make a command where you can use the command 2 (or more) times but with 2 different parameters.

e.g.
"/handsup 1" will:

pawn Код:
ApplyAnimation(playerid,"ROB_BANK","SHP_HandsUp_Scr",4.1,1,1,1,1,0);
"/handsup 2" will:

pawn Код:
ApplyAnimation(playerid,"PED","handsup",4.1,1,1,1,1,0);
If anyone could quickly just write the code for me and I'll be set for everything.

Please and thank you, credits will go to you.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)