
Pierce
Members-
Posts
64 -
Joined
-
Last visited
Everything posted by Pierce
-
Keep in mind guys that my topic was related to silly old hacks like mod_sobeit and such, not hacking entire server and compromising server files.
-
You don't get it. MTA bans players for using trainers. Meaning that they can't play any server nor they could attempt to join mine because they're banned from "exterior" I just think why can't mta just kick players from servers if they have a trainer(unless the server allows it)? why banning them if perhaps there would be some mad man who'd like to gather all hackers in a server for fun?
-
if all the hackers simply get banned from all servers, what is the point of having ability to disable hack detection in mtaserver.conf?
-
Hello. My question is "Why is MTA banning hackers?". It's a nice thing that MTA does it, i understand that there are programs which change serial(or alter something related to mta itself), but what about regular gameplay hacks? why can't those players be kicked by AC detection? I miss times when hackers could enter the server and you'd ban them with joy.
-
I'd say that most used and useful languages are C++(and other C languages) and Java with basic knowledge of lua, learning those languages won't be so hard but it will take time to learn those languages. you could've actually googled tutorials by yourself but here are some i found useful: C++; http://www.cplusplus.com/doc/tutorial/ http://www.tutorialspoint.com/cplusplus/ http://www.cprogramming.com/tutorial/c++-tutorial.html Java; https://docs.oracle.com/javase/tutorial/ http://www.tutorialspoint.com/java/ http://www.javatpoint.com/java-tutorial There are a lot of tutorials for these languages, just google it.
-
Not sure what is there to sell in here as there's a pretty similiar code in the forum which can be found, and your script is just a bit better version of that code
-
any errors?what is your level and experience?
-
omg no dxDrawText("LV: "..LV.." XP: "..XP.."/"..levelUpTable[LV], sWidth*(400/1280), sHeight*(500/720), sWidth*(621/1280), sHeight*(715/720), tocolor(255, 0, 0, 255), (0.8/720)*sHeight, "bankgothic", "left", "top", false, false, true, true, false)
-
Please look down at wiki the function dxDrawText or simply click on that red text on this forum and read it's arguments. here is your explained mistake if you read the wiki, you can see that after color argument scale is next which is a number and after scale is font argument which is a string now here is part where you are wrong tocolor(255, 255, 255, 255), (0.8/1280)*sWidth, -> (0.8/720)*sHeight, -- you have that thing on right side instead of "bankgothic", so just delete it and it should draw the text
-
after tocolor argument in dxDrawText you used twice numbers and it can only go once remove one of those calculations and it will draw the text fine
-
That's because script is trying to get data [0] from table which doesn't exist. I dont know if tables can have [0] as index because i haven't tried it but you could try to do it otherwise try to set default minimum level to 1 and it will work fine shortly, it's because your level is currently 0 which is not in the table
-
have you considered using tables? e.g local sw,sh = guiGetScreenSize() levelUpTable = { -- required experience to level up,e.g if someone is level 1 he would need 500 xp to level up [1] = "500", [2] = "1000", [3] = "2000" } -- now draw it function levelRequired() local experience = getElementData(localPlayer,"EXP") local level = getElementData(localPlayer,"LV") dxDrawText("Level "..level.." EXP: "..experience.."/"..levelUpTable[level],sw/2,sh/2,sw,sh,tocolor(255,255,255)) end addEventHandler("onClientRender",root,levelRequired) there are better alternatives how to update level data instead of doing it onClientRender but this would work fine
-
brutus * cough * function blowVehicleOnHit(loss) -- Calculate speed in mph local speedx,speedy,speedz = getElementVelocity(source) -- cough cough cough local actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) local mph = actualspeed*111.847 -- Blow vehicle if mph > 50 then blowVehicle(source) end end addEventHandler("onVehicleDamage", root, blowVehicleOnHit) * cough *
-
It's My hud stolen from Client Files actually it's an old hud from grafuroam which you stole putting images and changing hud text abit doesn't make stolen hud yours. still that resource is stolen so it should get removed.
-
not rly something special it can be made in 15 mins or less
-
<meta> <script src="script.lua" type="client" /> <file src="lvl61.png" /> </meta> i guess the image was damaged or something,idk how,but when i changed image,it worked
-
yeah its set in meta,also now i've noticed in console it outputs this: Download error: Invalid file (draw) lvl61.png
-
ive changed just image name in script but other stuff is from wiki local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution. function renderDisplay ( ) local seconds = getTickCount() / 1000 local angle = math.sin(seconds) * 80 -- This will draw the graphic file 'arrow.png' at the top middle of the screen -- using the size of 100 pixels wide, and 240 pixels high. -- The center of rotation is at the top of the image. dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'lvl61.png', angle, 0, -120 ) end function HandleTheRendering ( ) addEventHandler("onClientRender", getRootElement(), renderDisplay) -- Keep everything visible with onClientRender. end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) this doesn't draw this picture no errors my res is 1920x1080
-
Thanks abxf
-
function warnPlayersOfDamage(vehicle) local pveh = getPedOccupiedVehicle (localPlayer) local vhealth = getElementHealth(pveh) if vhealth < 260 then outputChatBox("Your vehicle is highly damaged. It may explode.",localPlayer,255,0,0) end end addEventHandler("onClientVehicleEnter",localPlayer,warnPlayersOfDamage) im just doing this because im bored but this thing doesnt even react.no errors,nothing. please help
-
Thanks Solidsnake14
-
please help idk whats wrong in here function disableKnockOff(localPlayer) setPedCanBeKnockedOffBike(localPlayer,false) end addEventHandler("onClientVehicleCollision", localPlayer,disableKnockOff) doesnt give any errors i just want to make that you cant fall off bikes