29.07.2010, 07:45
(
Last edited by Kyosaur; 29/07/2010 at 08:04 AM.
)
Try this:
Code:
dcmd_incar(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2) { new Driver,Seat,Passenger; if (!sscanf(params,"uud",Driver,Passenger,Seat)) { new VehDr,VehPas; VehDr = GetPlayerVehicleID(Driver); VehPas = GetPlayerVehicleID(Passenger); if (VehDr>0) { PutPlayerInVehicle(VehDr,VehPas,Seat); return 1; } else { SendClientMessage(playerid,0xFF0000FF, "Error: Please specify a drive thats actually in a vehicle!"); return 1; } } SendClientMessage(playerid,0xFF0000FF, "Usage: \"/incar <PlayerID Driver> <PlayerID Passenger> <Seat>\""); return 1; } SendClientMessage(playerid,0xFF0000FF, "Error: You have to be level 2 to use this command!"); return 1; }