Server doesn't destroy vehcile
#1

Next problem. Server destroy's vehicle only for id 0.

OnPlayerDeath & OnPlayerDisconnect

Код:
//top of gamemode
new VehicleSpawn[MAX_PLAYERS];
//callbacks
DestroyVehicle(VehicleSpawn[playerid]);
//OnPlayerConnect
if(INI_Open(getVINI(playerid)))
    {
   		VehicleSpawn[playerid] = CreateVehicle(INI_ReadInt("Model"), INI_ReadFloat("PosX"), INI_ReadFloat("PosY"), INI_ReadFloat("PosZ")+2, INI_ReadFloat("PosA"), -1, -1, never);
    	VehicleFuel[VehicleSpawn[playerid]] = INI_ReadInt("Paliwo");
    	SendClientMessage(playerid, JasnyNiebieski, "blal");
		INI_Save();
    	INI_Close();
	}
Reply
#2

Anyone can help ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)