Jump to content

'~DaLesTe^'

Members
  • Posts

    91
  • Joined

  • Last visited

Everything posted by '~DaLesTe^'

  1. Is there a script that allows the player as few as you are logged into your account can use the Chat? For example: Login to your account to use chat addEventHandler( "onPlayerChat", getRootElement(), sendMessageToNearbyPlayers ) function blockChatMessage() cancelEvent() end -- attach it as a handler to onPlayerChat addEventHandler( "onPlayerChat", getRootElement(), blockChatMessage ) Something like this
  2. addEventHandler("onPlayerSpawn",getRootElement(),rp_Spawn) function PosTime(source) local pos1 = getElementPosition(source) if (pos == pos1) then outputChatBox ( "You entered afk mode To return type: / back", source, 0, 255, 0) setElementFrozen (source, true) setElementDimension (source, 7) setElementData(source, "0", 0) else outputChatBox ( "You moved :c", source, 255, 0, 0) end end function afkGo(source) pos = getElementPosition(source) outputChatBox ( "Wait 5 seconds without moving the character!", source, 0, 255, 0) setTimer(PosTime,5000,1,source) end addCommandHandler('afk', afkGo) function afkExit(source) local away = getElementData(source, "voltar") if (away == 0) then outputChatBox ( "You're back!", source, 0, 255, 0) setElementFrozen (source, false) if getElementDimension(source, 0) then setElementDimension ( source, 0 ) else outputChatBox ( "You are not afk", source, 0, 255, 0) end end end addCommandHandler('back', afkExit) function awayList(source) local connectedPlayers = getElementsByType ( "player" ) for i, aPlayer in ipairs(connectedPlayers) do local afk = getElementData(aPlayer, "afk") if (afk == 1) then outputChatBox ( "tst", source) end end end addCommandHandler('dbug1', awayList) Correct ?
  3. I want to make this blink DxDraw, for example to display a first color and then in another color you to have the appearance of flashing
  4. local x,y = guiGetScreenSize() local admin = "" local mensagem = "" local iv = false local ATIVADO = false a1 = 200 a2 = 255 addEvent("show", true) function mostrar(player, msg) mensagem = msg admin = player ATIVADO = true a1 = 200 a2 = 255 if (isTimer(timer1)) then killTimer(timer1) end timer1 = setTimer(function() setTimer(function() if a1 > 0 then a1 = a1 - 5 end if a2 > 0 then a2 = a2 - 5 end if a1 <= 0 and a2 <= 0 then ATIVADO = false admin = "" mensagem = "" end end, 50, 53) end, 6000, 1) end addEventHandler("show", getRootElement(), mostrar) function drawStuff() if (ATIVADO == true) then dxDrawRectangle ( x/50, y/2.8, x/3, y/5, tocolor ( 87, 27, 239, a1 ) ) dxDrawRectangle ( x/50, y/2.8, x/3, y/30, tocolor ( 0, 43, 65, a2) ) dxDrawText (string.gsub ( admin, "#%x%x%x%x%x%x", "" ), x/40, y/1.42, x/4.6, y/25, tocolor ( 0, 0, 0, 255 ), 1, "sans", "center", "center", false, false, false, false) dxDrawText (string.gsub ( admin, "#%x%x%x%x%x%x%x%x", "" ), x/40, y/1.42, x/4.6, y/25, tocolor ( 255, 255, 255, 255 ), 1, "sans", "center", "center", false, false, false, true) dxDrawText ( mensagem, x/32, y/2.52, x/4.6, y/2.4, tocolor ( 255, 0, 0, 255 ), 0.0, "clear", "left", "top", true, true, false, false) dxDrawText ( mensagem, x/35, y/2.53, x/4.0, y/1.1, tocolor ( 255, 255, 0, 255 ), 1.2, "clear", "left", "top", true, true, false, false) end end addEventHandler("onClientRender", root, drawStuff) I have a script that creates a DxDrawText It is this: I want to put an effect that looks like the rectangle / DxDrawnText: dxDrawRectangle (x / 50, y / 2.8, x / 3, y / 5, tocolor (87, 27, 239, 200)) dxDrawRectangle (x / 50, y / 2.8, x / 3, y / 30, tocolor (0, 0, 0, 200)) Flashes slowly
  5. When I invite the player to duel says: Unable to find player with this ID! More the inserted ID is actually the player's ID I believe that this lack to execute the command / duel ID local p = getPlayerFromID( id ); local p = getElementData(getPlayerFromID( id ))
  6. When I invite the player to duel says: Unable to find player with this ID! More the inserted ID is actually the player's ID
  7. WARNING: Script 'Duel-System/s.lua:1: is not encoded in UTF-8. Loading as ANSI.. ERROR: Loading script failed: Duel-System/s.lua unexpected symbol near '?'
  8. I needed the code if it works on GNU / Linux, it did not work on my Linux server but rather on Windows. How do I run it on GNU / Linux?
  9. Is missing one hand the code, I believe that is the client then, is missing the side "client" because without it the script does not work
  10. I own this gang script, more of a problem, it does not work, and has all these functions should work, can help me on what is wrong? Missing the "server" I have only the "client" could help me on how to make "server"? CODE REMOVED BY Solidsnake14
  11. Hello, I am new to the forum, and I see a script in some servers that it is possible to invite a player to a duel / x1, and works as follows: / duel ID (id of the player). I have a script that adds a number ID for each player: The script works as follows: / duel ID / duel accept / duel decline [You already invited the player] [ duel in progress] When the duel starts appear in chat "The player ..getPlayerName .. (ID:" .. (getPlayerID (source) or "???") .. ") was challenged by ..getPlayerName .. (ID:". . (getPlayerID (source) or "???") .. ") 2 Duel Players get weapons 26, 24, 28 and 31 The place where the two players are moved to the duel / x1 are in size "1" and to accept the second event will go to a map of the location that is to choose the script manually added the cords function getPlayerFromID(id) return call(getResourceFromName("game_id"), "getPlayerFromID", tonumber(id)) end function getPlayerID(player) return getElementData(player,"id") end Who can help me contact me on skype: giovane.martins6
×
×
  • Create New...