
mint3d
Members-
Posts
425 -
Joined
-
Last visited
Everything posted by mint3d
-
That works great thanks, one question how to I get it to stop? addEventHandler ( "onClientGUIClick", loginButton) function() destroyElement(renderText) end )
-
Maybe read it Fag you can add another gate and your grammar is shit along with your spelling
-
createObject moveObject You will need these 2 functions and you might need another but I am not sure which one if you want command then local Gate = { [1] = createObject(980, 1091, 2554, 20, 0, 0, 325) } local GateName = "" local open = false local function ResetOpenState() open = false end local function closeDoor(thePlayer) if (getElementType(thePlayer)) then outputChatBox("The " .. GateName .. " are now Closed!", thePlayer, 255, 0, 0) end moveObject(Gate[1], 1000, 1091, 2554, 20, 0, 0, 0) setTimer(ResetOpenState, 1000, 1) end -- Gate code / Using local functions to avoid local function useDoor(thePlayer, commandName, ...) local password = table.concat({...}) local x, y, z = getElementPosition(thePlayer) local distance = getDistanceBetweenPoints3D(1091, 2554, 20, x, y, z) if (distance<=20) and (open==false) then outputChatBox("The " .. GateName .. " are now open!", thePlayer, 0, 255, 0) moveObject(Gate[1], 1000, 0, 2554, 0, 0, 0, 0) setTimer(closeDoor, 5000, 1, thePlayer) open = true else outputChatBox("You need a to be in.... ", thePlayer, 255, 0, 0) end end addCommandHandler("command", useDoor) Just swap x y z and stuff
-
You want automatic gates?
-
Sorry again for double post is there away to use a pickup that when you pick it up it says a message? idk but something like using this function createinfopickup ( x, y, z, model ) x, y, z = 1101, 1202, 29 model = 1239 end
-
I mean like SAUR's login the moving text I mean like that
-
sorry for double post it doesn't need to be like that all I want is something that basically has text above something say like I had a garage in game and I wanted to put above it something that says Craig's Garage
-
No its like a spinning i like the letter i and it has text above it
-
I need help I want to make a simple like object I think it would in game its like a ( i ) and it says something above it how is this done?
-
Hes right i only said dx login but i think the moving text was dx but im not sure ill try it out tho
-
ok i seen in a server it was a dx login and i was wondering how they done the top bit they made a rectangle i know how to do that but they had text in it moving any help?
-
Im done your stuff is not working at all for me sorry someone please help a bit more experienced please
-
I dont want it to go away tho i want it to stay and that doesnt work at all
-
Didn't work like i wanted it to i want to do somthing like /giveitem Jordan Engine which would make this setElementData(getPlayerFromName("Name"),"Object",1) look like this setElementData(getPlayerFromName("Jordan"),"Engine",1) and it would give him the object
-
addCommandHandler ( "giveItem", function ( thePlayer, theCommand, happyPlayer, 1 ) if ( thePlayer == "Jordan" ) then -- just for safety local account = getPlayerAccount ( happyPlayer ); if ( account ) then -- if he is logged in setAccountData ( account, "object", 1 ); else outputChatBox ( "This player is not logged in.", thePlayer ); end end end ); [2013-11-09 19:43:38] ERROR: Loading script failed: gates\gates.lua:2: or '...' expected near '1'
-
Ok your script i am using the dayz so i was only looking for the setElementData(getPlayerFromName("Jordan"),"Object",1) as they have to keep it when they login and stuff and reconnect so is that possible?
-
function giveplayeritem ( player, command ) setElementData(getPlayerFromName("Jordan"),"Engine",1) end addCommandHandler ( "Jordan", giveplayeritem ) Done this and it works but thanks for the help and question say i wanted to give item like using setElementData(getPlayerFromName("Jordan"),"Object",1) us there a way to like /giveitem Jordan and then the item
-
I need help is there any way to make a command that does this setElementData(getPlayerFromName("Name"),"Object",1)
-
Add that as he said
-
I need a god mode you can activate with command any help?