05.04.2011, 13:27
pawn Код:
dcmd_vehicle(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/vehicle [id]");
new v = strval(params);
if(v < 400 || v > 611) return SendClientMessage(playerid, COLOR, "Invalid vehicleid");
new Float:x, Float:y, Float:z, Float:az;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, az);
x += (5.00 * floatsin(-a, degrees));
y += (5.00* floatcos(-a, degrees));
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
return 1;
}