11.08.2011, 08:09
pawn Code:
COMMAND:spawncar(playerid, params[])
{
new vehicleid, color1, color2;
if(!sscanf(params, "iii", vehicleid, color1, color2))
{
new vin;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
vin=CreateVehicle(vehicleid, x, y, z, 0.0, color1, color2, -1);
PutPlayerInVehicle(playerid, vin, 0);
}else{
SendClientMessage(playerid, COLOR_GREY, "ERROR: This command requires: /spawncar [vehicleid][color1][color2]");
}
return 1;
}