Jump to content

DarkByte

Members
  • Posts

    207
  • Joined

  • Last visited

Everything posted by DarkByte

  1. Hi, i made this script to get weapons from tables but its not working. othertable = { [24] = "Deagle", [26] = "Model 1887", [31] = "M4A1" } function giveWeaponCommand(cmd, weapon, amount) weapon = tonumber(weapon) or othertable[getWeaponNameFromID(weapon)] if not weapon then return end amount = amount and tonumber(amount) or 500 server.giveMeWeapon(math.floor(weapon), amount) end addCommandHandler('give', giveWeaponCommand) addCommandHandler('wp', giveWeaponCommand)
  2. Man i know how to use this script. And to get weapon names from tables
  3. Hey can someone help me make to get weapons from a table and from lower name please. function giveWeaponCommand(cmd, weapon, amount) weapon = tonumber(weapon) or getWeaponIDFromName(weapon) if not weapon then return end amount = amount and tonumber(amount) or 500 server.giveMeWeapon(math.floor(weapon), amount) end addCommandHandler('give', giveWeaponCommand) addCommandHandler('wp', giveWeaponCommand)
  4. Cant u guys understand he need grafuroam afk system that turns u auto afk if not moving 30 secs
  5. This dumb oussez need only grafuroam scripts.
  6. Working perfect. Thanks
  7. It plays the sound when i will shoot in vehicle with nobody in it? Because i want it
  8. When i damage other player and when i damage other player using vehicle too.
  9. Meta <meta> <script src="hit_c.lua" type="client" cache="false" /> <file src="hitmarker-sound.wav" /> </meta> Lua --[[function wasted (killer, weapon, bodypart) local sound = playSound("hit.mp3") --Play wasted.mp3 from the sounds folder setSoundVolume(sound, 1) -- set the sound volume to 50% end addEventHandler("onClientPlayerDamage", localPlayer, wasted) addEventHandler("onClientVehicleDamage", localPlayer, wasted) ]] function stopMinigunDamage ( attacker, weapon, bodypart ) if weapon then --if the weapon used was the minigun local sound = playSound("hitmarker-sound.wav") setSoundVolume(sound, 50) end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) addEventHandler ( "onClientVehicleDamage", getLocalPlayer(), stopMinigunDamage )
  10. yes its in client side
  11. Please help me fix it PLEASE. I cant make it.
  12. function stopMinigunDamage ( attacker, weapon, bodypart ) if weapon then --if the weapon used was the minigun local sound = playSound("hit.mp3",player) setSoundVolume(sound, 50) end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) My script wont work
  13. Give me a script im not so advanced
  14. Script please. I wanna see and learn.
  15. How to make a damage sound like when a player is shooting from a vehicle or a weapon and makes damage, how to play a sound when this happens?
  16. With a script please
  17. DarkByte

    Hydra timer

    Can someone help me to make a missile timer. When a player shoot a missle from hydra and then he will able to shoot after 5 seconds, how is this possible?
  18. How to make weapons lower name? function giveWeaponCommand(cmd, weapon, amount) weapon = tonumber(weapon) or getWeaponIDFromName(weapon) if not weapon then return end amount = amount and tonumber(amount) or 500 server.giveMeWeapon(math.floor(weapon), amount) end addCommandHandler('give', giveWeaponCommand) addCommandHandler('wp', giveWeaponCommand)
×
×
  • Create New...