26.07.2010, 17:47
pawn Код:
#include <a_samp>
new Float:RandCoords[4][4] = {
// 0 1 2 3
// X Y Z Angle
{1023.79, -976.95, 43.14, 270.0}, // 0
{1197.05, -1001.90, 32.88, 270.0}, // 1
{1250.04, -904.73, 42.53, 270.0}, // 2
{1284.84, -994.44, 38.5, 270.0} // 3
};
public OnVehicleSpawn(vehicleid)
{
if(GetVehicleModel(vehicleid) == 562) {
new Rand = random(4);
SetVehiclePos(vehicleid, RandCoords[Rand][0], RandCoords[Rand][1], RandCoords[Rand][2]);
SetVehicleZAngle(vehicleid, RandCoords[Rand][3]);
}
return 1;
}