Jump to content

Bilal135

Members
  • Posts

    843
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Bilal135

  1. Host problem dude.... +We'll (Zombie Apocalypse 1.1) will be developing in a newer way.
  2. Thanks WhoAmI! Finally I learned GUI Gridlists
  3. It won't open GUI. + Its the first time I'm trying to do Grid List, so if I did something wrong, please fix it. Thanks client: GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(523, 209, 324, 347, "Skin", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 23, 303, 272, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin", 0.9) guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "a", false, false) GUIEditor.button[1] = guiCreateButton(113, 300, 103, 37, "Select", false, GUIEditor.window[1]) end ) addCommandHandler("open", function() guiSetVisible(GUIEditor.window[1], true) end ) function setSkin() if ( source == GUIEditor.button[1] ) then local row, col = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) local name = guiGridListGetItemText( GUIEditor.gridlist[1], row, col) if name == "a" then setElementModel(source, 280) end end addEventHandler("onClientGUIClick", root, setSkin)
  4. Dude, that was AlGebra, you stupid.
  5. Lambert Organization of Vampires AZA
  6. Xaguration Xterminator Donkeys PPZ
  7. Lambert Organization of Vaccination PZA
  8. Thanks Walid! Finally worked!
  9. Walid, if I use your code. Then error comes. Lua 33: Expected element at argument 2 got nil
  10. Still error coming, Walid. Well, MrTasty's tip worked, and another error came. This is my latest code ( I mentioned above as well ). Marker = createMarker(1946.6300048828, -1804.4787597656, 13.546875,"cylinder", 1, 255, 255, 255, 255) DestinationMarker = createMarker(1997.4537353516, -1829.6383056641, 13.546875,"cylinder", 1, 255, 0, 0, 255) local team = createTeam("Criminals", 255, 0, 0) local van = createVehicle(482, 1947.1529541016, -1807.6397705078, 13.546875) addEvent("criminaljob", true) addEventHandler("criminaljob", root, function() setPlayerTeam(source, getTeamFromName("Criminals")) setPlayerNametagColor(source, 255, 0, 0) outputChatBox("You accepted the job Criminal. Take the van to the yellow blip in map.", source, 0, 255, 0) end ) addEventHandler("onMarkerHit", Marker, function(plr) triggerClientEvent(plr, "onHit", plr) end ) function onEnter(vehicle) if isPedInVehicle(source) and vehicle == van then outputChatBox("Take the van to the desired location to become a criminal! (Blip)", source, 255, 0, 0) local blip = createBlip(1997.4537353516, -1829.6383056641, 13.546875, 0) setElementVisibleTo(blip, source, true) setElementVisibleTo(DestinationMarker, source, true) else return false end end addEventHandler("onPlayerVehicleEnter", root, onEnter) addEventHandler("onMarkerHit", resourceRoot, function(vehicle) if not isPedInVehicle(source) then return false end if not vehicle == van then return false end if not source == DestinationMarker then return false end local vehicle = getPedOccupiedVehicle(source) destroyElement(vehicle) outputChatBox("You reached the desired destination, you're now a criminal!", source, 255, 0, 0) setPlayerTeam(source, getTeamFromName("Criminals")) end ) Lua 34 : Bad Argument @ isPedInVehicle [Expected ped at argument 1, got marker]
  11. Donkeys Organization of Zombies AKZ
  12. Thanks MrTasty, that problem is fixed. Another error occured. Lua 34 : Bad Argument @ isPedInVehicle [Expected ped at argument 1, got marker] Latest code: Marker = createMarker(1946.6300048828, -1804.4787597656, 13.546875,"cylinder", 1, 255, 255, 255, 255) DestinationMarker = createMarker(1997.4537353516, -1829.6383056641, 13.546875,"cylinder", 1, 255, 0, 0, 255) local team = createTeam("Criminals", 255, 0, 0) local van = createVehicle(482, 1947.1529541016, -1807.6397705078, 13.546875) addEvent("criminaljob", true) addEventHandler("criminaljob", root, function() setPlayerTeam(source, getTeamFromName("Criminals")) setPlayerNametagColor(source, 255, 0, 0) outputChatBox("You accepted the job Criminal. Take the van to the yellow blip in map.", source, 0, 255, 0) end ) addEventHandler("onMarkerHit", Marker, function(plr) triggerClientEvent(plr, "onHit", plr) end ) function onEnter(vehicle) if isPedInVehicle(source) and vehicle == van then outputChatBox("Take the van to the desired location to become a criminal! (Blip)", source, 255, 0, 0) local blip = createBlip(1997.4537353516, -1829.6383056641, 13.546875, 0) setElementVisibleTo(blip, source, true) setElementVisibleTo(DestinationMarker, source, true) else return false end end addEventHandler("onPlayerVehicleEnter", root, onEnter) addEventHandler("onMarkerHit", resourceRoot, function(vehicle) if not isPedInVehicle(source) then return false end if not vehicle == van then return false end if not source == DestinationMarker then return false end local vehicle = getPedOccupiedVehicle(source) destroyElement(vehicle) outputChatBox("You reached the desired destination, you're now a criminal!", source, 255, 0, 0) setPlayerTeam(source, getTeamFromName("Criminals")) end )
  13. I was trying to make a criminal job, but one error keeps coming. The player has to get the desired car, and take it to the desired location. on the marker hit (DestinationMarker - variable of that in code), the vehicle should get destroyed (not blown up). And his team should be set to criminal. Marker = createMarker(1946.6300048828, -1804.4787597656, 13.546875,"cylinder", 1, 255, 255, 255, 255) local team = createTeam("Criminals", 255, 0, 0) local van = createVehicle(482, 1947.1529541016, -1807.6397705078, 13.546875) addEvent("criminaljob", true) addEventHandler("criminaljob", root, function() setPlayerTeam(source, getTeamFromName("Criminals")) setPlayerNametagColor(source, 255, 0, 0) outputChatBox("You accepted the job Criminal. Take the van to the yellow blip in map.", source, 0, 255, 0) end ) addEventHandler("onMarkerHit", Marker, function(plr) triggerClientEvent(plr, "onHit", plr) end ) function onEnter(vehicle) if isPedInVehicle(source) and vehicle == van then outputChatBox("Take the van to the desired location to become a criminal! (Blip)", source, 255, 0, 0) local blip = createBlip(1997.4537353516, -1829.6383056641, 13.546875, 0) setElementVisibleTo(blip, source, true) local DestinationMarker = createMarker(1997.4537353516, -1829.6383056641, 13.546875,"cylinder", 1, 255, 0, 0, 255) setElementVisibleTo(DestinationMarker, source, true) else return false end end addEventHandler("onPlayerVehicleEnter", root, onEnter) addEventHandler("onMarkerHit", DestinationMarker, function(vehicle) if not isPedInVehicle(source) then return false end if not vehicle == van then return false end local vehicle = getPedOccupiedVehicle(source) destroyElement(vehicle) outputChatBox("You reached the desired destination, you're now a criminal!", source, 255, 0, 0) setPlayerTeam(source, getTeamFromName("Criminals")) end ) Debugscript 3 Error: Lua: 32 - Expected element at argument 2 got nil. Can anybody fix my code? Can't find out how it has to be fixed. Thanks!
  14. Fundamental United Kings LAO
  15. Project Long Zombies LFT
  16. Yaar us mein kuch bhi mushkil nai hai, sirf variables ko samajhne ki koshis karo aur wiki se functions ke baare mein parho.
  17. Long Uncle's Apee PAL
  18. Hello guys, you may know about my previous server Left 4 Theft : San Andreas, which got merged with Zombie Apocalypse 1.1. Therefore, it was completely pointless for me to keep the resources my self so I decided to develop them a bit more, and release them. Features: • Army base. [Map] [Made From Scratch] • Crashed planes. [Map] [Made From Scratch] • Nice looking hud. [Community] • Nice looking radar. [Community] • Login Panel. [Made From Scratch] • Money Saver. [Community] • Pershing Square shops. [Made From Scratch] [Weapon shop, Medic shop, Hotdog shop] • Hidden pickups in red zones. [Made From Scratch] • Red zones. [Made From Scratch] • Police base. [Map] [Made From Scratch] • Team Selector. [Made From Scratch] - Named [L4T]Spawner in .zip • Hidden vaccination. [Made From Scratch] [Godmode] • Welcoming text. [Made From Scratch] • Zombie Kill Reward. [Community] • Level System. [Work in progress] [Releasing in v2] • Slothman's ZDay Zombies. Download From Here [Community] This may contain some bugs, but please don't contact me to fix them, as I don't have time to do. This gamemode is now good enough to be a base gamemode for any zombie apocalypse server, and I hope someone more talented than me will continue improving this. Screenshots: Download: https://community.multitheftauto.com/index.php?p= ... s&id=11413 Special thanks to MHS for contribution! Thanks.
  19. Zombie Xaguration Zombie
  20. Becoaz yoou maz...buehehehhehehehehee why yoi la idioto?
×
×
  • Create New...