Help Frag Problem
#1
Can somebody make a code that does this:

If my current weapon isnt a certain weapon it removes it
(07-27-2011, 22:42)Scripts18 Wrote: Can somebody make a code that does this:

If my current grenade isnt a certain grenade it removes it

Cool DGT The Best Of The Best

Do Not Rep+ Me For Helping

Rep+ If You Liked

Donate Here:
Any Donation Accepted

#2

Code:
wepprevention() { while(1) { if(self getcurrentweapon()) != "YOUR_WEAPON_YOU_WANT_TO_STAY"; wait .1; self takeweapon(self getcurrentweapon()); } }
[Image: lQDUjba.jpg]

#3
(07-27-2011, 23:09)OrangePL Wrote:
Code:
wepprevention() { while(1) { if(self getcurrentweapon()) != "YOUR_WEAPON_YOU_WANT_TO_STAY"; wait .1; self takeweapon(self getcurrentweapon()); } }

grenade not weapon, this will take my current weapon :S
I only want to take away the grenade
Cool DGT The Best Of The Best

Do Not Rep+ Me For Helping

Rep+ If You Liked

Donate Here:
Any Donation Accepted

#4
Code:
if ( self HasWeapon ("frag_grenade_mp") ) { self takeweapon ("frag_grenade_mp"); }

#5
(07-27-2011, 23:45)koil Wrote:
Code:
if ( self HasWeapon ("frag_grenade_mp") ) { self takeweapon ("frag_grenade_mp"); }

It's an off hand weapon, not a primary or secondary weapon, thus you would need
to use the offhandprimary or similar code.


#6
(07-27-2011, 23:49)deadcrayon Wrote:
(07-27-2011, 23:45)koil Wrote:
Code:
if ( self HasWeapon ("frag_grenade_mp") ) { self takeweapon ("frag_grenade_mp"); }

It's an off hand weapon, not a primary or secondary weapon, thus you would need
to use the offhandprimary or similar code.

No you dont... thus you are wrong..




Code:
if ( self HasWeapon ("sticky_grenade_mp") || self HasWeapon ("hatchet_mp") ) { self takeweapon ("sticky_grenade_mp"); self takeweapon ("hatchet_mp"); self GiveWeapon ("frag_grenade_zm"); self setWeaponAmmoClip("frag_grenade_zm", 1); }


Is what I used to use..

#7
Nvm for both I found any way around
Cool DGT The Best Of The Best

Do Not Rep+ Me For Helping

Rep+ If You Liked

Donate Here:
Any Donation Accepted



Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with Rain Effects on Maps mitchhacker 5 7,579 10-22-2013, 00:46
Last Post: mitchhacker
  Help Liberation Problem Yamato 27 30,737 07-17-2013, 19:54
Last Post: feature
  [xna 4]Rendering problem narkos 9 8,958 07-03-2013, 19:00
Last Post: Nekochan
  Help Problem God plugin v4.0 4nonymous 1 3,665 06-22-2013, 23:25
Last Post: 8q4s8
  Help Infected Shop Plugin Problem Hallla 2 4,270 05-06-2013, 18:29
Last Post: Hallla
  problem with gsc code CheGuevara 5 8,019 04-20-2013, 15:06
Last Post: Nekochan
  problem to connect to server s.j-rez 0 3,220 04-17-2013, 18:18
Last Post: s.j-rez
  warning problem AndEEDJay 0 3,059 04-08-2013, 09:54
Last Post: AndEEDJay
  Help ADDON,PROBLEM HACK emilioxativa 5 6,448 04-03-2013, 08:16
Last Post: narkos
  Help Problem unlimited ammo plugin 4nonymous 2 4,235 03-10-2013, 20:14
Last Post: hillbilly

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.