31.07.2013, 01:03
Carros nгo estгo spawnando e com certeza nгo estou podendo entrar neles..
pawn Код:
new StyleDriftCars[12];
OnGameModeInit
StyleDriftCars[0] = CreateVehicle(562, 2309.0168, 1415.0195, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[1] = CreateVehicle(562, 2312.0627, 1415.0404, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[2] = CreateVehicle(562, 2314.9653, 1415.1182, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[3] = CreateVehicle(562, 2317.7449, 1415.1484, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[4] = CreateVehicle(562, 2320.4241, 1415.2567, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[5] = CreateVehicle(562, 2323.2849, 1415.2682, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[6] = CreateVehicle(562, 2325.9602, 1415.3364, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[7] = CreateVehicle(562, 2328.7839, 1415.3462, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[8] = CreateVehicle(562, 2331.6245, 1415.3657, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[9] = CreateVehicle(562, 2334.3044, 1415.4020, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[10] = CreateVehicle(562, 2337.0647, 1415.4142, 42.5235, 0.0000, -1, -1, 100);
StyleDriftCars[11] = CreateVehicle(562, 2339.8459, 1415.3867, 42.5235, 0.0000, -1, -1, 100);
Comando para ir ao teleporte:
switch(random(12))
{
case 0:PutPlayerInVehicle(playerid,StyleDriftCars[0], 0);
case 1:PutPlayerInVehicle(playerid,StyleDriftCars[1], 0);
case 2:PutPlayerInVehicle(playerid,StyleDriftCars[2], 0);
case 3:PutPlayerInVehicle(playerid,StyleDriftCars[3], 0);
case 4:PutPlayerInVehicle(playerid,StyleDriftCars[4], 0);
case 5:PutPlayerInVehicle(playerid,StyleDriftCars[5], 0);
case 6:PutPlayerInVehicle(playerid,StyleDriftCars[6], 0);
case 7:PutPlayerInVehicle(playerid,StyleDriftCars[7], 0);
case 8:PutPlayerInVehicle(playerid,StyleDriftCars[8], 0);
case 9:PutPlayerInVehicle(playerid,StyleDriftCars[9], 0);
case 10:PutPlayerInVehicle(playerid,StyleDriftCars[10], 0);
case 11:PutPlayerInVehicle(playerid,StyleDriftCars[11], 0);
}