-
Posts
1,255 -
Joined
-
Last visited
Everything posted by .:HyPeX:.
-
Meant about that...This script's not Changing ANYTHING!. I wont do it for you.. do some work on your on, this aint a place for people making stuff for you.
-
The Problem not with the Draw only! when i add the script which you puted on my own client side..it Hide everything....not Only DRAW Text!!..:/ Hows that? which other thing u got?
-
Try doing this: function DxDraw() if vis then DxDraw -- Draw stuff else --Nothing end end addEventHandler("OnClientRender", getRootElement(), DxDraw) function Vis() if vis then vis = nil else vis = true end end addCommandHandler("vis", Vis, false, false) PD: you can also try using a timer setTimer(vis, 50, 0) function vis() if ( vis ) then if visOn then else addEventHandler("onClientRender", getRootElement(), function) visOn = true end elseif not ( vis ) then removeEventHandler("onClientRender", getRootElement(), function) visOn = false end end end
-
Its triggered on Login Atm, you can set it to join, And you can also change the timmer, i did 10secs. Oh and btw, that will only work on your resolution, try using guiGetScreenSize() and a multiplier/divider.
-
Ehm.. those triggers dont need to be server side... try this: function showdx() if getElementData(localPlayer, "Dx.showing") then dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 323, 73, 982, 120, tocolor(0, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 323, 71, 982, 118, tocolor(0, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 321, 73, 980, 120, tocolor(0, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 321, 71, 980, 118, tocolor(0, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 322, 72, 981, 119, tocolor(255, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawImage(239, -1, 83, 122, ":Login_SystemNEW/Images/Zombie1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(961, 0, 82, 120, ":Login_SystemNEW/Images/Zombie1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawLine(238, 123, 1043, 123, tocolor(0, 0, 0, 255), 7, true) dxDrawText("WELCOME TO THE END OF THE WORLD", 1, 1, 1280, 73, tocolor(0, 0, 0, 255), 2.00, "sans", "center", "center", false, false, true, false, false) dxDrawText("WELCOME TO THE END OF THE WORLD", 0, 0, 1279, 72, tocolor(255, 0, 0, 255), 2.00, "sans", "center", "center", false, false, true, false, false) dxDrawLine(238, 123, 1043, 123, tocolor(0, 0, 0, 255), 7, true) dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 323, 73, 982, 120, tocolor(0, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 323, 71, 982, 118, tocolor(0, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 321, 73, 980, 120, tocolor(0, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 321, 71, 980, 118, tocolor(0, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawText("\"\"ZOMBIES\"\" Are Waiting For YOU!", 322, 72, 981, 119, tocolor(255, 0, 0, 255), 3.00, "sans", "left", "top", false, false, true, false, false) dxDrawImage(239, -1, 83, 122, ":Login_SystemNEW/Images/Zombie1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(961, 0, 82, 120, ":Login_SystemNEW/Images/Zombie1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawLine(238, 123, 1043, 123, tocolor(0, 0, 0, 255), 7, true) dxDrawText("WELCOME TO THE END OF THE WORLD", 1, 1, 1280, 73, tocolor(0, 0, 0, 255), 2.00, "sans", "center", "center", false, false, true, false, false) dxDrawText("WELCOME TO THE END OF THE WORLD", 0, 0, 1279, 72, tocolor(255, 0, 0, 255), 2.00, "sans", "center", "center", false, false, true, false, false) dxDrawLine(238, 123, 1043, 123, tocolor(0, 0, 0, 255), 7, true) end end function showDXdraw() if not On then addEventHandler("OnClientRender", getRootElement(), showdx) setTimer(StopDxDraw, 10000, 1) -- stop the draw else On = true addEventHandler("OnClientRender", getRootElement(), showdx) setTimer(StopDxDraw, 10000, 1) -- Stop the draw end end addEventHandler("onPlayerLogin", getRootElement(), showDXdraw) function StopDxDraw() if On then On = false removeEventHandler("onClientRender", getRootElement(), showdx) else On = false removeEventHandler("onClientRender", getRootElement(), showdx) end
-
Not mentioning it is pretty messy how its done PD: Try using these functions and Multiply/divide them to get a rectangle size, so it to work on all resolutions. guiGetScreenSize() dxDrawRectangle
-
I'd just use a script to remove/add the Event Handler.. wich is the laggy one, but if wanna go easy use a variable.
-
Well i would've got outputed those errors anyways on testing, but thanks
-
Lionel, normally you can Add an event handler and remove it to the function with dxDrawText, but you can also use a command to set a global variable, and then make the dxDraw constant but only On if the variable is true.
-
You should try using the onClientClick with an if on the coords. Note: use this if you arent using Gui, as Gui functions would be ALOT easier. function Clicked(button,state,absoluteX,absoluteY) local x, y = guiGetScreenSize() if button == left then if state == down then if absoluteX == x/5.2 or absoluteX == x/5.1 then -- On wich part of the screen? right to left if absoluteY == y/5.2 or abosulteY == y/5.1 then -- On wich part of the screen? down to up DoShit -- Whatever you want on click end end end end end addEventHanlder("OnClientClick", getRootElement(), Clicked)
-
I've working it out, still havent tested becouse i'm making a whole script with various usefull commands.. function FakeQuit(player, command, text) local pacc = getPlayerAccount( player ) if (isObjectInACLGroup ( "user.".. pacc, aclGetGroup("LxG"))) then outputChatBox("#00aaff[EasyCMD]: Account Accepted!", player, 255,255,255,true) else outputChatBox("#00aaff[EasyCMD]: You cant use this!", player, 255,255,255, true) return end local named = getAccountData(player, "fname") if named then setPlayerName(player, "named") triggerEvent("onPlayerQuit", player, Quit) outputChatBox("#00aaff[EasyCMD]: Name set to: ".. named .."", player, 255,255,255, true) else outputChatBox("#00aaff[EasyCMD]: Please set a Fake name first!", player, 255,255,255, true) return end end addCommandHandler("fquit", Announce,FakeQuit,false) function FakeName(player, command, fnewnick) local playeracc = getPlayerAccount( player ) local newname = string.gsub(fnewnick, "%d", "") if newnick then setAccountData(playeracc, "fname", newname) local nick = newname outputChatBox("#00aaff[EasyCMD]: Your nickName was now changed to: #ffffff".. newname, player, 255,255,255, true) else outputChatBox("#00aaff[EasyCMD]: Your current nickName is: #ffffff".. named, player, 255,255,255,true) end end addCommandHandler("fname", FakeName, false, false)
-
Hello, i was wondering, can i make all my scripts think a player has left the server like this? function FakeQuit(player, command, newNick) triggerEvent("onPlayerQuit", player) end addCommandHandler("fquit", FakeQuit,false, false) Thanks HyPeX
-
i did that resource myself.. and all the resources were checked.
-
you cant get if it is over a marker, you can just know when it hits it. function MarkerHit ( hitPlayer, matchingDimension ) if matchingDimension == true then if hitPlayer then outputChatBox("".. Player .." in now over marker ".. source.. " !", getRootElement()) addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) end end function markerLeave ( leavingPlayer, matchingDimension ) if matchingDimension == true then if leavingPlayer then outputChatBox("".. leavingPlayer .." just left marker ".. source .." ! ", getRootElement()) end end addEventHandler ( "onClientMarkerLeave", getRootElement(), markerLeave ) If you're sure he is in then you should go ahead with this: https://wiki.multitheftauto.com/wiki/Is ... thinMarker
-
Where should i upload that? a webpage? where? Then into the lua side, i should use wich function to display it? Thanks HyPeX
-
Well thats what i'm asking, how can i create a movie ingame?.. Supposing i do not know anything about HTML.
-
Addint that, it only would work with clothes, wich i think that cant be changed/replaced.
-
Hello, i was wondering, is there a better method to stream an image? becouse i know i can create one with dxDraw from an external link wich could be updated/changed and make dxDraw delete it and re-create it every X time. This is basically to create a "video" inside the game, but assuming we can do this and getting stable refresh (timer with speed 50), it would need an extremly big upload/download speed to work out. the other idea was to make it client-sided the upload/download stuff, but it would be still, very hard to make it work. Any idea? PD: if i'm not being enought clear, please let me know.
-
There's a similar one about Vehicles if you want thought. https://community.multitheftauto.com/in ... ls&id=3585
-
i dont want to remove all of them, i'm allowing certain ones. (the ones possible to make with the keyboard). I know all that, i got this: http://www.gammon.com.au/scripts/doc.ph ... tring.find
-
Guys, i'm starting a project, pretty easy, but long. I'm going to make a long line to replace All characters(wich are not normal, a-z, 0-9, etc) to blank, or whatever wanted. Known facts: -Probably will lag a bit on the call. -Big-space taking. -definitons are not set yet. I'm going to be updating it. Greetz- HyPeX
-
Nvm, found out the script works, but the kick aint working becouse it is not correctly defined.
-
can someone tell me why it isnt recognizing "LxG"? function checkIfPlayerIsLxGAfterNickchange(oldnick, nick) local playername0 = string.gsub(nick, "#%x%x%x%x%x%x", "") local playername = string.gsub(playername0, "[L]", "l") local playername1 = string.gsub(playername, "[X]", "x") local playername2 = string.gsub(playername1, "[G]", "g") if (string.find(playername2, "lxg")) and not (getPlayerTeam(source) == LxGteam ) then if (isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(source)), aclGetGroup("LxG"))) then setPlayerTeam(source,LxGteam) outputChatBox("Welcome back " .. nick .. "#00aaff to LxG!",source, 231, 106, 12, true) playSoundFrontEnd(source, 1) else setTimer(checkLoginOrKick, 1000, 1, source) outputChatBox("Please login within 1 secs or change your name or you'll be kicked!", source, 255, 0, 0, true) end end end addEventHandler("onPlayerChangeNick", getRootElement(), checkIfPlayerIsLxGAfterNickchange)
-
A probably way is to kept the server recording (as shooter games do) and delete all recordings every 1min.. if a player dies, then send him the replay... but still, very hard. eg: every half a second, save player ped's pos and rot, and make a table. timer to delete the last object every 0.5 seconds. (this makes possible the recording part) Now, the hard part comes to the graphic show, you would need to set a camera matrix in another dimension (supposing you will need to have the objects loaded) on the Player Ped, aiming to the attacker (getrotation, aim, etc) and then display it creating a ped with movement. All this in a loop, wich will be EXTREMLY hard, but amazing if done.
-
That doesn't make any sense If you put it on client side, then it will execute if the client's pc has loaded the client script. It does, you loop the elements that are players and send to each one's client-side the trigger. (correctly setup should work, but i would rather use the player variable than all elements, but still should work)