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


Messages In This Thread
Server doesn't destroy vehcile - by DJGama101 - 31.03.2012, 19:49
Re: Server doesn't destroy vehcile - by DJGama101 - 02.04.2012, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)