Multi-Parameter Commands!
#5

Using the same way just without the second specific, parameter.

pawn Код:
CMD:goto(playerid, params[])
{
      new giveplayerid;
      if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, -1, "USAGE: /goto [playerid]");
     
      new Float: x, Float: y, Float: z;
      GetPlayerPos(giveplayerid, x, y, z);
      SetPlayerPos(playerid, x, y, z);
     
      return 1;
}
Reply


Messages In This Thread
Multi-Parameter Commands! - by ironmen - 07.06.2015, 20:44
Re: Multi-Parameter Commands! - by Abagail - 07.06.2015, 20:51
Re: Multi-Parameter Commands! - by ironmen - 07.06.2015, 20:55
Re: Multi-Parameter Commands! - by ironmen - 07.06.2015, 21:00
Re: Multi-Parameter Commands! - by Abagail - 07.06.2015, 21:02
Re: Multi-Parameter Commands! - by ironmen - 07.06.2015, 21:04
Re: Multi-Parameter Commands! - by Abagail - 07.06.2015, 21:10
Re: Multi-Parameter Commands! - by ironmen - 08.06.2015, 05:30

Forum Jump:


Users browsing this thread: 1 Guest(s)