Jump to content

Hadif

Members
  • Posts

    73
  • Joined

  • Last visited

Everything posted by Hadif

  1. Script: function theLocator() local allLocation = {"Las Venturas", "San Fierro", "Whetstone", "Flint County", "Red County", "Los Santos"} local theLocation = getElementZoneName(source, true) for theKey, allLocation in pairs(allLocation) do if (theLocation == allLocation) then killPed(source) end end end function checkLocation() setTimer(theLocator(source), 0, 0) end addEventHandler("onPlayerSpawn", getRootElement(), checkLocation) Result: Bad argument @ 'setTimer' [Expected function at argument 1, got nil]
  2. thanks dude! ill try...
  3. function theLocator(source) local allLocation = {"Los Santos", "Las Venturas"} local theLocation = getElementZoneName(source, true) for theKey, allLocation in pairs(allLocation) do if (theLocation == allLocation) then killPed(source) end end end function checkLocation() setTimer(theLocator(source), 1000, 0) end addEventHandler("onPlayerSpawn", getRootElement(), checkLocation) -- Test Command addCommandHandler("locator", theLocator) setTimer Problem!
  4. function theLocator(source) local allLocation = {"Rodeo", "Richman", "Dillimore", "Blueberry", "Blueberry Acres", "The Panopticon", "Easter Bay Airport", "Foster Valley", "Missionary Hill", "Avispa County Club"} local theLocation = getElementZoneName(source) for theKey, allLocation in pairs(allLocation) do if (theLocation == allLocation) then killPed(source) outputChatBox("This zone is not allowed!", getRootElement(), 255, 0, 0) else outputChatBox("This zone is allowed!", getRootElement(), 0, 255, 0) end end end How do I trigger this event? I want it to kill the Player who go to specific location on time.
  5. this is much better and easier! Thanks bro!
  6. How do I make a script that makes location limited? Example: If player get out from Los Santos, they will be kill or be warn. Any help will be appreciate, thank you!
  7. i think, this will help. thnk you
  8. Hey guys, i need a simple script. A script that kill player if they leave Los Santos.
  9. hey HanSmith, what is your server ip? this is nice, coz u got DayZ Standalone ..
  10. https://community.multitheftauto.com/index.php?p= ... s&id=10324 DONE
  11. setObjectBreakable is client side function, that's my problem, i didn't realize .. thx for helping TAPL & Anubhav
  12. I want to create some object when resource start. Then, make the created object frozen and unbreakable. The problem is the object not frozen and breakable. Here my script, someone plz help.. function onWorldStart ( ) addObject ( ) end function addObject ( ) brrier = { } garage = { } tfcone = { } brrier [ 1 ] = createObject ( 1422, -1883.9, -802, 31.4, 0, 0, 270, false ) brrier [ 2 ] = createObject ( 1422, -1889, -812.6, 31.4, 0, 0, 0, false ) brrier [ 3 ] = createObject ( 1422, -1885.9, -812.6, 31.4, 0, 0, 0, false ) brrier [ 4 ] = createObject ( 1422, -1882.5, -812.2, 31.4, 0, 0, 16, false ) brrier [ 5 ] = createObject ( 1422, -1879.2, -811, 31.4, 0, 0, 28, false ) brrier [ 6 ] = createObject ( 1422, -1876.6, -808.9, 31.4, 0, 0, 49.9, false ) brrier [ 7 ] = createObject ( 1422, -1875.5, -805.8, 31.4, 0, 0, 90, false ) brrier [ 8 ] = createObject ( 1422, -1875.5, -802.8, 31.4, 0, 0, 90, false ) brrier [ 9 ] = createObject ( 1422, -1873.4, -800.6, 31.4, 0, 0, 0, false ) brrier [ 10 ] = createObject ( 1422, -1870.4, -800.6, 31.4, 0, 0, 0, false ) brrier [ 11 ] = createObject ( 1422, -1885.8, -800.6, 31.4, 0, 0, 0, false ) brrier [ 12 ] = createObject ( 1422, -1888.8, -800.6, 31.4, 0, 0, 0, false ) brrier [ 13 ] = createObject ( 1422, -1888.8, -803.5, 31.4, 0, 0, 0, false ) brrier [ 14 ] = createObject ( 1422, -1885.8, -803.5, 31.4, 0, 0, 0, false ) garage [ 1 ] = createObject ( 11504, -1872.6, -763.09998, 30.9, 0, 0, 270, false ) tfcone [ 1 ] = createObject ( 1238, -1875.5, -807.5, 31.3, 0, 0, 0, false ) tfcone [ 2 ] = createObject ( 1238, -1877.7, -810.09998, 31.3, 0, 0, 0, false ) tfcone [ 3 ] = createObject ( 1238, -1877.7, -810.09998, 31.3, 0, 0, 0, false ) tfcone [ 4 ] = createObject ( 1238, -1884.2, -812.59998, 31.3, 0, 0, 0, false ) tfcone [ 5 ] = createObject ( 1238, -1875.3, -800.70001, 31.3, 0, 0, 0, false ) breakableObject = { brrier = { }, tfcone = { } } for theKey, breakableObject in ipairs ( breakableObject ) do setElementFrozen ( breakableObject, true ) setObjectBreakable ( breakableObject, false ) end end addEventHandler ( "onResourceStart", getRootElement ( ), onWorldStart ) Sorry for my bad english!
  13. not useful resource https://community.multitheftauto.com/index.php?p= ... ls&id=9343 https://community.multitheftauto.com/index.php?p= ... ls&id=9344 https://community.multitheftauto.com/index.php?p= ... ls&id=9508 DONE
  14. Now i get it, i know how to stupid i am .. sorry..
  15. I don't mean to be a dick but, it'd be nice if you could edit the descriptions to prove they're yours. I just want to remove my resource, that's all. My resource is not useful, please remove it.
  16. DELETE: - https://community.multitheftauto.com/index.php?p=resources&s=details&id=9508 - https://community.multitheftauto.com/index.php?p=resources&s=details&id=9344 - https://community.multitheftauto.com/index.php?p=resources&s=details&id=9343
  17. Help: Admin please delete my resource. Admin, can you please remove my resource. Thank you! My resource: - https://community.multitheftauto.com/index.php?p=resources&s=details&id=9508 - https://community.multitheftauto.com/index.php?p=resources&s=details&id=9344 - https://community.multitheftauto.com/index.php?p=resources&s=details&id=9343
  18. How can I set weapon slot? Not set ped weapon slot (Not setPedWeaponSlot). I mean set weapon slot for every type of element. How? - Sorry if my language is bad.
×
×
  • Create New...