Jump to content

NotAvailable

Members
  • Posts

    595
  • Joined

  • Last visited

Everything posted by NotAvailable

  1. Hi, i have a little problem. I made a teleport script when u enter the marker and u type: /leave u will be teleported. But i get a error: local myMarker = createMarker( -2284.4592285156, 1909.6333007813, 7.9688625335693, "Cylinder", 1, 255, 0, 0, 140) function openForMe(hitElement, matchingDimension) if getElementType ( hitElement ) == "player" then local vehicle = getPlayerOccupiedVehicle ( hitElement ) if vehicle or not vehicle then local wanted = getPlayerWantedLevel ( hitElement ) if wanted == 0 then addCommandHandler("leave", teleportMassive) end end end end addEventHandler("onMarkerHit", myMarker,openForMe) function teleportMassive(hitElement, matchingDimension) if getElementType ( hitElement ) == "player" then local vehicle = getPlayerOccupiedVehicle ( hitElement ) if vehicle or not vehicle then setElementPosition(player, -2279.3093261719, 1909.4665527344, 8.9688625335693) setElementRotation(player, 270.36642456055) removeCommandHandler("leave") end end end Whats wrong with it? Im not getting any errors in the script editor. Regards, Jesseunit
  2. Hmmm.... I cant go anyfurther. Ideas empty Scripting knowledge to small.
  3. I found a resource called: world-peds That spawns walking peds. Like on GTA SA Singleplayer. heres the link to the resource: https://community.multitheftauto.com/index.php?p= ... ls&id=1319
  4. Ok. I tried another teleport resource. But the same happens again. Even the gate wont open for me.
  5. Nope, Its when i teleport the the town. There are shops and all that stuff.... So when i go in the shop marker. The shop wont open. When im not teleported and i enter the marker the marker works.
  6. Thats all fine. But when i teleport. And i go into the weaponshop marker. The GUI wont open,.
  7. So i need to make it server side?
  8. Maybe read the MTA Wiki.
  9. Hmmm.... maybe warpPedIntoCar Search for: Slothbot in MTA community website
  10. Language: Indonesian Information: It is a bot, You need slothbot for it. Start slothbot > type: /spawnbot Then there will be a bot spawned on ur location
  11. Here u go: http://www.mediafire.com/file/jugpwpnb7db31nh/bot.zip
  12. Hmmm.... I can teleport. Maybe i need to make it server side?
  13. Hmmm.... Its still not working. code: travelMarker = createMarker(2144.1611328125, 1628.5504150391, 993.57611083984, "Cylinder", 1.5, 0, 255, 0, 140) function wastedGui() showCursor(true) GUIEditor_Label = {} spawnWindow = guiCreateWindow(276,180,253,277,"Travel",false) guiWindowSetMovable(spawnWindow,false) guiWindowSetSizable(spawnWindow,false) mehicoSpawn = guiCreateButton(146,55,88,24,"Spawn",false,spawnWindow) addEventHandler("onClientGUIClick", mehicoSpawn, warptoMehico, false) GUIEditor_Label[1] = guiCreateLabel(13,55,73,13,"Little Mehico",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) racoonSpawn = guiCreateButton(146,111,88,24,"Spawn", false,spawnWindow) addEventHandler("onClientGUIClick", racoonSpawn, warptoRacoon, false) GUIEditor_Label[2] = guiCreateLabel(13,111,79,20,"Racoon Town",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Label[3] = guiCreateLabel(13,171,79,15,"Mercy",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) mercySpawn = guiCreateButton(146,171,88,24,"Spawn",false,spawnWindow) addEventHandler("onClientGUIClick", mercySpawn, warptoMercy, false) GUIEditor_Label[4] = guiCreateLabel(7,36,243,19,"_______________________________________",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_Label[5] = guiCreateLabel(7,190,243,20,"_______________________________________",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Label[6] = guiCreateLabel(27,28,194,17,"Choose where you want to travel to.",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) GUIEditor_Label[7] = guiCreateLabel(13,255,184,15,"European Zombie Virus, All rights reserved.",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[7],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false) guiSetFont(GUIEditor_Label[7],"default-small") end addEventHandler("onClientMarkerHit", travelMarker, wastedGui) function warptoRacoon() j1 = getLocalPlayer() setElementPosition(j1, -1964.1522216797, 137.70756530762, 9.5, 0 ) setElementRotation(j1, 0, 0, 92.309692382813) setElementInterior (j1, 0 ) setElementHealth(j1, 100) guiSetVisible(spawnWindow, false) showCursor(false) end function warptoMehico() j2 = getLocalPlayer() setElementPosition(j2, -169.74603271484, 1118.3814697266, 27.694049835205, 0 ) setElementRotation(j2, 0, 0, 358.806640625) setElementHealth(j2, 100) setElementInterior (j2, 0 ) guiSetVisible(spawnWindow, false) showCursor(false) end function warptoMercy() j3 = getLocalPlayer() setElementPosition(j3, 1184.7172851563, -1323.6173095703, 13.573800086975, 0 ) setElementRotation(j3, 0, 0, 270.24758911133) setElementHealth(j3, 100) setElementInterior (j3, 0 ) guiSetVisible(spawnWindow, false) showCursor(false) end
  14. Hi, I have a little problem with my Travel GUI. When i open the travel GUI, And i click travel. I will be teleported to the specified town. But when i stand in a marker the GUI wont pop-up. How can i fix this? heres the code(CLIENT): travelMarker = createMarker(2144.1611328125, 1628.5504150391, 993.57611083984, "Cylinder", 1.5, 0, 255, 0, 140) function wastedGui() showCursor(true) GUIEditor_Label = {} spawnWindow = guiCreateWindow(276,180,253,277,"Travel",false) guiWindowSetMovable(spawnWindow,false) guiWindowSetSizable(spawnWindow,false) mehicoSpawn = guiCreateButton(146,55,88,24,"Spawn",false,spawnWindow) addEventHandler("onClientGUIClick", mehicoSpawn, warptoMehico, false) GUIEditor_Label[1] = guiCreateLabel(13,55,73,13,"Little Mehico",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) racoonSpawn = guiCreateButton(146,111,88,24,"Spawn", false,spawnWindow) addEventHandler("onClientGUIClick", racoonSpawn, warptoRacoon, false) GUIEditor_Label[2] = guiCreateLabel(13,111,79,20,"Racoon Town",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Label[3] = guiCreateLabel(13,171,79,15,"Mercy",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) mercySpawn = guiCreateButton(146,171,88,24,"Spawn",false,spawnWindow) addEventHandler("onClientGUIClick", mercySpawn, warptoMercy, false) GUIEditor_Label[4] = guiCreateLabel(7,36,243,19,"_______________________________________",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_Label[5] = guiCreateLabel(7,190,243,20,"_______________________________________",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Label[6] = guiCreateLabel(27,28,194,17,"Choose where you want to travel to.",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) GUIEditor_Label[7] = guiCreateLabel(13,255,184,15,"European Zombie Virus, All rights reserved.",false,spawnWindow) guiLabelSetColor(GUIEditor_Label[7],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false) guiSetFont(GUIEditor_Label[7],"default-small") end addEventHandler("onClientMarkerHit", travelMarker, wastedGui) function warptoRacoon() jij = getLocalPlayer() setElementPosition(jij, -1964.1522216797, 137.70756530762, 9.5, 0 ) setElementRotation(jij, 0, 0, 92.309692382813) setElementInterior (jij, 0 ) setElementHealth(jij, 100) guiSetVisible(spawnWindow, false) showCursor(false) end function warptoMehico() jij = getLocalPlayer() setElementPosition(jij, -169.74603271484, 1118.3814697266, 27.694049835205, 0 ) setElementRotation(jij, 0, 0, 358.806640625) setElementHealth(jij, 100) setElementInterior (jij, 0 ) guiSetVisible(spawnWindow, false) showCursor(false) end function warptoMercy() jij = getLocalPlayer() setElementPosition(jij, 1184.7172851563, -1323.6173095703, 13.573800086975, 0 ) setElementRotation(jij, 0, 0, 270.24758911133) setElementHealth(jij, 100) setElementInterior (jij, 0 ) guiSetVisible(spawnWindow, false) showCursor(false) end Regards, Jesseunit
  15. I cant find how to make a zombie zone on the wiki
  16. Version 2 coming soon - All players with random skins can enter - Some bugs fixed
  17. Its still not working i get this error: [15:30:13] WARNING: raceexp\Untitled 1.lua:5: Bad argument @ 'getElementType' This is the code(server): addEvent("onPlayerPickUpRacePickup", true) addEventHandler("onPlayerPickUpRacePickup", getRootElement(), function (guy, targetElem) local jij = getPlayerFromName(guy) if ( getElementType ( targetElem ) == "vehicle" ) and ( getElementModel ( targetElem ) == 425 ) then if (getPedOccupiedVehicle(jij)) then local acc = getPlayerAccount(jij) local accountdata = getAccountData(acc,"exp") if accountdata then setAccountData(acc,"exp",tonumber(getAccountData(acc,"exp"))+10) setElementData(jij,"exp",tonumber(getElementData(jij,"exp"))+10) outputChatBox("Exp earned: ".. tonumber(getAccountData(acc,"exp"))+10,jij,0,255,0) else setAccountData(acc,"exp",1) end end end end)
  18. Something like this? hunterVehicle = { [425]=true } function enterVehicle ( thePlayer, seat, jacked ) if ( hunterVehicle[getElementModel ( source )] ) then local acc = getPlayerAccount(attacker) local accountdata = getAccountData(acc,"exp") if accountdata then setAccountData(acc,"exp",tonumber(getAccountData(acc,"exp"))+10) setElementData(attacker,"exp",tonumber(getAccountData(acc,"exp"))+10) outputChatBox("Exp earned: ".. tonumber(getAccountData(acc,"exp"))+10,attacker,0,255,0) else setAccountData(acc,"exp",1) end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle ) function doodVehicle ( thePlayer, seat, jacked ) if (thePlayer) and (thePlayer ~=source) then local acc = getPlayerAccount(attacker) local accountdata = getAccountData(acc,"exp") if accountdata then setAccountData(acc,"exp",tonumber(getAccountData(acc,"exp"))+1) setElementData(attacker,"exp",tonumber(getAccountData(acc,"exp"))+1) outputChatBox("Exp earned: ".. tonumber(getAccountData(acc,"exp"))+1,attacker,0,255,0) else setAccountData(acc,"exp",1) end end end addEventHandler ( "onPlayerWasted", getRootElement(), doodVehicle ) Hmmm its still not working, it still says: bad argument at: setAccountData, getAccountData,setElementData
  19. Something like this? hunterVehicle = { [425]=true } function enterVehicle ( thePlayer, seat, jacked ) if ( hunterVehicle[getElementModel ( source )] ) then local acc = getPlayerAccount(attacker) local accountdata = getAccountData(acc,"exp") if accountdata then setAccountData(acc,"exp",tonumber(getAccountData(acc,"exp"))+10) setElementData(attacker,"exp",tonumber(getAccountData(acc,"exp"))+10) outputChatBox("Exp earned: ".. tonumber(getAccountData(acc,"exp"))+10,attacker,0,255,0) else setAccountData(acc,"exp",1) end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle ) function doodVehicle ( thePlayer, seat, jacked ) if (thePlayer) and (thePlayer ~=source) then local acc = getPlayerAccount(attacker) local accountdata = getAccountData(acc,"exp") if accountdata then setAccountData(acc,"exp",tonumber(getAccountData(acc,"exp"))+1) setElementData(attacker,"exp",tonumber(getAccountData(acc,"exp"))+1) outputChatBox("Exp earned: ".. tonumber(getAccountData(acc,"exp"))+1,attacker,0,255,0) else setAccountData(acc,"exp",1) end end end addEventHandler ( "onPlayerWasted", getRootElement(), doodVehicle )
  20. Dont change respawn time just place them and change type
  21. heres my code: addEvent( "onPlayerWasted" ); addEventHandler( "onPlayerWasted", getRootElement(), function( ammo, attacker, weapon, bodypart ) if (attacker) and (attacker ~=source) then --EXP & RANK GEDOE-- local acc = getPlayerAccount(attacker) local accountdata = getAccountData(acc,"exp") if accountdata then setAccountData(acc,"exp",tonumber(getAccountData(acc,"exp"))+1) setElementData(attacker,"exp",tonumber(getAccountData(acc,"exp"))+1) outputChatBox("Total exp: ".. tonumber(getAccountData(acc,"exp"))+1,attacker,0,255,0) else setAccountData(acc,"exp",1) end end end)
  22. I tried that but it doesnt work.
  23. Doesnt work. Im trying to make if someone gets the hunter he wins 3 exp But it doesnt work
  24. I know, There are some spaces between
×
×
  • Create New...