Jump to content

create weapon


R3ter

Recommended Posts

try, if you mean by give him weapon after death here it is:

local weapon = {30, 31, 34, 25, 29, 27, 24} 
local ammo = {200,250,300,350,400,450,500} 
  
function weapons() 
weapon, totalAmmo =  weapon[ math.random( #weapon ) ] , ammo[math.random(#ammo)] 
        weaponReceived = giveWeapon( source, weapon, totalAmmo, true); 
if weaponReceived then 
outputChatBox("You received a random weapon with "..totalAmmo.." ammo") 
end 
end 
addEventHandler("onPlayerSpawn", getRootElement(), weapons) 

Link to comment
try, if you mean by give him weapon after death here it is:
local weapon = {30, 31, 34, 25, 29, 27, 24} 
local ammo = {200,250,300,350,400,450,500} 
  
function weapons() 
weapon, totalAmmo =  weapon[ math.random( #weapon ) ] , ammo[math.random(#ammo)] 
        weaponReceived = giveWeapon( source, weapon, totalAmmo, true); 
if weaponReceived then 
outputChatBox("You received a random weapon with "..totalAmmo.." ammo") 
end 
end 
addEventHandler("onPlayerSpawn", getRootElement(), weapons) 

No i mean where can i find the scripte that already in death match mod so i can stop/delete it

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...