Gamemode problem
#5

Btw it works very good down here in the local.

GameModeInit:
Код:
public OnGameModeInit()
{
    Streamer_VisibleItems(STREAMER_TYPE_OBJECT, VISIBLE_ITEMS);
	djson_GameModeInit();
	AntiDeAMX();

	new hour, minute, second;
	print("[system] Please wait whilst the script initiates...");

	if(! fexist("Logs/AdminActions.log"))
	{
		dini_Create("Logs/AdminActions.log");
	}
	
	if(! fexist("Logs/ModeratorActions.log"))
	{
		dini_Create("Logs/ModeratorActions.log");
	}
	
	if(! fexist("Logs/Whitelist.log"))
	{
	    dini_Create("Logs/AdminActions.log");
	}

	if(! fexist("Logs/PMchat.log"))
	{
		dini_Create("Logs/PMchat.log");
	}

	if(! fexist("Logs/OOCChat.log"))
	{
		dini_Create("Logs/OOCChat.log");
	}

	if(! fexist("Logs/ICChat.log"))
	{
		dini_Create("Logs/ICChat.log");
	}
	
	if(! fexist("Logs/Bans.log"))
	{
		dini_Create("Logs/Bans.log");
	}
	
	if(! fexist("Logs/Unbans.log"))
	{
		dini_Create("Logs/Unbans.log");
	}
	
	if(! fexist("Logs/Money.log"))
	{
		dini_Create("Logs/Money.log");
	}
	
	if(! fexist("Logs/Stat.log"))
	{
		dini_Create("Logs/Stat.log");
	}
	
	if(! fexist("Logs/Namechanges.log"))
	{
		dini_Create("Logs/Namechanges.log");
	}
	
	if(! fexist("Logs/GroupChat.log"))
	{
		dini_Create("Logs/GroupChat.log");
	}

	gettime(hour, minute, second);
	#pragma unused minute
	#pragma unused second

	UsePlayerPedAnims();
	ManualVehicleEngineAndLights();
	EnableStuntBonusForAll(0);
	DisableInteriorEnterExits();
	LoadFilesIntoVars();

	SetGameModeText(VERSION);

	SetWorldTime(hour);

	// TRAIN
	AddStaticVehicle(538, -1946.0692, 183.2777, 26.7534, 355.7218, 24, 77);
	
	// DMV Merits
	DmvCar1 = AddStaticVehicleEx(551,1290.8246,-1876.9805,13.3474,0.0819,1,1,60);
    DmvCar2 = AddStaticVehicleEx(551,1294.8663,-1876.9318,13.3515,0.5316,1,1,60);
    DmvCar3 = AddStaticVehicleEx(551,1299.1188,-1876.8567,13.3530,0.1270,1,1,60);
    DmvCar4 = AddStaticVehicleEx(551,1303.3761,-1876.9111,13.3530,0.8521,1,1,60);
    
    //Pizzaboy Bike
    PizzaBike1 = AddStaticVehicleEx(448,2106.5969,-1784.7167,12.9845,2.5816,3,6,60);
    PizzaBike2 = AddStaticVehicleEx(448,2108.2314,-1784.7167,12.9866,359.2753,3,6,60);
    PizzaBike3 = AddStaticVehicleEx(448,2110.1655,-1784.71672,12.9861,1.0882,3,6,60);
    PizzaBike4 = AddStaticVehicleEx(448,2112.4841,-1784.7167,12.9860,355.1458,3,6,60);
    PizzaBike5 = AddStaticVehicleEx(448,2114.9968,-1784.7167,12.9852,359.2919,3,6,60);
    PizzaBike6 = AddStaticVehicleEx(448,2116.9883,-1784.7167,12.9865,359.1338,3,6,60);
    PizzaBike7 = AddStaticVehicleEx(448,2118.9883,-1784.7167,12.9865,359.1338,3,6,60);
    PizzaBike8 = AddStaticVehicleEx(448,2120.9883,-1784.7167,12.9865,359.1338,3,6,60);
    
	Fuel[DmvCar1] = 150;
	Fuel[DmvCar2] = 150;
	Fuel[DmvCar3] = 150;
	Fuel[DmvCar4] = 150;
	
	Fuel[PizzaBike1] = 150;
	Fuel[PizzaBike2] = 150;
	Fuel[PizzaBike3] = 150;
	Fuel[PizzaBike4] = 150;
	Fuel[PizzaBike5] = 150;
	Fuel[PizzaBike6] = 150;
	Fuel[PizzaBike7] = 150;
	Fuel[PizzaBike8] = 150;

	// Removed, please feel free to re-add this whenever you have a web URL to set folks!
	/*Textdraw1 = TextDrawCreate(1.000000,433.000000,"www.******.net");
	TextDrawAlignment(Textdraw1, 0);
	TextDrawBackgroundColor(Textdraw1, 0x000000ff);
	TextDrawFont(Textdraw1, 2);
	TextDrawLetterSize(Textdraw1, 0.499999,1.100000);
	TextDrawColor(Textdraw1, 0xffffffff);
	TextDrawSetOutline(Textdraw1, 1);
	TextDrawSetProportional(Textdraw1, 1);
	TextDrawSetShadow(Textdraw1, 1);*/

	// Phone Answer (inside vehicle)
	CellPhoneTextDrawInVehicle = TextDrawCreate(610.0, 400.0, "~r~ ~k~~VEHICLE_TURRETRIGHT~ ~w~to answer the call.");
	TextDrawUseBox(CellPhoneTextDrawInVehicle, 0);
	TextDrawFont(CellPhoneTextDrawInVehicle, 2);
	TextDrawSetShadow(CellPhoneTextDrawInVehicle, 0);
    TextDrawSetOutline(CellPhoneTextDrawInVehicle, 1);
    TextDrawBackgroundColor(CellPhoneTextDrawInVehicle, 0x000000FF);
    TextDrawColor(CellPhoneTextDrawInVehicle, 0xFFFFFFFF);
    TextDrawAlignment(CellPhoneTextDrawInVehicle, 3);

	// Phone Answer (out of vehicle)
	CellPhoneTextDraw = TextDrawCreate(610.0, 400.0, "~r~~k~~PED_DUCK~ ~w~to answer the call.");
	TextDrawUseBox(CellPhoneTextDraw, 0);
	TextDrawFont(CellPhoneTextDraw, 2);
	TextDrawSetShadow(CellPhoneTextDraw, 0);
    TextDrawSetOutline(CellPhoneTextDraw, 1);
    TextDrawBackgroundColor(CellPhoneTextDraw, 0x000000FF);
    TextDrawColor(CellPhoneTextDraw, 0xFFFFFFFF);
    TextDrawAlignment(CellPhoneTextDraw, 3);

     // Animation
	AnimationTextDraw = TextDrawCreate(610.0, 400.0, "~r~~k~~PED_JUMPING~ ~w~ to stop the animation.");
	TextDrawUseBox(AnimationTextDraw, 0);
	TextDrawFont(AnimationTextDraw, 2);
	TextDrawSetShadow(AnimationTextDraw, 0);
    TextDrawSetOutline(AnimationTextDraw, 1);
    TextDrawBackgroundColor(AnimationTextDraw, 0x000000FF);
    TextDrawColor(AnimationTextDraw, 0xFFFFFFFF);
    TextDrawAlignment(AnimationTextDraw, 3);

     // Sprunk
	SprunkTextDraw = TextDrawCreate(610.0, 400.0, "~r~~k~~PED_FIREWEAPON~ ~w~ to drink the Sprunk ~r~~k~~VEHICLE_ENTER_EXIT~ ~w~ to drop the Sprunk.");
	TextDrawUseBox(SprunkTextDraw, 0);
	TextDrawFont(SprunkTextDraw, 2);
	TextDrawSetShadow(SprunkTextDraw, 0);
    TextDrawSetOutline(SprunkTextDraw, 1);
    TextDrawBackgroundColor(SprunkTextDraw, 0x000000FF);
    TextDrawColor(SprunkTextDraw, 0xFFFFFFFF);
    TextDrawAlignment(SprunkTextDraw, 3);

    // Exit
	ExitTextdraw = TextDrawCreate(610.0, 400.0, "Go to the door and press ~r~ ~k~~PED_DUCK~ ~w~ to exit the building.");
	TextDrawUseBox(ExitTextdraw, 0);
	TextDrawFont(ExitTextdraw, 2);
	TextDrawSetShadow(ExitTextdraw, 0);
    TextDrawSetOutline(ExitTextdraw, 1);
    TextDrawBackgroundColor(ExitTextdraw, 0x000000FF);
    TextDrawColor(ExitTextdraw, 0xFFFFFFFF);
    TextDrawAlignment(ExitTextdraw, 3);

	InitVehicles();
	InitHouses();
	InitGates();
	InitStations();
	InitBusinesses();
	InitJobs();
	InitGroups();

	ShowPlayerMarkers(0);

	GeneralDataTimer = SetTimer("SaveGeneralData", 1800000, true);
	PickupsTimer = SetTimer("PickupMessages", 1500, true);
	AFKTimer = SetTimer("IdleKick", 1200000, 1);
	AntiCheatTimer = SetTimer("AntiC", 1000, true);
	WeatherTimer = SetTimer("DynamicWeather", 7200000, true);
	On‌eSecondTimer = SetTimer("OneSecondPublic", 1000, true);
	On‌eMinuteTimer = SetTimer("OneMinutePublic", 60000, true);
//	SetTimer("DecreaseFuel",75000,true);

	print("--------------------------------------------------------------------------");
	print("[system] Script Initialized.");
	print("--------------------------------------------------------------------------");

	DynamicWeather();

    return 1;
}
Reply


Messages In This Thread
Gamemode problem - by AhmedMohamed - 31.12.2018, 08:09
Re: Gamemode problem - by GeorgeLimit - 31.12.2018, 08:25
Re: Gamemode problem - by AhmedMohamed - 31.12.2018, 08:34
Re: Gamemode problem - by GeorgeLimit - 31.12.2018, 08:35
Re: Gamemode problem - by AhmedMohamed - 31.12.2018, 08:37
Re: Gamemode problem - by AhmedMohamed - 31.12.2018, 09:21
Re: Gamemode problem - by AhmedMohamed - 31.12.2018, 09:32
Re: Gamemode problem - by GeorgeLimit - 31.12.2018, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)