-
Posts
74 -
Joined
-
Last visited
Everything posted by |H|TiTanium
-
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
-
Should I use server side or Client side ???
-
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
-
Cool idea, I'll do it
-
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
-
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
-
It's working, I've changed showCursor( true ) to showGUI function, and created another showCursor( false ) to function closeGUI
-
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.
-
Is this necessary ? addEventHandler("onClientGUIClick", myButton, closeGUI,false)
-
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)
-
[HELP]Bug with events area script(toggleControl)
|H|TiTanium replied to |H|TiTanium's topic in Scripting
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 -
[HELP]Bug with events area script(toggleControl)
|H|TiTanium replied to |H|TiTanium's topic in Scripting
sorry, is there anyone that could help me ? -
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 )
-
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
-
Sorry, while testing it, I got another problem, even admins can't enter area if they are in vehicles
-
My mistake. Everything is ready and fixed, Thank you for helping me
-
Line 7 : if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitElement)),aclGetGroup("Admin")) then
-
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
-
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
-
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
-
I think you've forgotten to add setelementposition to make he gets moved while in a car
-
What about if a player is in a vehicle ?
-
Sorry for posting again and makeing double post , but please help me, I'd like to have this scripted for today.
-
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 )
