Jump to content

Zombies Weapons


BorderLine

Recommended Posts

CLIENT.

addEvent("Zomb_STFU",true) 
addEventHandler("Zomb_STFU",root, 
function ( zomb ) 
   triggerServerEvent ( "onZombieSpawned", zomb ) 
end) 

SERVER:

local weaponsTable = {2, 3, 4, 5, 6, 7, 8, 9, 15 } 
  
  
addEvent("onZombieSpawned",true) 
addEventHandler("onZombieSpawned",root, 
function ( ) 
  giveWeapon ( source, math.random(#weaponsTable), 1, true ) 
end) 

Link to comment
CLIENT.
addEvent("Zomb_STFU",true) 
addEventHandler("Zomb_STFU",root, 
function ( zomb ) 
   triggerServerEvent ( "onZombieSpawned", zomb ) 
end) 

SERVER:

local weaponsTable = {2, 3, 4, 5, 6, 7, 8, 9, 15 } 
  
  
addEvent("onZombieSpawned",true) 
addEventHandler("onZombieSpawned",root, 
function ( ) 
  giveWeapon ( source, math.random(#weaponsTable), 1, true ) 
end) 

nice :D better than random.. now i can choise the weapons thx solid :D

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...