SA-MP Forums Archive
Server doesn't destroy vehcile - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server doesn't destroy vehcile (/showthread.php?tid=330229)



Server doesn't destroy vehcile - DJGama101 - 31.03.2012

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();
	}



Re: Server doesn't destroy vehcile - DJGama101 - 02.04.2012

Anyone can help ?