shift Posted July 11, 2013 Share Posted July 11, 2013 Ciao.. sono dinuovo qui.. per un aiuto che mi scervella.. dovrei aggiungere al joinquit la funzione che quando si connette qualcuno esca (dove stava la deathlist) la scritta *(name) is join .... con la flag del suo paese. Si può creare? grazie. Link to comment
HunT Posted July 11, 2013 Share Posted July 11, 2013 È una cazzata,pensa che mentre sto scrivendo già ho la script in mente. Ma non lo faccio se non inizi tu. Non siamo il mercatino per le script. Link to comment
z0fa Posted July 12, 2013 Share Posted July 12, 2013 Giusto per darti un piccolo aiuto: Buon lavoro https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit https://wiki.multitheftauto.com/wiki/OnClientRender https://wiki.multitheftauto.com/wiki/DxDrawText https://wiki.multitheftauto.com/wiki/DxDrawImage https://forum.multitheftauto.com/viewtop ... 91&t=53033 Link to comment
shift Posted July 12, 2013 Author Share Posted July 12, 2013 Ho risolto, ho un nuovo problema.. il pickup del repair non va più, quando ci passo con l'auto sopra non ripara.. ho controllato tutto ma mi sembra in ordine l'unico warning che mi da in console è questo: ''[2013-07-12 21:33:10] WARNING: race/race_client.lua(Line 1202) [Client] setVehicleFrozen is deprecated and may not work in future versions. Please replace with setElementFrozen. [2013-07-12 21:33:10] Some files in 'race' use deprecated functions. [2013-07-12 21:33:10] Use the 'upgrade' command to perform a basic upgrade of resources.'' Come posso risolvere? Link to comment
xShocKz Posted July 12, 2013 Share Posted July 12, 2013 [2013-07-12 21:33:10] Use the 'upgrade' command to perform a basic upgrade of resources.'' mai provato a scrivere upgrade in console? Link to comment
HunT Posted July 12, 2013 Share Posted July 12, 2013 Ma scusa il debugscript parla chiaro, stai usando una gamemode vecchia e divi sostituite le funzioni. Link to comment
shift Posted July 12, 2013 Author Share Posted July 12, 2013 [2013-07-12 21:33:10] Use the 'upgrade' command to perform a basic upgrade of resources.''mai provato a scrivere upgrade in console? non cambia nulla. Link to comment
shift Posted July 12, 2013 Author Share Posted July 12, 2013 Ma scusa il debugscript parla chiaro, stai usando una gamemode vecchia e divi sostituite le funzioni. precisamente quali funzioni? D: Link to comment
HunT Posted July 12, 2013 Share Posted July 12, 2013 [2013-07-12 21:33:10] Use the 'upgrade' command to perform a basic upgrade of resources.''mai provato a scrivere upgrade in console? non cambia nulla. fallo manualmente Link to comment
HunT Posted July 12, 2013 Share Posted July 12, 2013 il problema non e neanche setVehicleFrozen da convertire a setElementFrozen il vero problema è : Some files in 'race' use deprecated functions Che razza di gamemode stai usando? del 2007? Se il debug potrebbe mandare a cagare la gente gia l avrebbe fatto Link to comment
z0fa Posted July 12, 2013 Share Posted July 12, 2013 Per risolvere il WARNING ti basta sostituire "setVehicleFrozen" con "setElementFrozen" nel file "race_client.lua" alla linea 1202, oppure scrivere in console "upgrade race". Dubito però che risolva il problema del pickup... Link to comment
shift Posted July 12, 2013 Author Share Posted July 12, 2013 l'upgrade l'ho fatto.. ma il problema del pickup persiste.. No la gm è del 2012, ora ci ho ripreso a lavorare perchè ho riaperto il server. Link to comment
HunT Posted July 12, 2013 Share Posted July 12, 2013 Evidentemente hai tanti di quei bug che non riesci a leggere il vero problema nel debug,prova a vedere nei file logs. Link to comment
shift Posted July 12, 2013 Author Share Posted July 12, 2013 =========================================================== = Multi Theft Auto: San Andreas v1.3 =========================================================== = Server name : -uNk. |Unknown Racers Server| DM = Server IP address: 7.44.227.22 = Server port : 22003 = = Log file : .. 1.3/server/mods/deathmatch/logs/server.log = Maximum players : 32 = HTTP port : 22005 = Voice Chat : Disabled =========================================================== [2013-07-12 22:20:10] Resources: 70 loaded, 0 failed [2013-07-12 22:20:10] Querying game-monitor.com master server... failed! (Not available) [2013-07-12 22:20:31] Querying backup master server... failed! (Not available) [2013-07-12 22:20:52] Starting resources............. [2013-07-12 22:20:53] INFO: Race resource starting [2013-07-12 22:20:53] start: Resource 'race_toptimes' started [2013-07-12 22:20:54] start: Resource 'race_traffic_sensor' started [2013-07-12 22:20:54] INFO: Race onGamemodeStart [2013-07-12 22:20:54] ERROR: exports: Call to non-running server resource (scoreboard) [string "?"] [2013-07-12 22:20:54] Server started and is ready to accept connections! [2013-07-12 22:20:54] Type 'help' for a list of commands. [2013-07-12 22:20:54] Starting [DM]HTC-1 [2013-07-12 22:20:55] INFO: onGamemodeMapStart([DM]HTC-1) [2013-07-12 22:20:55] INFO: Stopping map [2013-07-12 22:20:55] Map '[DM]HTC_Vol1_New_Beginning' started. [2013-07-12 22:20:55] start: Resource '[DM]HTC-1' started Link to comment
shift Posted July 12, 2013 Author Share Posted July 12, 2013 i log non mostrano errori (oltre a quello della scoreboard che c'e l'ho in un altra cartella perchè l'ho cambiata) Link to comment
HunT Posted July 12, 2013 Share Posted July 12, 2013 Ok apri il race_server e cerca onPlayerPickUpRacePickup Scendi giu fino a : if pickup.type == 'repair' Controlla se ce scritto cosi : local vehicle = getPedOccupiedVehicle ( source) fixVehicle(vehicle) Link to comment
shift Posted July 12, 2013 Author Share Posted July 12, 2013 l'unico che c'e è questo: '' addEvent('onPlayerPickUpRacePickup') addEvent('onPlayerPickUpRacePickupInternal', true) addEventHandler('onPlayerPickUpRacePickupInternal', g_Root, function(pickupID, respawntime) if checkClient( false, source, 'onPlayerPickUpRacePickupInternal' ) then return end local pickup = g_Pickups[table.find(g_Pickups, 'id', pickupID)] local vehicle = g_Vehicles[source] if not pickup or not vehicle then return end if respawntime and tonumber(respawntime) >= 50 then table.insert(unloadedPickups, pickupID) clientCall(g_Root, 'unloadPickup', pickupID) TimerManager.createTimerFor("map"):setTimer(ServerLoadPickup, tonumber(respawntime), 1, pickupID) end if pickup.type == 'nitro' then addVehicleUpgrade(vehicle, 1010) elseif pickup.type == 'vehiclechange' then if getElementModel(vehicle) ~= tonumber(pickup.vehicle) then clientCall(source, 'removeVehicleNitro') setVehicleID(vehicle, pickup.vehicle) if pickup.paintjob or pickup.upgrades then setVehiclePaintjobAndUpgrades(vehicle, pickup.paintjob, pickup.upgrades) end end end triggerEvent('onPlayerPickUpRacePickup', source, pickupID, pickup.type, pickup.vehicle) end ) '' Link to comment
HunT Posted July 12, 2013 Share Posted July 12, 2013 Fai una cosa prendi un race_server nuovo e sostituiscilo,molto probabilmente hai editato solo il lato client quindi puoi farlo. Link to comment
z0fa Posted July 12, 2013 Share Posted July 12, 2013 Prova così: addEvent('onPlayerPickUpRacePickup') addEvent('onPlayerPickUpRacePickupInternal', true) addEventHandler('onPlayerPickUpRacePickupInternal', g_Root, function(pickupID, respawntime) if checkClient( false, source, 'onPlayerPickUpRacePickupInternal' ) then return end local pickup = g_Pickups[table.find(g_Pickups, 'id', pickupID)] local vehicle = g_Vehicles[source] if not pickup or not vehicle then return end if respawntime and tonumber(respawntime) >= 50 then table.insert(unloadedPickups, pickupID) clientCall(g_Root, 'unloadPickup', pickupID) TimerManager.createTimerFor("map"):setTimer(ServerLoadPickup, tonumber(respawntime), 1, pickupID) end if pickup.type == 'nitro' then addVehicleUpgrade(vehicle, 1010) elseif pickup.type == 'vehiclechange' then if getElementModel(vehicle) ~= tonumber(pickup.vehicle) then clientCall(source, 'removeVehicleNitro') setVehicleID(vehicle, pickup.vehicle) if pickup.paintjob or pickup.upgrades then setVehiclePaintjobAndUpgrades(vehicle, pickup.paintjob, pickup.upgrades) end end elseif pickup.type == 'repair' then fixVehicle(vehicle) end triggerEvent('onPlayerPickUpRacePickup', source, pickupID, pickup.type, pickup.vehicle) end) Edit: se non dovesse funzionare fai come ti ha detto Hunterix. Link to comment
shift Posted July 12, 2013 Author Share Posted July 12, 2013 Prova così: addEvent('onPlayerPickUpRacePickup') addEvent('onPlayerPickUpRacePickupInternal', true) addEventHandler('onPlayerPickUpRacePickupInternal', g_Root, function(pickupID, respawntime) if checkClient( false, source, 'onPlayerPickUpRacePickupInternal' ) then return end local pickup = g_Pickups[table.find(g_Pickups, 'id', pickupID)] local vehicle = g_Vehicles[source] if not pickup or not vehicle then return end if respawntime and tonumber(respawntime) >= 50 then table.insert(unloadedPickups, pickupID) clientCall(g_Root, 'unloadPickup', pickupID) TimerManager.createTimerFor("map"):setTimer(ServerLoadPickup, tonumber(respawntime), 1, pickupID) end if pickup.type == 'nitro' then addVehicleUpgrade(vehicle, 1010) elseif pickup.type == 'vehiclechange' then if getElementModel(vehicle) ~= tonumber(pickup.vehicle) then clientCall(source, 'removeVehicleNitro') setVehicleID(vehicle, pickup.vehicle) if pickup.paintjob or pickup.upgrades then setVehiclePaintjobAndUpgrades(vehicle, pickup.paintjob, pickup.upgrades) end end elseif pickup.type == 'repair' then fixVehicle(vehicle) end triggerEvent('onPlayerPickUpRacePickup', source, pickupID, pickup.type, pickup.vehicle) end) Edit: se non dovesse funzionare fai come ti ha detto Hunterix. Glielo aggiungo sotto a quello che ho postato sopra? o sostituisco tutto? Link to comment
z0fa Posted July 12, 2013 Share Posted July 12, 2013 Glielo aggiungo sotto a quello che ho postato sopra? o sostituisco tutto? Sostituisci. Link to comment
shift Posted July 12, 2013 Author Share Posted July 12, 2013 Ho risolto, ho fatto prima a cambiare tutto il race_server.lua sicuramente qualche altra funzione non andava di sicuro. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now