How to make race spawns?
#5

yeah. and
pawn Код:
new Float:RandomSpawns[][] =
theres a number that goes like
pawn Код:
new Float:RandomSpawns[][here] =
but im not sure what number to put.

pawn Код:
new vehid = GetPlayerVehicleID(playerid);
new ran = random(sizeof(RandomSpawns));
            SetPlayerPos(playerid,RandomSpawns[ran][0],RandomSpawns[ran][1],RandomSpawns[ran][2]);
            SetVehiclePos(vehid,RandomSpawns[ran][0],RandomSpawns[ran][1],RandomSpawns[ran][2]);
            PutPlayerInVehicle(playerid,vehid,0);
NOT TESTED

Or (not sure if i read it right) if you want a vehicle assigned do

pawn Код:
new ran = random(sizeof(RandomSpawns));
            SetPlayerPos(playerid,RandomSpawns[ran][0],RandomSpawns[ran][1],RandomSpawns[ran][2]);
            PutPlayerInVehicle(playerid,[vehicleid],0);
Reply


Messages In This Thread
How to make race spawns? - by rangerxxll - 10.03.2012, 02:08
Re: How to make race spawns? - by SnG.Scot_MisCuDI - 10.03.2012, 02:32
Re: How to make race spawns? - by rangerxxll - 10.03.2012, 02:34
Re: How to make race spawns? - by Shabi RoxX - 10.03.2012, 02:44
Re: How to make race spawns? - by SnG.Scot_MisCuDI - 10.03.2012, 02:44
Re: How to make race spawns? - by rangerxxll - 10.03.2012, 02:46
Re: How to make race spawns? - by rangerxxll - 10.03.2012, 03:11
Re: How to make race spawns? - by Reklez - 10.03.2012, 03:18
Re: How to make race spawns? - by rangerxxll - 10.03.2012, 03:26
Re: How to make race spawns? - by SnG.Scot_MisCuDI - 10.03.2012, 03:31

Forum Jump:


Users browsing this thread: 2 Guest(s)