Ceci serait-il juste?:public OnPlayerSpawn(playerid)
{
new Float:VehicleSpawns[5][4] = { //le 5 c le nombre de spawn diferent
{1958.3783, 1343.1572, 15.3746}, // c les coord du spawn X, Y, Z
{2804.9016,-1701.9983,9.9238},
{-1990.2650,90.2470,27.6799},
{-1776.8184,432.8395,16.7607},
{-2100.0176,292.5576,37.2376}
};
new velc;
new rand = random(sizeof(VehicleSpawns));
{
velc = CreateVehicle(500, VehicleSpawns[rand][0], VehicleSpawns[rand][1], VehicleSpawns[rand][2], VehicleSpawns[rand][3], -1, -1, 4000000000000000000);
PutPlayerInVehicle(playerid, velc, 0);
}
return 1;
}
EDIT: On vient de tester, sa marche