-
Posts
127 -
Joined
-
Last visited
Posts posted by MrXz
-
-
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 )
-
Ok, de igual manera gracias pekio.
-
Justo encontre el "removeCommandHandler" en la wiki, gracias Solid !
Cierre el tema porfavor.
-
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" ?
-
En general.
-
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
-
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
-
@Yakuza357 : Que yo sepa, ya no hay temas sobre el panel.
@pekio123: No entendí la pregunta.
-
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)
-
Pero ya configue el textlib y aun no funciona
-
Tratare de revisar la fuente.
Gracias por todo, ahora ya aprendí a configurar bien la fuente
-
No salio nada y puse /debugscript 3 y me encontre con esto:
-
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')
-
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')
-
-
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
-
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.
-
What the problem ._.?
-
Oh, no me habia dado cuenta de eso, muchas gracias SolidSnake14
-
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.
-
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
-
A mi parecer, lo que intentas tu, es muy trabajoso. El chatbox solo muestra texto, para añadir imágenes, eso seria otra cosa.
-
La verdad es que no soy muy bueno creando o modificando userpanels, por eso pido ayuda ;s
-
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
Cancelar un comando
in Scripting
Posted
Ahora si cierren porfavor, ya lo solucione