17.08.2011, 23:45
Boas pessoal, й o seguinte eu traduzi todo o GM Carlitos RolePlay mas agora quero edita-lo mas nгo estou a conseguir, eu quero adicionar um novo mapa, como faзo? me ajudem.
Que tal usar o search? E pedir ajuda no tуpico original?
http://forum.sa-mp.com/showthread.ph...light=carlitos Jб agora o que queres dizer com o "adicionar um mapa novo"? |
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; }