Jump to content

.:HyPeX:.

Members
  • Posts

    1,255
  • Joined

  • Last visited

Everything posted by .:HyPeX:.

  1. .:HyPeX:.

    Money hack

    I havent noticed this myself, be sure to check your resources, and that runcode is off.
  2. Dude, you know how it works? i will be 1,2,3,4,5 (Or until whatever number the count returns) and it will work.. Eg: for i=1, 10 do outputChatBox(i, getRootElement()) end Will output: 1 2 3 4 5 6 7 8 9 10 Anyways yes, it wont work if based on a team and not a table. for i,v in ipairs(getPlayersInTeam(TEAM)) do outputChatBox("text", v) end But if table members.. for i=1, #members do outputChatBox("text", members[i]) end
  3. I only copied yours, didnt do anything.
  4. for i=1, countPlayersInTeam(TEAM) do outputChatBox("", i) end
  5. its code=lua (Obiously remind the []), and close with /code function onQuit () local account = getPlayerAccount(source) if account and not (isGuestAccount (account)) then local x,y,z = getElementPosition (source) local occupation = getElementData ( source, "Occupation" ) setAccountData (account, "myCash", tostring (getPlayerMoney (source))) setAccountData (account, "posX", x) setAccountData (account, "posY", y) setAccountData (account, "posZ", z) setAccountData (account, "Occupation", occupation ) setAccountData (account, "theSkin", tostring (getPedSkin (source))) setAccountData (account, "theInt", getElementInterior (source)) setAccountData (account, "theDim", getElementDimension (source)) setAccountData (account, "theWep0", getPedWeapon (source, 0)) setAccountData (account, "theWep1", getPedWeapon (source, 1)) setAccountData (account, "theWep2", getPedWeapon (source, 2)) setAccountData (account, "theWep3", getPedWeapon (source, 3)) setAccountData (account, "theWep4", getPedWeapon (source, 4)) setAccountData (account, "theWep5", getPedWeapon (source, 5)) setAccountData (account, "theWep6", getPedWeapon (source, 6)) setAccountData (account, "theWep7", getPedWeapon (source, 7)) setAccountData (account, "theWep8", getPedWeapon (source, 8)) setAccountData (account, "theWep9", getPedWeapon (source, 9)) setAccountData (account, "theWep10", getPedWeapon (source, 10)) setAccountData (account, "theWep11", getPedWeapon (source, 11)) setAccountData (account, "theWep12", getPedWeapon (source, 12)) setAccountData (account, "theAmmo0", getPedTotalAmmo (source, 0)) setAccountData (account, "theAmmo1", getPedTotalAmmo (source, 1)) setAccountData (account, "theAmmo2", getPedTotalAmmo (source, 2)) setAccountData (account, "theAmmo3", getPedTotalAmmo (source, 3)) setAccountData (account, "theAmmo4", getPedTotalAmmo (source, 4)) setAccountData (account, "theAmmo5", getPedTotalAmmo (source, 5)) setAccountData (account, "theAmmo6", getPedTotalAmmo (source, 6)) setAccountData (account, "theAmmo7", getPedTotalAmmo (source, 7)) setAccountData (account, "theAmmo8", getPedTotalAmmo (source, 8)) setAccountData (account, "theAmmo9", getPedTotalAmmo (source, 9)) setAccountData (account, "theAmmo10", getPedTotalAmmo (source, 10)) setAccountData (account, "theAmmo11", getPedTotalAmmo (source, 11)) setAccountData (account, "theAmmo12", getPedTotalAmmo (source, 12)) local team = getPlayerTeam(source) if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) function assigntheteam (old, acc) local acc = getPlayerAccount(source) local firstTime = getAccountData(acc, 'firstTime') local Unemployed = getTeamFromName ( "Unemployed" ) if ( Unemployed ) then if not firstTime then setPlayerTeam(source, Unemployed) spawnPlayer(source, 1643.40002, -2249.10009, 13.300, 178.0004, 0, 0, 0, Unemployed) fadeCamera(source, true) setPlayerMoney ( source, 2000 ) setCameraTarget(source, source) setAccountData(acc, 'firstTime', 'true') setElementData ( source, "Occupation", "Unemployed" ) giveWeapon ( source, 23, 200 ) giveWeapon ( source, 25, 200 ) else local playerMoney = getAccountData (acc, "myCash") local playerSkin = getAccountData (acc, "theSkin") local playerInt = getAccountData (acc, "theInt") local playerDim = getAccountData (acc, "theDim") local playerX = getAccountData (acc, "posX") local playerY = getAccountData (acc, "posY") local playerZ = getAccountData (acc, "posZ") local team = getAccountData (acc, "team") local playerWeaponID0 = getAccountData (acc, "theWep0") local playerWeaponID1 = getAccountData (acc, "theWep1") local playerWeaponID2 = getAccountData (acc, "theWep2") local playerWeaponID3 = getAccountData (acc, "theWep3") local playerWeaponID4 = getAccountData (acc, "theWep4") local playerWeaponID5 = getAccountData (acc, "theWep5") local playerWeaponID6 = getAccountData (acc, "theWep6") local playerWeaponID7 = getAccountData (acc, "theWep7") local playerWeaponID8 = getAccountData (acc, "theWep8") local playerOccupation = getAccountData (acc, "Occupation" ) local playerWeaponID9 = getAccountData (acc, "theWep9") local playerWeaponID10 = getAccountData (acc, "theWep10") local playerWeaponID11 = getAccountData (acc, "theWep11") local playerWeaponID12 = getAccountData (acc, "theWep12") local playerWeaponAmmo0 = getAccountData (acc, "theAmmo0") local playerWeaponAmmo1 = getAccountData (acc, "theAmmo1") local playerWeaponAmmo2 = getAccountData (acc, "theAmmo2") local playerWeaponAmmo3 = getAccountData (acc, "theAmmo3") local playerWeaponAmmo4 = getAccountData (acc, "theAmmo4") local playerWeaponAmmo5 = getAccountData (acc, "theAmmo5") local playerWeaponAmmo6 = getAccountData (acc, "theAmmo6") local playerWeaponAmmo7 = getAccountData (acc, "theAmmo7") local playerWeaponAmmo8 = getAccountData (acc, "theAmmo8") local playerWeaponAmmo9 = getAccountData (acc, "theAmmo9") local playerWeaponAmmo10 = getAccountData (acc, "theAmmo10") local playerWeaponAmmo11 = getAccountData (acc, "theAmmo11") local playerWeaponAmmo12 = getAccountData (acc, "theAmmo12") setPlayerMoney (source, tonumber(playerMoney)) spawnPlayer (source, playerX, playerY, playerZ +1, 0, playerSkin, playerInt, playerDim) giveWeapon(source, playerWeaponID0, playerWeaponAmmo0, true) giveWeapon(source, playerWeaponID1, playerWeaponAmmo1, false) giveWeapon(source, playerWeaponID2, playerWeaponAmmo2, false) giveWeapon(source, playerWeaponID3, playerWeaponAmmo3, false) giveWeapon(source, playerWeaponID4, playerWeaponAmmo4, false) giveWeapon(source, playerWeaponID5, playerWeaponAmmo5, false) giveWeapon(source, playerWeaponID6, playerWeaponAmmo6, false) giveWeapon(source, playerWeaponID7, playerWeaponAmmo7, false) giveWeapon(source, playerWeaponID8, playerWeaponAmmo8, false) giveWeapon(source, playerWeaponID9, playerWeaponAmmo9, false) giveWeapon(source, playerWeaponID10, playerWeaponAmmo10, false) giveWeapon(source, playerWeaponID11, playerWeaponAmmo11, false) giveWeapon(source, playerWeaponID12, playerWeaponAmmo12, false) setElementData ( source, "Occupation", playerOccupation ) setCameraTarget(source) local skin = getAccountData(acc,"skin") if (skin) then setElementModel(source, skin) end if getElementModel(source) == 0 then for i=1,16 do local typeclothes = getAccountData(acc,"clothes "..tonumber(i).."") local textclothes = getAccountData(acc,"textclothes "..tonumber(i).."") local modclothes = getAccountData(acc,"modclothes "..tonumber(i).."") addPedClothes (source,tostring(textclothes),tostring(modclothes),tonumber(typeSelected)) -- FOR TEAM if (team) and getTeamFromName(team) then setPlayerTeam(source, team) -- fadeCamera(source, true) end end end end end end addEvent ( "IfNewPlayerJoin", true ) addEventHandler ( "IfNewPlayerJoin", getRootElement(), assigntheteam ) addEventHandler ("onPlayerLogin", getRootElement(), assigntheteam)
  6. Its just Positions of image, First table (Image1) contains the 5 variable positions wich the Image1 could be. (At 1st table its if no image is extended, at second if first one is extended, at third, and so on until the 5th line, wich is equal to 4 images.) The values itself are pretty easy: local x,y = guiGetScreenSize() 1 = 0.2*x 2 = 0*y 3 = 1*x 4 = 1*y 5 = filepath
  7. .:HyPeX:.

    GPU Issues

    I'll see about getting a friend and testing it, what can i do in my pc for now?
  8. .:HyPeX:.

    GPU Issues

    Well, i dont have any PC Forum so thought that if anyone here knows my problem he could help me, its simple: I used my pc with no problems until 2~3 days ago, when my pc went crazy, and started updating alot of things (It even installed Service Pack 1). Ok. But when i tried to run my pc a few days after, my GPU Simply wasnt recognized, my BIOS by default tries to run the GPU, and if it doesnt exists, it starts the integrated one. My GPU Just turns up and keeps on with the fan at maximum speed, like cooling down, while the integrated one starts. (Basically adding or removing my gpu has no effect on the computer, the gpu just keeps there with the fan maxed if i connect it). I googled for over 2 hours and couldnt get anything, so i came here. This is my PC: -OS Win 7 Professional 64 Bit - SP1 -CPU AMD FX-4100 Zambezi 32nm Tecnología -RAM 4,00GB Doble-Canal DDR3 @ 668MHz (9-9-9-24) (GSkill) -GPU XFX 9600 GTX (Recognized whatever i do as 9800gt) -DVD/CD HL-DT-ST DVDRAM GH24NS90 ATA Device -Disk 465GB Western Digital WDC WD5000AAKX-001CA0 ATA Device (SATA) 3 Current Recognized GPU: W1943 on AMD 760G (Microsoft Corporation WDDM 1.1) (W1943 = LG Monitor) Thanks in advance, HyPeX
  9. This is made out of 4 images.. (Note they are 5 values, for 4 images, value 1 is if none is selected) ImageStart = { Image1 = { {0.2, 0, 1, 1, "Image1.jpg"}, {0.2, 0, 1, 1, "Image1.jpg"}, {0.2, 0, 1, 1, "Image1.jpg"}, {0.2, 0, 1, 1, "Image1.jpg"}, {0.2, 0, 1, 1, "Image1.jpg"} }, Image2 = { {0.4, 0, 1, 1, "Image2.jpg"}, {0.7, 0, 1, 1, "Image2.jpg"}, {0.3, 0, 1, 1, "Image2.jpg"}, {0.3, 0, 1, 1, "Image2.jpg"}, {0.3, 0, 1, 1, "Image2.jpg"} }, Image3 = { {0.6, 0, 1, 1, "Image3.jpg"}, {0.8, 0, 1, 1, "Image3.jpg"}, {0.8, 0, 1, 1, "Image3.jpg"}, {0.4, 0, 1, 1, "Image3.jpg"}, {0.4, 0, 1, 1, "Image3.jpg"} }, Image4 = { {0.8, 0, 1, 1, "Image4.jpg"}, {0.9, 0, 1, 1, "Image4.jpg"}, {0.9, 0, 1, 1, "Image4.jpg"}, {0.9, 0, 1, 1, "Image4.jpg"}, {0.5, 0, 1, 1, "Image4.jpg"} } } PD: Couldnt make the lua syntax work
  10. Thats not what i was asking, thanks for replyting thought..
  11. Hey guys, is death by starving disabled in MTA, and can be enabled/tweaked? Or i have to make a script from scrap about it? Thanks HyPeX
  12. As far as i remember, guieditor was only for making GUIs and worked on absolute values (very long since last time i checked)
  13. .:HyPeX:.

    Shutdown

    I'd lock this topic, this could be used for bad purpouses, there's no "legit" reason why you would want to do this without having access to server side.
  14. So, just as the awesome topic name says, here it is! https://community.multitheftauto.com/ind ... ls&id=9011 Note: Please use the community link as it counts downloads, also, please post if it was usefull or any problem! External Download Link: here Example result: (Note one of them is alpha 0) Greetz HyPeX
  15. It should be working, output what getAccount(data.account) does
  16. Then smart is not an account, else getAccount("smart") would return that account.
  17. output what "data.account" is... it must be an account name in order to work. (Accounts itself wont work!)
  18. No. Read the event, thats the button state, you're triggering this with onClientGUIClick. Read a little: https://wiki.multitheftauto.com/wiki/OnClientGUIClick
  19. ......... took me 3 mins.. Server: function onPlayerJQ(state) triggerClientEvent(getRootElement(), "RefreshGrid", source,state) end addEventHandler("onPlayerJoin", getRootElement(), onPlayerJQ, "join") addEventHandler("onPlayerQuit", getRootElement(), onPlayerJQ, "left") Client: function RefreshGridList(state) local Player = source -- Player Who Left / Join local state = state -- Can be "join" or "left" @Source --Do your stuff here for updating. end addEvent("RefreshGrid", true) addEventHandler("RefreshGrid", getRootElement(), RefreshGridList)
  20. @HyPeX Apparently, when someone buy weapons from the dealer, hes wants to give the dealer the money, but it's not working .. he already said what the problem is. Thats not a problem, thats a want, basic bussiness/economics.. PD: As far as i read, hitElement is a gui button... Also, you should add some outputchatbox in the chain to check wether they're working, and then if they are what you want.
  21. He didnt specified what was the problem.
  22. By the way, try making one single event with some IFs and variables, you'll save up lots of lines.
  23. As far as ik, you cant, since all the resources will try to be loaded upon join, you can just make a small resource for start, and then just make a huge loadstring with other files... Just giving some ideas... Anyways, this will be easier at 1.4 with downloadFile.
  24. Sadly, i've not seen radians in maths. Even tho, im suspecting about absolute numbers: try like this: local x,y = guiGetScreenSize dxDrawLine(x*0.5,y*0.5,x*0.5 + ( x*0.1 *math.sin(math.rad(i))),y*0.5 + ( y*0.1 *math.cos(math.rad(i))),(i>=0 and i<=50) and tocolor(60,60,60) or (i>50 and i<=180) and tocolor(255,50,50) or (i>180 and i<=360) and tocolor(0,255,70))
  25. onPlayerJoin onPlayerQuit setTimer Not sure what else you want
×
×
  • Create New...