Miika Posted October 18, 2014 Share Posted October 18, 2014 Hi. We all hate minigun noobs, so I would like to take minigunuin in off. It is possible? Link to comment
Anubhav Posted October 18, 2014 Share Posted October 18, 2014 takeWeapon on onClientWeaponFire and onClientPlayerWeaponSwitch and onClientPlayerWeaponTarget Link to comment
Miika Posted October 18, 2014 Author Share Posted October 18, 2014 takeWeapon on onClientWeaponFire and onClientPlayerWeaponSwitch and onClientPlayerWeaponTarget But I want add minigun to shop ($50 000) Link to comment
TAPL Posted October 18, 2014 Share Posted October 18, 2014 Then simply don't use giveWeapon? Link to comment
Miika Posted October 18, 2014 Author Share Posted October 18, 2014 Then simply don't use giveWeapon? I want that other weapons are available free of charge Link to comment
Miika Posted October 18, 2014 Author Share Posted October 18, 2014 I know one server with this, but it is no longer online. Link to comment
Miika Posted October 19, 2014 Author Share Posted October 19, 2014 I use onClientWeaponFire but it doesn't work. I can kill people with minigun function noDeagle() local weaponID = getElementModel(source) if weaponID == 38 then cancelEvent() end end addEventHandler("onClientWeaponFire", getRootElement(), noDeagle) Link to comment
GERgta Posted October 20, 2014 Share Posted October 20, 2014 I use onClientWeaponFire but it doesn't work. I can kill people with minigun This event is only for weapons created with createWeapon. The example provided on the onClientPlayerDamage page should work for you, tho ------------------------------------------------------------------------------------------------------------------------------------------------ If you want to go abit more advanced: you can also decrease the minigun damage with setWeaponProperty, instead of completely deactivating it: setWeaponProperty(38,"pro","damage",1.5) Just paste this into a server-side script and it should work The last number is the amount of damage per bullet, a player has 100 Health. Link to comment
xeon17 Posted October 20, 2014 Share Posted October 20, 2014 You can't cancel onClientWeaponFire. Link to comment
GERgta Posted October 20, 2014 Share Posted October 20, 2014 @XeoN-: The wiki site says you can : OnClientWeaponFire Link to comment
Moderators IIYAMA Posted October 20, 2014 Moderators Share Posted October 20, 2014 That's only for custom weapons.(created weapons) For player weapons: onClientPlayerWeaponFire Which can't cancel. I know there is some confusion with: onClientPlayerWeaponFire and onClientWeaponFire Just read the wiki better guys and the brains will ! Link to comment
xeon17 Posted October 20, 2014 Share Posted October 20, 2014 That's only for custom weapons.(created weapons)For player weapons: onClientPlayerWeaponFire Which can't cancel. I know there is some confusion with: onClientPlayerWeaponFire and onClientWeaponFire Just read the wiki better guys and the brains will ! Ah yes 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