Jump to content

Taser thing. Need help!


Panda

Recommended Posts

Posted

Hello Community,

Well i want to make a taser system, i mean when cops can only shoot 2 times with the taser then he have to reload, i mean max shots will be 2 then he can reload if u know what i mean. I'm sure i've to use this :

setWeaponProperty 

But i still don't know how to make it, Need help thanks.

Posted

Never worked with weapon properties, but try something like this;

Server-side

function setPropertyOnStart_Handler() 
    setWeaponProperty("colt 45", "poor", "maximum_clip_ammo", 2) 
end 
addEventHandler("onResourceStart", resourceRoot, setPropertyOnStart_Handler) 

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