sscanf | multiple sub-cmds for a sub-cmd.
#2

You can do this for the /car get command.

pawn Код:
CMD:carget(playerid, params[])
{
new vehicleid;
if (sscanf(params, "d", vehicleid)) SendClientMessage(playerid, -1, "USAGE: /carget [vehicleid]");
new
Float: x,
Float: y,
Float: z;
GetPlayerPos(playerid, x, y, z);
SetVehiclePos(vehicleid, x, y, z);
}
This would allow you to teleport a given vehicle to your position, - using ZCMD.
Reply


Messages In This Thread
sscanf | multiple sub-cmds for a sub-cmd. - by Itzhak E. - 16.03.2014, 22:20
Re: sscanf | multiple sub-cmds for a sub-cmd. - by Abagail - 16.03.2014, 22:30
Re: sscanf | multiple sub-cmds for a sub-cmd. - by CuervO - 17.03.2014, 00:00

Forum Jump:


Users browsing this thread: 1 Guest(s)