Jump to content

N-SlipknoT

Members
  • Posts

    7
  • Joined

  • Last visited

Details

  • Gang
    On the safe side

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

N-SlipknoT's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Hola, queria saber como hacer para que el vote redo no me quite el next map al dar el redo, me explico, si el vr gana el mapa que hay comprado se quita porque el vote redo lo ha reemplazado para dar el redo. No se si me hice entender :3 Bueno esta es la funcion: English: Hello, I wanted to know how to make the boat do not remove redo the next map to give the redo, I mean, if the vr wins the map there are purchased is removed because the redo vote has replaced to give the redo. If I did not understand: 3: $ Well this is the function: Clancolor = '#1883e9' function getPlayersCount() players = {} for k,v in ipairs(getElementsByType('player')) do table.insert(players,v) end return #players end addEvent('onMapStarting',true) addEventHandler('onMapStarting',root, function() for k,v in ipairs(getElementsByType('player')) do if getElementData(v,'voted') == true then setElementData(v,'voted',false) end end voteredo = { players = math.ceil(getPlayersCount()/2), vr = 0, redo = false, mapname = getMapName(exports.mapmanager:getRunningGamemodeMap()) } end ) function Voteredo(plr) if voteredo then if isRestarted() == false then if voteredo.redo ~= true then if getElementData(plr,'voted') ~= true then if voteredo.vr+1 < voteredo.players then voteredo.vr = voteredo.vr+1 setElementData(plr,'voted',true) outputChatBox(Clancolor..'[VOTEREDO] '..getPlayerNametagText(plr)..'#FFFFFF has voted for redo. '..Clancolor..'[#FFFFFF'..voteredo.vr..''..Clancolor..'/#FFFFFF'..voteredo.players..''..Clancolor..']',root,255,255,255,true) else voteredo.vr = voteredo.vr+1 voteredo.redo = true outputChatBox(Clancolor..'[VOTEREDO] '..getPlayerNametagText(plr)..'#FFFFFF has voted for redo. '..Clancolor..'[#FFFFFF'..voteredo.vr..''..Clancolor..'/#FFFFFF'..voteredo.players..''..Clancolor..']',root,255,255,255,true) end else outputChatBox(Clancolor..'[VOTEREDO] #FFFFFFYou already voted for redo.',plr,255,255,255,true) end else outputChatBox(Clancolor..'[VOTEREDO] #FFFFFFThe vote is completed, the map will be restarted.',plr,255,255,255,true) end else outputChatBox(Clancolor..'[VOTEREDO] #FFFFFFThis map has already been restarted.',plr,255,255,255,true) end else outputChatBox(Clancolor..'[VOTEREDO] #FFFFFFError, try again in the next map.',plr,255,255,255,true) end end addCommandHandler('vr',Voteredo) addEvent('onPostFinish',true) addEventHandler('onPostFinish',root, function () if voteredo then if voteredo.redo == true then local currentMap = exports.mapmanager:getRunningGamemodeMap() setTimer ( function () exports.mapmanager:changeGamemodeMap (currentMap, nil, true) lastmaprestarted = getMapName(exports.mapmanager:getRunningGamemodeMap()) outputChatBox(Clancolor..'[VOTEREDO] #FFFFFFMap restarted by vote.',plr,255,255,255,true) end, 4500, 1) end end end ) function isRestarted() if lastmaprestarted and voteredo.mapname then if lastmaprestarted == voteredo.mapname then return true else return false end else return false end end function getMapName( map ) return getResourceInfo( map, "name" ) or getResourceName( map ) or "unknown" end
  2. Me podrias explicar porfa como quitar los top times para pasarlos al otro internal.db
  3. Hola a todos, al pregunta que tengo es como hacer para juntar los toptimes de un internal.db a otro internal.db que tengo editado, ya que el internal.db q tiene los tops q me interezan esta con muchas cuentas lo cual laguea al servidor cuando se mira en la rankingboard. Gracias por su atencion, espero una pronta respuesta. English: Hi all, I have to question is how to assemble the toptimes a internal.db another internal.db I have edited since the internal.db having tops that interest me is with many accounts which gives lag the server when you look at the rankingboard. Thank you for your attention, I expect a prompt response.
  4. Also TG, TFF, #ER, EPG at specific good servers...
  5. Maybe that server isn't online - can you provide the port:ip here? If you search its name on serverbrowser, does it display? EDIT: I've taken the IP:port you repeated tried connecting to from your MTAdiag log, and it turns out that on this host doesn't have a running, currently accessible MTA server on it, so that's the problem you're having. OK, but let's say in the case of other servers, an example ffs, I can not go in there.always it gives me time out.
  6. f I tried connecting me trought ip with port and all that, but it not works. Look this is what came out. http://prntscr.com/7jcsw0 http://pastebin.mtasa.com/248199885
  7. Hello everyone. My problem lies in that if I attempt to enter a server, can be anything, it is loaded and after 5 or 10 seconds tells me Error [CC23] conection timeout. I wonder if there is some kind of solution to this, I can no longer log on to the servers I would like to know. Thank you for your attention, I hope you can help me with this.
×
×
  • Create New...