How to create command /san
#9

You don't need sscanf for commands with only one parameter:
pawn Код:
CMD:san(playerid, params[]) {
    new id = strval(params);
    if(isnull(id)) return SendClientMessage(playerid, -1, "USAGE: /san [id]");
    SetPlayerPos(id, X, Y, Z);
    //SetPlayerFacingAngle(id, Angle); //Optional, but replace 'Angle' with your own float
    return 1;
}
Reply


Messages In This Thread
How to create command /san - by RiChArD_A - 26.01.2013, 21:06
Re: How to create command /san - by mineralo - 26.01.2013, 21:29
Respuesta: Re: How to create command /san - by RiChArD_A - 29.01.2013, 03:11
Re: How to create command /san - by Threshold - 29.01.2013, 03:14
Respuesta: Re: How to create command /san - by RiChArD_A - 29.01.2013, 03:16
Re: How to create command /san - by Threshold - 29.01.2013, 03:19
Respuesta: How to create command /san - by RiChArD_A - 29.01.2013, 03:32
Re: Respuesta: Re: How to create command /san - by Dolph - 29.01.2013, 08:00
Re: How to create command /san - by Mean - 29.01.2013, 08:04
Re: How to create command /san - by Threshold - 29.01.2013, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)