Loop through all dini files and load cars.
#2

You even need one more line for the Car Angle in this saving thingy.

To Spawn a Car for player when the Player Connects and destroys when he exits the server?
Use this stock anywhere you want to spawn the cars for every logged in player.
pawn Код:
stock GivePlayerCar()
{
for(new i=0;i>=MAX_PLAYERS;i++)
{
    AddStaticVehicle(PlayerInfo[i][CarModelID] ,PlayerInfo[i][CarX] ,PlayerInfo[i][CarY] ,PlayerInfo[i][CarZ] ,PlayerInfo[i][CarA] , 0, 1);

}
}
Note: Please Change PlayerInfo[i][CarX] to Your_Enum_Name[i][CarX] and so on.
Reply


Messages In This Thread
Loop through all dini files and load cars. - by Dan. - 23.04.2012, 18:41
Re: Loop through all dini files and load cars. - by Ballu Miaa - 23.04.2012, 18:51
Re: Loop through all dini files and load cars. - by AndreT - 23.04.2012, 18:58
Re: Loop through all dini files and load cars. - by Ballu Miaa - 24.04.2012, 02:36
Re: Loop through all dini files and load cars. - by antonio112 - 24.04.2012, 09:54

Forum Jump:


Users browsing this thread: 2 Guest(s)