AVS Vehicle issue.
#6

alright tested it as a filterscript everything works great there is only one thing i cant get is this public filterscriptexit

so okay if i wanted to add this on my gamemode and not as a filterscript were should i add all this


ino is public OnFilterScriptExit() would it be like ongamemodeexit ??
Код:
public OnFilterScriptExit()
{
	KillTimer(maintimer);
	KillTimer(speedotimer);
	KillTimer(savetimer);
	//TextDrawDestroy(SpeedoBox);
	for(new i=0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			OnPlayerDisconnect(i, 1);
		}
	}
	for(new i=1; i < MAX_DVEHICLES; i++)
	{
		if(VehicleCreated[i])
		{
			DestroyVehicle(VehicleID[i]);
			if(VehicleCreated[i] == VEHICLE_DEALERSHIP)
			{
				Delete3DTextLabel(VehicleLabel[i]);
			}
		}
	}
	for(new i=1; i < MAX_DEALERSHIPS; i++)
	{
		if(DealershipCreated[i])
		{
			Delete3DTextLabel(DealershipLabel[i]);
		}
	}
	for(new i=1; i < MAX_FUEL_STATIONS; i++)
	{
		if(FuelStationCreated[i])
		{
			Delete3DTextLabel(FuelStationLabel[i]);
		}
	}
	print("\n------------------------------------------------");
	print("     Advanced Vehicle System 1.0 Unloaded");
	print("------------------------------------------------\n");
	return 1;
}
Reply


Messages In This Thread
AVS Vehicle issue. - by OpticKiller - 16.05.2013, 01:00
Re: AVS Vehicle issue. - by horsemeat - 16.05.2013, 01:09
Re: AVS Vehicle issue. - by OpticKiller - 16.05.2013, 01:17
Re: AVS Vehicle issue. - by horsemeat - 16.05.2013, 01:24
Re: AVS Vehicle issue. - by OpticKiller - 16.05.2013, 01:30
Re: AVS Vehicle issue. - by OpticKiller - 16.05.2013, 01:42
Re: AVS Vehicle issue. - by horsemeat - 16.05.2013, 02:15
Re: AVS Vehicle issue. - by OpticKiller - 16.05.2013, 02:17
Re: AVS Vehicle issue. - by horsemeat - 16.05.2013, 02:20

Forum Jump:


Users browsing this thread: 1 Guest(s)