10.09.2010, 13:42
it is very very simple to make a 4 parameter command i will show you, its pretty much this one piece of code that does it:
This will set 4 people of your choice to those co-ordinates
It really is that simple, the "u" means a username or an id, so you can type in part of a players name or an id.
If you wanted a /givecash command for example, you would use:
"ui"
for the username and the i for the interval (ammount),
if you wanted a string, you would use s, thats for like a /kick reason command
pawn Код:
new id,id2,id3,id4;
if(sscanf(params,"uuuu",id,id2,id3,id4)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /bring p1 p2 p3 p4");
SetPlayerPos(id,2384.60, -1674.36, 14.75);
SetPlayerPos(id2,2384.60, -1674.36, 14.75);
SetPlayerPos(id3,2384.60, -1674.36, 14.75);
SetPlayerPos(id4,2384.60, -1674.36, 14.75);
It really is that simple, the "u" means a username or an id, so you can type in part of a players name or an id.
If you wanted a /givecash command for example, you would use:
"ui"
for the username and the i for the interval (ammount),
if you wanted a string, you would use s, thats for like a /kick reason command