Jump to content

MrXz

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by MrXz

  1. Ahora si cierren porfavor, ya lo solucione
  2. verdad se me olvidaba preguntar, como haria para hacer esto con un comando addEventHandler ( "onPlayerCommand", root, function unbuy ( command ) if ( command == "nextmap" ) then cancelEvent ( ) end end ) addCommandHandler ( "unbuymap", unbuy )
  3. Ok, de igual manera gracias pekio.
  4. Justo encontre el "removeCommandHandler" en la wiki, gracias Solid ! Cierre el tema porfavor.
  5. Solo quiero cancelar el comando, no cambiarlo, estoy haciendo un 'UnbuyMap' y pues al comprar un mapa ejecuta un comando, ahora lo que quiero lograr es cancelar dicho comando para que se devuelva el dinero. PD: Puedo usar "removeCommandHandler" ?
  6. Hola amigos!, Como puedo cancelar un comando ya hecho, por ejemplo pongo /nextmap, como haría para cancelar dicho comando, se los agradecería mucho
  7. Robo? ._. Es el viejo panel de TG ... acaso no lees lo que dijo @Yakuza357 Además el panel de TG no se puede robar, ya que casi todas las funciones estan en un script server , lo que estoy posteando es un script "server" asi que deja de decir tonterías
  8. @Yakuza357 : Que yo sepa, ya no hay temas sobre el panel. @pekio123: No entendí la pregunta.
  9. Hola a todos!, bueno encontré en mi baúl de scripts antiguos y encontre un 'Race-userpanel', lo inicie y pues vi 'Buymap' pero cuando doy a comprar, no sale nada, ademas no hay nada en "/debugscript 3", estaba intentando modificarlo pero igual no funciona =/ Si alguien supiera de esto, por favor ayúdenme D: se los agradecería bastante. function buyMap(thePlayer,mapName) local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) if mapIsAlreadySet == false then if not (mapName == "") then if playerCash >= mapCost then triggerEvent("onExternalNextmapRequest",thePlayer,thePlayer,mapName) else outputChatBox("#0095FF* #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true) end else outputChatBox("#0095FF* #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true) end else outputChatBox("#0095FF* #FFFFFFA map is already set at the moment! Please try again later.",thePlayer,255,255,255,true) end end function resetMapSetStatus() mapIsAlreadySet = false end addEventHandler("onMapStarting",getRootElement(),resetMapSetStatus) addEvent("onScriptSetNextMap",true) addEventHandler("onScriptSetNextMap",getRootElement(), function (mapName) thePlayer = source local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) savePlayerData(thePlayer,"cash",playerCash-mapCost) outputChatBox("#FFFFFFNextmap: "..getPlayerName(thePlayer).."#FFFFFF has bought a next map!",getRootElement(),255,255,255,true) outputChatBox("#FFFFFFNextmap: #FF8800"..mapName,getRootElement(),255,255,255,true) mapIsAlreadySet = true scoreboardRefresh(thePlayer) end) addEvent("onRaceSetNextMap",true) addEventHandler("onRaceSetNextMap",getRootElement(), function () mapIsAlreadySet = true end)
  10. Pero ya configue el textlib y aun no funciona
  11. Tratare de revisar la fuente. Gracias por todo, ahora ya aprendí a configurar bien la fuente
  12. No salio nada y puse /debugscript 3 y me encontre con esto:
  13. Seria asi entonces? dxDrawColorText ('Map: ' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(3.3, font)/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 2, font, 2, 'left')
  14. Hola a todos ! Tengo un problema al crear un 'font', no aparece. ¿Cual seria el problema? local font = dxCreateFont( "font.ttf") dxDrawColorText ('Map: ' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(3.3, 'font')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 2, 'font', 2, 'left')
  15. MrXz

    CountryID

    Muchas Gracias pekio. Si funciono
  16. MrXz

    CountryID

    Hola a todos, tengo un problema, tengo esto que cuando entras al servidor sale el país. Pero no funciona. Cual es el problema? =/ g_Root = getRootElement() function Initiate() country = getPlayerCountry(source) if country == nil or country == false then country = "n/a" end setElementData(source, "country", country) end addEventHandler('onPlayerJoin', g_Root, Initiate) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),function() addEventHandler('onPlayerJoin', g_Root, function() country = getPlayerCountry(source) if country == nil or country == false then country = "n/a" end outputChatBox('#FF0000*ENTRANDO: #ffffff' .. getPlayerName(source) .. ' #339999Se ha Unido al server Desde #ffffff"'..country..'"#0fc0fc', getRootElement(), 255, 100, 100, true) setElementData(source, "country", country) end ) function() country = getPlayerCountry(source) if country == nil or country == false then country = "n/a" end setElementData(source, "country", country) end, 4000, 1) end ) aCountries = {} function getPlayerCountry ( player ) return getIpCountry ( getPlayerIP ( player ) ) end
  17. Good morning / afternoon / night ! Hi, I have little doubt, as I can put the day in the toptime, when making the top date appears I just want a help.
  18. MrXz

    MTA DM RACE

    What the problem ._.?
  19. MrXz

    FPS Scoreboard

    Oh, no me habia dado cuenta de eso, muchas gracias SolidSnake14
  20. MrXz

    FPS Scoreboard

    Para ver los FPS en el scoreboard. Lo que pasa es que lo puse mas chico para que no ocupe tanto espacio en el scoreboard y cuando inicio, no aparece nada.
  21. MrXz

    FPS Scoreboard

    Hola, bueno tengo un problema con esto, quise modificar la columna del FPS, lo puse mas chico pero cuando inicio, se ve la tabla pero no marca los "FPS". ¿Cual es el Problema? - NOTHING- SOLVED
  22. A mi parecer, lo que intentas tu, es muy trabajoso. El chatbox solo muestra texto, para añadir imágenes, eso seria otra cosa.
  23. MrXz

    Problema 'BuyMap'

    La verdad es que no soy muy bueno creando o modificando userpanels, por eso pido ayuda ;s
  24. Hola a todos! Bueno intente esto, es una parte del panel, el panel viene con un buymap, pero intente comprar un map y pues en el chat sale que habia comprado un map, pero al parecer no pasaba eso. Lo que supuesta mente compraba como nextmap, no aparecia, es como si le diera a buymap y solo estoy gastando plata y no juego el map que compre.. Puse /debugscript 3 pero no me aparecio nada. Por favor, cual seria el problema? Se lo agradecería mucho function buyMap(thePlayer,mapName) if mapIsAlreadySet == false then if not (mapName == "") then local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) if playerCash >= mapCost then executeCommandHandler("buymap",thePlayer,mapName) -- No entiendo esta línea savePlayerData(thePlayer,"cash",playerCash-mapCost) outputChatBox("#FFFFFFNextmap: "..getPlayerName(thePlayer).."#FFFFFF has bought a next map!",getRootElement(),255,255,255,true) outputChatBox("#FFFFFFNextmap: #00AAFF"..mapName,getRootElement(),255,255,255,true) mapIsAlreadySet = thePlayer local oldmapbuys = loadPlayerData(thePlayer,"mapBuys") savePlayerData(thePlayer,"mapBuys", oldmapbuys + 1) CheckAchievement(thePlayer,13) scoreboardRefresh(thePlayer) else outputChatBox("#00AAFF# #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true) end else outputChatBox("#00AAFF# #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true) end else outputChatBox("#00AAFF# #FFFFFFA map is already set at the moment! Please try again later.",thePlayer,255,255,255,true) end end
×
×
  • Create New...