28.07.2015, 21:49
Thanks, does not work, Perhaps this evil my code .
PHP код:
CMD:front(playerid, params[])
{
new Float:pos[4], Float:fX, Float:fZ;
GetVehiclePos(GetPlayerVehicleID(playerid), pos[0], pos[1], pos[2]);
GetVehicleModelInfo(GetPlayerVehicleID(playerid), VEHICLE_MODEL_INFO_SIZE, fX, pos[3], fZ);
GetXYInFrontOfVehicle(GetPlayerVehicleID(playerid), pos[0], pos[1], pos[3]);
CreateVehicle(411, pos[0], pos[1], pos[2], pos[3], random(126), random(126), (60*60), 0);
return true;
}
CMD:behind(playerid, params[])
{
new Float:pos[4], Float:fX, Float:fZ;
GetVehiclePos(GetPlayerVehicleID(playerid), pos[0], pos[1], pos[2]);
GetVehicleModelInfo(GetPlayerVehicleID(playerid), VEHICLE_MODEL_INFO_SIZE, fX, pos[3], fZ);
GetXYBehindVehicle(GetPlayerVehicleID(playerid), pos[0], pos[1], pos[3]);
CreateVehicle(411, pos[0], pos[1], pos[2], pos[3], random(126), random(126), (60*60), 0);
return true;
}