[Ajuda] GM Carlitos RolePlay
#8

Jб converti o meu mapa, mas agora nao encontro no mapa no Gamemode, vou postar todo o public OnGameModeInit

Код:
public OnGameModeInit()
{
	if(fexist("CRP_Scriptfiles/Other/JoinCounter.cfg"))
	{
	    JoinCounter = dini_Int("CRP_Scriptfiles/Other/JoinCounter.cfg", "Connections");
	    printf("file \"JoinCounter.txt\" located, variable JoinCounter loaded (%d visitors)", JoinCounter);
	}
	else
	{
	    dini_Create("CRP_Scriptfiles/Other/JoinCounter.cfg");
	    dini_IntSet("CRP_Scriptfiles/Other/JoinCounter.cfg", "Connections", 0);
	    print("file \"CRP_Scriptfiles/Other/JoinCounter.cfg\" created with JoinCounter variable (0 visitors)");
	}
	//================================[SETTING FUEL AND TURNING ENGINES OFF]==============================
	for(new c=0;c<MAX_VEHICLES;c++)
	{
		Fuel[c] = GasMax;
		EngineStatus[c] = 0;
		VehicleLocked[c] = 0;
		CarWindowStatus[c] = 1; //1 = up, 0 = down.
	}
	//=====================================================================================================
	
	//===============================[DISABLING STUFF]================================
	ShowPlayerMarkers(0);
	EnableStuntBonusForAll(0); //Disable stunt bonus.
    DisableInteriorEnterExits();//Disable Yellow Markers.
    AllowInteriorWeapons(1);//Allowing weapons inside.
	EnableTirePopping(1);
	EnableZoneNames(1);
	AllowAdminTeleport(1);
	UsePlayerPedAnims();
	new sendcmd[128];
	//================================================================================
	
	//=======================[Setting the servers stats]==============================
	if (!strcmp("Yes", GAMEMODE_USE_VERSION, true)) { format(sendcmd, sizeof(sendcmd), "%s - %s", GAMEMODE,VERSION); SetGameModeText(sendcmd); }
	else { SetGameModeText(GAMEMODE); }
	format(sendcmd, sizeof(sendcmd), "hostname %s", SERVER_NAME);
	SendRconCommand(sendcmd);
	format(sendcmd, sizeof(sendcmd), "mapname %s", MAP_NAME);
	SendRconCommand(sendcmd);
	format(sendcmd, sizeof(sendcmd), "weburl %s", WEBSITE);
	SendRconCommand(sendcmd);
	if (strlen(PASSWORD) != 0) { format(sendcmd, sizeof(sendcmd), "password %s", PASSWORD); SendRconCommand(sendcmd); }
	//================================================================================
	
	//========================================[LOAD]==========================================
	LoadScript();
	//========================================================================================

	//====================================[NON DYNAMIC PICKUPS]===========================================
	
	//====================================================================================================
	
//===================================[WORLD TIME TO SERVER TIME]====================================
	if (realtime)
	{
		new tmphour;
		new tmpminute;
		new tmpsecond;
		gettime(tmphour, tmpminute, tmpsecond);
		FixHour(tmphour);
		tmphour = shifthour;
		SetWorldTime(tmphour);
	}
//===================================[TIMERS]===============================================
	SetTimer("UpdateData", 5000, 1);//Updates scores, and syncs time of day
	SetTimer("SaveAccounts", 1800000, 1); //30 mins every account saved
	SetTimer("Update", 300000, 1);//Update every 5 minutes
	SetTimer("UpdateMoney", 1000, 1);//AntiMoney hack timer
	SetTimer("PickupGametexts", 1000, 1); //Timer that shows gametexts if the player is on a pickup/location.
	SetTimer("FuelTimer", 15000, 1); //Car Fuel System
	SetTimer("OtherTimer", 15000, 1);
	SetTimer("JailTimer", 1000, 1);
	SetTimer("StreamPickups",1000,1);//Streaming pickups
	return 1;
}
Reply


Messages In This Thread
[Ajuda] GM Carlitos RolePlay - by Ossipat - 17.08.2011, 23:45
Re: [Ajuda] GM Carlitos RolePlay - by RoamPT - 17.08.2011, 23:48
Re: [Ajuda] GM Carlitos RolePlay - by Dolby - 17.08.2011, 23:48
Respuesta: Re: [Ajuda] GM Carlitos RolePlay - by Ossipat - 18.08.2011, 00:10
Re: [Ajuda] GM Carlitos RolePlay - by histire - 18.08.2011, 00:12
Re: [Ajuda] GM Carlitos RolePlay - by RockFire - 18.08.2011, 00:12
Re: [Ajuda] GM Carlitos RolePlay - by iPauliinLegendary - 18.08.2011, 00:17
Respuesta: [Ajuda] GM Carlitos RolePlay - by Ossipat - 18.08.2011, 00:22
Re: [Ajuda] GM Carlitos RolePlay - by You_Tube - 18.08.2011, 01:59
Re: [Ajuda] GM Carlitos RolePlay - by histire - 18.08.2011, 02:02

Forum Jump:


Users browsing this thread: 1 Guest(s)