xShocKz Posted August 6, 2012 Share Posted August 6, 2012 1)Ho da poco aperto un clan, e ho iniziato a scriptare la race, quasi finito ma c'è un problema... Quando crepo, non mi va in spectators però se premo B mi và. Vorrei sapere come fixare, o dove trovare il file.lua da modificare. il debugscript da problemi qui addEventHandler('onClientPlayerWasted', g_Root, function() if not g_StartTick then return end local player = source local vehicle = getPedOccupiedVehicle(player) if player == g_Me then if #g_Players > 1 and (g_MapOptions.respawn == 'none' or g_MapOptions.respawntime >= 10000) then if Spectate.blockManualTimer and isTimer(Spectate.blockManualTimer) then killTimer(Spectate.blockManualTimer) end TimerManager.createTimerFor("map"):setTimer(Spectate.start, 2000, 1, 'auto') end else Spectate.dropCamera( player, 1000 ) end end ) e qui function RaceMode:onPlayerWasted(player) if not self.checkpointBackups[player] then return end TimerManager.destroyTimersFor("checkpointBackup",player) if RaceMode.getMapOption('respawn') == 'timelimit' and not RaceMode.isPlayerFinished(source) then -- See if its worth doing a respawn local respawnTime = RaceMode.getMapOption('respawntime') if self:getTimeRemaining() - respawnTime > 3000 then Countdown.create(respawnTime/1000, restorePlayer, 'You will respawn in:', 255, 255, 255, 0.25, 2.5, true, self.id, player):start(player) end if RaceMode.getMapOption('respawntime') >= 5000 then TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') end end if g_MapOptions.respawn == 'none' then removeActivePlayer( player ) if getActivePlayerCount() < 1 and g_CurrentRaceMode.running then RaceMode.endMap() end end end 2)Vorrei sapere la funzione per fare in modo che quando un player prende l'hunter, cambiano i colori RGB del cielo e dell'acqua, dovrei usare quale funzione? Grazie in anticipo D: Link to comment
HunT Posted August 6, 2012 Share Posted August 6, 2012 1: se magari ci dici il debugscript o cosa hai modificato. 2: l evento è onPlayerPickUpRacePickup server side Link to comment
xShocKz Posted August 7, 2012 Author Share Posted August 7, 2012 race_client (il primo che sta su): Attempt to compare numbers with boolean base(il secondo): attempt to perform arithmetic a local 'respawntime' (a boolean value) Link to comment
xShocKz Posted August 7, 2012 Author Share Posted August 7, 2012 Fixato, grazie ugualmente hunterics ^^ 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