I did it like this but it doesn't work how its supposed to be i will try you way lets see if that works
Код:
if(SetSpawnCord == 0){
SetSpawnCord++;
Sumocars[playerid] = CreateVehicle(Sumocarspawn[randcar],
-1388.7997,
1280.1909,
1040.2384+1,
161.9468,
-1,-1,600);
}
else if(SetSpawnCord == 1){
SetSpawnCord++;
Sumocars[playerid] = CreateVehicle(Sumocarspawn[randcar],
-1422.0255,
1267.3906,
1040.1133+1,
236.3466,
-1,-1,600);
}
else if(SetSpawnCord == 2){
SetSpawnCord++;
Sumocars[playerid] = CreateVehicle(Sumocarspawn[randcar],
-1430.5059,
1239.6534,
1040.2374+1,
269.1644,
-1,-1,600);
}
else if(SetSpawnCord == 2){
SetSpawnCord++;
Sumocars[playerid] = CreateVehicle(Sumocarspawn[randcar],
-1416.6099,
1216.5471,
1040.2363+1,
323.6594,
-1,-1,600);
}
else if(SetSpawnCord == 3){
SetSpawnCord++;
Sumocars[playerid] = CreateVehicle(Sumocarspawn[randcar],
-1375.0413,
1218.0331,
1040.23573+1,
40.4086,
-1,-1,600);
}
else if(SetSpawnCord == 4){
SetSpawnCord++;
Sumocars[playerid] = CreateVehicle(Sumocarspawn[randcar],
-1362.3585,
1255.6079,
1040.2421+1,
100.4724,
-1,-1,600);
}
Thank You Deduction
Edit: It worked very good This will be useful for couple events that i plan on doing in my server