Jump to content

loler

Members
  • Posts

    73
  • Joined

  • Last visited

Everything posted by loler

  1. loler

    Help please

    No my firewalls are not running and i tryed to fix it: I installed MTA 1.0.4 (release candidate) and i installed the data pack from http://www.nightly.multitheftauto.com It works for a week. Than it didnt works more and yes in local server too
  2. try this : https://community.multitheftauto.com/index.html?p ... ils&id=347 that i have and i didnt make it oups but it works fine PS:you must write /start zombie to start the zombie mode and /stop zombie to stop the zombie mode Good luck with this script
  3. loler

    Help please

    Please anyone help me , it happens to ALL servers , pls help me
  4. Nah i have a kid of that zombie but i didnt know where it is (i reinstalled the MTA) Anyway i think that i lost all the files. I will search
  5. It shows only the money and the name and the 2nd doesent exist
  6. No i copyed it from https://forum.multitheftauto.com/viewtop ... a&start=15 just the nitro and repair was made by you but the anothers are mine :P
  7. Nope it didnt gives any errors
  8. Yep , I have a map with objects that moves but i didnt release it ( its race map)
  9. It isnt working , can anyone help me?
  10. Nah , check ALL the mta scripting subforum and you will see
  11. Ok i maked one more , pls dont say that i sthealed cuz i didnt ( speccialy for the_ex) i stayed 3 hours on it -.-' Client side: addCommandHandler("userpanel",OpenStatusWindow) function createGUI() bindKey("F5","down",OpenStatusWindow) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} local player = getPlayerName(getLocalPlayer()) local playerMoney = getElementData(getLocalPlayer(), "Money") local playerPoints = getElementData(getLocalPlayer(), "Points") local playerWins = getElementData(getLocalPlayer(), "Wins") local playerLoses = getElementData(getLocalPlayer(), "Loses") GUIEditor_Window[1] = guiCreateWindow(11,135,275,194,"User panel",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(12,23,249,162,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("User",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(10,11,222,19,"Name: " .. player,false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Label[2] = guiCreateLabel(10,32,222,19,"Money: $" .. playerMoney,false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Label[3] = guiCreateLabel(10,52,222,19,"Points: " .. playerPoints,false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Label[4] = guiCreateLabel(10,52,222,19,"Wins: " .. playerWins,false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Label[5] = guiCreateLabel(10,52,222,19,"Loses: " .. playerLoses,false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Tab[2] = guiCreateTab("Shop",GUIEditor_TabPanel[1]) GUIEditor_Label[6] = guiCreateLabel(18,14,142,16,"Repair:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_Label[7] = guiCreateLabel(18,33,142,16,"Nitro:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Label[8] = guiCreateLabel(18,53,142,16,"Barrel:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) GUIEditor_Label[9] = guiCreateLabel(18,73,142,16,"Haystack:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[7],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false) GUIEditor_Button[1] = guiCreateButton(67,14,46,17,"$3500",false,GUIEditor_Tab[2]) GUIEditor_Button[2] = guiCreateButton(62,34,46,17,"$2000",false,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(50,54,46,17,"$1500",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(88,74,46,17,"$3000",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(92,94,46,17,"$4000",false,GUIEditor_Tab[2]) function fixv() triggerServerEvent("fixRequest", getLocalPlayer()) end addEventHandler("onClientGUIClick",GUIEditor_Button[1],fixv,false) function nitro() triggerServerEvent"nitro", getLocalPlayer()) end addEventHandler("onClientGUIClick",GUIEditor_Button[2],nitro,false) function barrel() triggerServerEvent("barrel", getLocalPlayer()) end addEventHandler("onClientGUIClick",GUIEditor_Button[3],barrel,false) triggerServerEvent("haystack", getLocalPlayer()) end addEventHandler("onClientGUIClick",GUIEditor_Button[4],haystack,false) GUIEditor_Tab[3] = guiCreateTab("Credits",GUIEditor_TabPanel[1]) GUIEditor_Memo[1] = guiCreateMemo(7,6,233,127,"User panel by loler",false,GUIEditor_Tab[3]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Tab[4] = guiCreateTab("Top Points",GUIEditor_TabPanel[1]) GUIEditor_Label[9] = guiCreateLabel(9,11,223,21,"Coming soon \"{SMILIES_PATH}/icon_wink.gif\" alt=\"\" title=\"Wink\" />",false,GUIEditor_Tab[4]) guiLabelSetColor(GUIEditor_Label[9],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[9],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[9],"left",false) -- Hide userpanel when Recource starts guiSetVisible( GUIEditor_Window[1], false) end addEventHandler("onClientResourceStart",resourceRoot,createGUI) Server side: addEvent("nitro", true) addEventHandler("nitro", getRootElement(), function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 7000 ) then takePlayerMoney(source, 7000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("Nitro Successfully added", source, 255, 255, 0, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 0, true) end end ) addEvent("fixRequest", true) addEventHandler("fixRequest", getRootElement(), function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 20000 ) then takePlayerMoney(source, 20000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("Vehicle Successfully Fixed", source, 255, 255, 0, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 0, true) end end ) addEvent("haystack", true) addEventHandler("haystack", getRootElement(), function() local x,y,z = getElementPosition( player ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 99999 ) then takePlayerMoney(source, 99999) createObject ( 3374 , x , y , z ) outputChatBox("Haystack Successfully planted", source, 255, 255, 0, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 0, true) end end ) addEvent("barrel", true) addEventHandler("barrel", getRootElement(), function() local x,y,z = getElementPosition( player ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 100000 ) then takePlayerMoney(source, 100000) createObject ( 1225 , x , y , z ) outputChatBox("Barrel Successfully planted", source, 255, 255, 0, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 0, true) end end )
  12. So how can i fix this script?
  13. Ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh SHIT and i was joking and I DONT COPY SCRIPTS but when i press F5 nothing happeneds , pls help me
  14. loler

    DD/DM WIN

    Nope, i found it on forum , here the link : https://forum.multitheftauto.com/viewtop ... 91&t=27487 And when i know good ONLY client sides can be found and what i need it is CLIENT side so
  15. Hey all. I maked a stats gui but it didnt works when i type in console start stats it gives: [11:52:56] Starting Stats [11:52:56] SCRIPT ERROR: ...am Files/MTA San Andreas/server/mods/deathmatch/resources/Stats/shop.lua:31: ')' expected near 'playerMoney' [11:52:56] WARNING: Loading script failed: ...am Files/MTA San Andreas/server/mods/deathmatch/resources/Stats/shop.lua:31: ')' expected near 'playerMoney' [11:52:56] start: Resource 'stats' started Ok here is my code: function OpenStatusWindow() guiSetVisible( GUIEditor_Window[1], not guiGetVisible( GUIEditor_Window[1] ) ) showCursor( guiGetVisible( GUIEditor_Window[1] ) ) end addCommandHandler("userpanel",OpenStatusWindow) function createGUI() bindKey("F5","down",OpenStatusWindow) GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} -- Get data local playerMoney = getElementData(getLocalPlayer(), "Money") local playerPoints = getElementData(getLocalPlayer(), "Points") local playerWins = getElementData(getLocalPlayer(), "Wins") local playerLoses = getElementData(getLocalPlayer(), "Loses") GUIEditor_Window[1] = guiCreateWindow(229,191,508,515,"Stats gui by loler",false) GUIEditor_Label[1] = guiCreateLabel(12,18,5,5,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Label[2] = guiCreateLabel(30,28,161,24,"Player money:"playerMoney,false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Label[3] = guiCreateLabel(30,47,179,16,"Player points:"..playerPoints,false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Label[4] = guiCreateLabel(30,64,152,16,"Player wins:" ..playerWins,false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_Label[5] = guiCreateLabel(29,83,163,19,"Player loses:"..playerLoses,false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Label[6] = guiCreateLabel(23,490,441,16,"Stats gui made by loler.May be not released without his permision.Have fun!!",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) GUIEditor_Image[1] = guiCreateStaticImage(227,53,272,375,"images/mtalogo.png",false,GUIEditor_Window[1]) -- Hide userpanel when Recource starts guiSetVisible( GUIEditor_Window[1], false) end addEventHandler("onClientResourceStart",resourceRoot,createGUI) Can anyone help me ? please
  16. OK I CANT APPLY FOR HEAD SCRIPTER , OR? LET ME TRY DONT BE RETTARD
  17. loler

    DD/DM WIN

    Nah , i dont know how to make the client
  18. Nah , learn scripting and learn what is FUNCTION !!! than we will help you
  19. say me the function and i make it i dont find it
  20. loler

    DD/DM WIN

    function onDestructionDerbyWin() triggerServerEvent("onDestructionDerbyWin", getLocalPlayer()) end I maked one but it didnt works
  21. loler

    DD/DM WIN

    So , how can i fix it?
  22. loler

    DD/DM WIN

    Hey , i found a dd/dm win but it didnt works addEvent("onPlayerDestructionDerbyWin",true) addEventHandler("onPlayerDestructionDerbyWin",getRootElement(), function (winner) givePlayerMoney(winner, 700) outputChatBox(getPlayerName ( winner ) .. " has won $700 as last player alive",getRootElement(),0,255,0) end ) I dont know why it didnt works can anyone help me?
×
×
  • Create New...