Jump to content

#Paper

Members
  • Posts

    568
  • Joined

  • Last visited

Everything posted by #Paper

  1. #Paper

    Version

    What version of lua, mta uses?
  2. He said that he don't care if someone post his system in the community... so i can't download it, whitout asking nobody...
  3. Noob, sniper gave me the permission to use it... now i'll modifi it, adding a gui and other things... If someone posted it in the community i can download it... Edit: Noob mother... YOUR ANTIAFK? I DID TAKE IT FROM THE COMMUNITY NOOOOOOOOOOOB! -.-"
  4. I fixxed 2 bugs in this mode... I'm helping volk to make it
  5. I did try to use this code, but the nametag still be white...
  6. It returns a false value T_T function setarchievment () local serial = getPlayerSerial(source) local getSerial = executeSQLSelect("archievment", "serial", "serial='"..serial.."'") if ( type( getSerial ) == "table" and #getSerial == 0 ) or not getSerial then executeSQLInsert ( "archievment", "'"..serial.."', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone', 'Undone'" ) setElementData(source, "hunterman", "Undone") setElementData(source, "rich", "Undone") setElementData(source, "points", "Undone") setElementData(source, "wtf", "Undone") setElementData(source, "skilled1", "Undone") setElementData(source, "skilled2", "Undone") setElementData(source, "skilled3", "Undone") setElementData(source, "unstopplayer", "Undone") outputDebugString("Maked archievment table for"..getPlayerName(source)) else local archievment1 = executeSQLSelect("arch", "hunterman", "serial='"..serial.."'") local archievment2 = executeSQLSelect("arch", "rich", "serial='"..serial.."'") local archievment3 = executeSQLSelect("arch", "points", "serial='"..serial.."'") local archievment4 = executeSQLSelect("arch", "wtf", "serial='"..serial.."'") local archievment5 = executeSQLSelect("arch", "unstopplayer", "serial='"..serial.."'") local archievment6 = executeSQLSelect("arch", "skilled1", "serial='"..serial.."'") local archievment7 = executeSQLSelect("arch", "skilled2", "serial='"..serial.."'") local archievment8 = executeSQLSelect("arch", "skilled3", "serial='"..serial.."'") setElementData(source, "hunterman", tostring(archievment1[1]["hunterman"])) setElementData(source, "rich", tostring(archievment2[1]["rich"])) setElementData(source, "points", tostring(archievment3[1]["points"])) setElementData(source, "wtf", tostring(archievment4[1]["wtf"])) setElementData(source, "skilled1", tostring(archievment5[1]["skilled1"])) setElementData(source, "skilled2", tostring(archievment6[1]["skilled2"])) setElementData(source, "skilled3", tostring(archievment7[1]["skilled3"])) setElementData(source, "unstopplayer", tostring(archievment8[1]["unstopplayer"])) outputDebugString("Loaded archievment table for"..getPlayerName(source)) end end addEventHandler("onPlayerJoin", getRootElement(), setarchievment)
  7. -.-" he can search it by hisself... I use the wiki every weeks since 2009, and I never seen this page, it was the 1st time ( and I don't know where is this page in the MainPage of the wiki; where is it please? ) I don't remember where i did find this page, but it is cool
  8. -.-" he can search it by hisself...
  9. the txds of the objects aren't the same of the dff model... search here: https://wiki.multitheftauto.com/wiki/IDE_List
  10. #Paper

    Healt Progress

    Yes, i modified somebar whit my bar, but nothing... T_T
  11. #Paper

    Healt Progress

    No, it doesn't work, and doesn't show any error... P.S: You forgot a ')' to close getPedOccupiedVehicle, i added it
  12. #Paper

    Healt Progress

    In the nametags.lua i saw the code for the healt, is it the same thing? But i didn't see the fancyprogress.lua
  13. How i can set the progress of a progressbar proportional the vehicle's healt?
  14. Your timer is wrong, it should be, setTimer(setTeam, 1000, 0) Oh i forgot ty
  15. function setTeam() for id, player in ipairs(getElementsByType("player")) do if getElementModel(player ) == 78 then setPlayerTeam" class="kw6">setPlayerTeam ( player , teamWorkless) end end end setTimer(1000, setTeam,-1) Try this, i did not test it, but i think that it can be work... P.S: Set the player's team every 1 second...
  16. 750/1024 or 170/768 what numbers are?
  17. #Paper

    Money Trasfer

    When i press the btn nothing happen... -------------------SERVER SIDE addEvent("onMoneyTrasfer", true) function gotPlayerFromName(theSender, theReiciver, theMoney) local getSenderCash = getElementData(theSender, "Money") local getReiciverCash = getElementData(theReiciver, "Money") if not theMoney <= getSenderCash then setElementData(theSender, "Money", getSenderMoney - theMoney) setElementData(theReiciver, "Money", getReiciverCash + theMoney) outputChatBox( "#ccf7fcMoney Trasfer: #ffffff"..getPlayerName(theSender).." #9ACD32gave you #43CD80$"..tonumber(money).."#9ACD32!", thePlayer, 255,255,255,true) else outputChatBox( "#ccf7fcShop: #9ACD32You have not enough money!", thePlayer, 255,255,255,true) end end addEventHandler("onMoneyTrasfer", getRootElement(), gotPlayerFromName) ------------------------CLIENT SIDE if not getMoney == "" then local getMoney = guiGetText(GUIEditor_Edit[3]) local selectedPlayer = guiGridListGetItemText(GUIEditor_Grid[3], guiGridListGetSelectedItem(GUIEditor_Grid[3]), 1) triggerServerEvent("onMoneyTrasfer", getLocalPlayer(), getLocalPlayer(), getPlayerFromName(selectedPlayer), getMoney) else outputChatBox( "#ccf7fcYou must insert an import!", getLocalPlayer(), 255,255,255,true) end
  18. it's "#ff00ffAcit#00ff00anoX" and if i type "AcitanoX" i must retrieve "#ff00ffAcit#00ff00anoX" player...
  19. Why don't needed? I i type "AcitanoX" and my nick is "#ff00ffAcit#00ff00anoX" the server can't get AcitanoX player, because the nick is separed by the codes...
  20. the same thing, doesn't work...
×
×
  • Create New...