23.04.2012, 18:51
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.
Note: Please Change PlayerInfo[i][CarX] to Your_Enum_Name[i][CarX] and so on.
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);
}
}