Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    DayZ Help me

    Loop every player. You can get a table with the online players with the function: getElementsByType ( "player" ) Then you can use a for-loop. http://www.lua.org/pil/4.3.4.html
  2. Castillo

    Blocking

    You're welcome.
  3. Found the problem, you are using ipairs, but your table isn't a numerical indexed one. for s, k in pairs ( MedKit1 ) do
  4. Try adding this: addEventHandler ( "onPlayerSpawn", root, function ( ) outputChatBox ( "SPAWNED" ) end ) And an outputChatBox for when you give the weapon, then see which comes first.
  5. DayZ scripts are compiled, we can't help you.
  6. Maybe they are being given before you actually spawn.
  7. MedKit1 = {} MedKit2 = {} Move them to the top of the script.
  8. The name is "gore-mod". Link: https://community.multitheftauto.com/in ... ls&id=2363
  9. It only shows the HEX code in the grid list, not in the window title. I used the code you posted in the beginning.
  10. Castillo

    Chats

    You're welcome.
  11. Castillo

    Chats

    function globalMessage ( thePlayer, cmd, ... ) if isPlayerMuted ( thePlayer ) then outputChatBox ( "You are muted!", thePlayer, 255, 0, 0 ) return end local message = table.concat ( { ... }, " " ) local name = getPlayerName ( thePlayer ) outputChatBox ( "#009BFFGlobalChat: #FFFFFF".. name ..": #99FF00".. message, getRootElement(), 255, 255, 255, true ) end addCommandHandler ( "global", globalMessage )
  12. Castillo

    Chats

    Post the script for that chat.
  13. Castillo

    Chats

    What is chat "X"?
  14. Your script may have syntax errors.
  15. Castillo

    Blocking

    function lolok ( ply ) local blocked = false local playername = getPlayerName ( ply ) for _, v in ipairs ( blocked ) do if ( v == playername ) then blocked = true break end end if ( not blocked ) then outputChatBox ( "Message sent", 255, 255, 255, true ) end end addEvent ( "xD", true ) addEventHandler ( "xD", root, lolok )
  16. Castillo

    Blocking

    'break' is used for loops, so the 'end' is for the loop, not for the 'break'.
  17. Well, you have to modify it, because the scoreboard doesn't display images by default. You can search in the forums, there are many topics similar to this.
  18. You have edited the scoreboard to display an image?
  19. thePlayer == hitElement That doesn't make any sense, the second argument of onMarkerHit is "matchingDimension", remove: thePlayer == hitElement
  20. Abri el debugscript ( /debugscript 3 en el chat ) y fijate si da algun error al intentar warpear.
  21. Castillo

    Updates

    But, the command does show the update manager GUI?
×
×
  • Create New...