Kann mir einer helfen ? bin am verzweifeln.
unzwr hätte ich gerne das wen man nach dem Teleport /race an einer zufälligen stelle in einem auto spawnt hab schon mit "PutPlayerInVehicle" versucht hat aber nicht geklappt.
new spawns = random(10);
switch(spawns)
{
case 0: SetPlayerPos(playerid, 2230.6431,2149.8181,114.9838);
case 1: SetPlayerPos(playerid, 2230.4485,2143.8806,114.9334);
case 2: SetPlayerPos(playerid, 2229.1787,2138.8018,114.8775);
case 3: SetPlayerPos(playerid, 2230.0186,2133.5354,114.8241);
case 4: SetPlayerPos(playerid, 2230.6431,2149.8181,114.9838);
case 5: SetPlayerPos(playerid, 2230.6431,2149.8181,114.9838);
case 6: SetPlayerPos(playerid, 2230.6431,2149.8181,114.9838);
case 7: SetPlayerPos(playerid, 2230.6431,2149.8181,114.9838);
case 8: SetPlayerPos(playerid, 2230.6431,2149.8181,114.9838);
case 9: SetPlayerPos(playerid, 2230.6431,2149.8181,114.9838);
}
return 1;
}
new carspawn = random(10);
switch(carspawn)
{
case 0: PutPlayerInVehicle(playerid, 411);
case 1: PutPlayerInVehicle(playerid, 411);
case 2: PutPlayerInVehicle(playerid, 411);
case 3: PutPlayerInVehicle(playerid, 411);
case 4: PutPlayerInVehicle(playerid, 411);
case 5: PutPlayerInVehicle(playerid, 411);
case 6: PutPlayerInVehicle(playerid, 411);
case 7: PutPlayerInVehicle(playerid, 411);
case 8: PutPlayerInVehicle(playerid, 411);
case 9: PutPlayerInVehicle(playerid, 411);
}
return 1;
Danke im vorraus