new PlayerCar[MAX_PLAYERS];
public OnPlayerDisconnect(playerid, reason)
{
DestroyVehicle(PlayerCar[playerid]);
PlayerCar[playerid] = 0;
return 1;
}
public OnPlayerSpawn(playerid)
{
new Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid, Angle);
PlayerCar[playerid] = CreateVehicle(411, X, Y, Z, Angle, -1, -1, 60);
return 1;
}
Hab den Code mal verbessert.