10.03.2012, 03:11
I've scripted it somewhat, but I don't spawn in a vehicle.
How can I get it so all players spawn in the vehicle ID 434?
pawn Код:
public OnPlayerSpawn(playerid)
{
new RaceStarted;
RaceStarted = 1;
new vehid = GetPlayerVehicleID(playerid);
new ran = random(sizeof(Race1Spawns));
SetPlayerPos(playerid,Race1Spawns[ran][0],Race1Spawns[ran][1],Race1Spawns[ran][2]);
SetVehiclePos(vehid,Race1Spawns[ran][0],Race1Spawns[ran][1],Race1Spawns[ran][2]);
PutPlayerInVehicle(playerid,vehid,434);
return 1;
}