R3ter Posted June 14, 2016 Share Posted June 14, 2016 where can i find the script that creates weapon on player wasted in death match ?? Link to comment
Bean666 Posted June 14, 2016 Share Posted June 14, 2016 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
R3ter Posted June 14, 2016 Author Share Posted June 14, 2016 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
KariiiM Posted June 14, 2016 Share Posted June 14, 2016 Do you mean the default MTA Deathmatch script ? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now