Jump to content

|H|TiTanium

Members
  • Posts

    74
  • Joined

  • Last visited

Everything posted by |H|TiTanium

  1. Client Functions : https://wiki.multitheftauto.com/wiki/Cl ... _Functions Client Events : https://wiki.multitheftauto.com/wiki/Cl ... ing_Events Server Functions : https://wiki.multitheftauto.com/wiki/Se ... _Functions Server Events : https://wiki.multitheftauto.com/wiki/Se ... ing_Events Useful Functions : https://wiki.multitheftauto.com/wiki/Useful_Functions
  2. Should I use server side or Client side ???
  3. so, I've made this : but IT DOESN'T WORK, I'm using Server side function avisos ( ) outputChatBox( "[DayZ Extreme]Para ver o preço das bases e ter o nosso contato, digite /bases", getRootElement(), 0, 255, 0, true ) setTimer( avisos, 1000, 0 ) end
  4. So, I got a problem, this thing doesn't work: This is what I get : .lua:1: Bad argument @ 'setTimer' [Expected function at argument 1, got nil] local myTimer = setTimer ( avisos, 1000,1) function avisos ( ) outputChatBox("[DayZ Extreme]Para ver o preço das bases e ter o nosso contato, digite /bases", getRootElement(), 0, 255, 0, true ) resetTimer( myTimer ) end
  5. Everything is ready, now I'm gonna do a Timer to output on chatbox a message saying . "Para ver o preço das bases e pegar os contatos, digite /bases". Thank you for helping me
  6. It's working, I've changed showCursor( true ) to showGUI function, and created another showCursor( false ) to function closeGUI
  7. I think I should add showCursor( true ) on showGUI, instead of using it on closeGUI. but I gotta know if the above line is really necessary.
  8. Is this necessary ? addEventHandler("onClientGUIClick", myButton, closeGUI,false)
  9. May you help me please: -Cursor doesn't appear when GUI opens, everything on GUI is ready, I just need to make cursor appear. function closeGUI ( ) guiSetVisible ( myWindow, false ) showCursor = true end addEventHandler("onClientGUIClick", myButton, closeGUI)
  10. You forgot to create an end on line 28 and change "addEventHandler ( "onColShapeLeave", col, quited )" to line 29. But I've already fixed it. Thank you
  11. So, now, I'm trying to make an Event's Area, where players can't kill each others. It worked, but when player leaves Area he can't aim, or fire ( I know I've set fire and aim_weapon as false ) . The problem is that I want to make them allowed to shoot and kill each other outside Event's area . It's bugging players and they need to reconnect to fix the bugs. I don't see a good point on it, May you please help me to make players allowed to kill each other outside area and keep making them unable to shoot inside area ? local col = createColCuboid ( -676.31543, -2143.39429, 20.17123, 200, 200, 200 ) local zone = createRadarArea ( -676.31543, -2143.39429, 200, 200, 0, 255, 0, 60 ) setElementData ( zone, "zombieProof", true ) function eventsArea ( hitElement, matchingDimension ) if ( getElementType ( hitElement ) == "player" ) then local accName = getAccountName ( getPlayerAccount ( hitElement ) ) if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "Everyone" ) ) then toggleControl ( hitElement, "fire", false ) toggleControl ( hitElement, "aim_weapon", false ) toggleControl ( hitElement, "vehicle_fire", false ) outputChatBox ( "Você entrou na área de Eventos", hitElement, 0, 255, 0 ) end end end addEventHandler ( "onColShapeHit", col, eventsArea )
  12. No, I didn't want it. It was supposed to allow admins entering even with vehicles. So, non-admins couldn't enter, even on foot or vehicles. Admins should stay inside base, even with vehicles or foot, and non-admins should be moved outside
  13. Sorry, while testing it, I got another problem, even admins can't enter area if they are in vehicles
  14. My mistake. Everything is ready and fixed, Thank you for helping me
  15. Line 7 : if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitElement)),aclGetGroup("Admin")) then
  16. NOw, I'm getting this error : [2013-06-16 13:35:44] ERROR: testing_zone\territorio.lua:7: attempt to concatenate a boolean value I'm using solidsnake fixes
  17. Now, I'm getting this error: [2013-06-16 13:35:44] WARNING: testing_zone\territorio.lua:7: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2013-06-16 13:35:44] ERROR: testing_zone\territorio.lua:7: attempt to concatenate a boolean value
  18. It works exactly the way I wanted it. But I got a problem, the message "Welcome to admin area" is spamming Chat, is there anyway to stop it? if there isn't I 'll remove the line
  19. I think you've forgotten to add setelementposition to make he gets moved while in a car
  20. What about if a player is in a vehicle ?
  21. Sorry for posting again and makeing double post , but please help me, I'd like to have this scripted for today.
  22. I'm trying to do a script where if a player enters the area, he is automatically moved outside it. It works if a player is on foot, but it doesn't if he is using a vehicle(I don't want it happening). And also the message "Access Denied" keeps appearing and spamming Chat without stopping. I want your help to make message appears only once and to don't allow players with vehicle enter area. col = createColCuboid ( 95.974617004395, 1751.3895263672, 17.640625, 255, 255, 255 ) zone = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 255, 255, 0, 0, 170 ) setElementData (zone, "zombieProof", true) function enterAdmin(hitElement,matchingDimension) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitElement)),aclGetGroup("Admin")) then toggleControl (hitElement, "fire", true ) toggleControl (hitElement, "aim_weapon", true) toggleControl (hitElement, "vehicle_fire", true) outputChatBox("Welcome to Admin area", hitElement, 0, 170, 255) else outputChatBox("Access denied", hitElement, 255, 0, 0) setElementPosition (hitElement, 0, 0, 120 ) end end addEventHandler( "onColShapeHit", col, enterAdmin )
×
×
  • Create New...