Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Reply

#2

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

#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
Reply

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

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

Reply

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

#7
Nvm for both I found any way around
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 7,502 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Problem with Rain Effects on Maps mitchhacker 5 4,457 10-22-2013, 00:46
Last Post: mitchhacker
  Help Liberation Problem Yamato 27 23,478 07-17-2013, 19:54
Last Post: feature
  [xna 4]Rendering problem narkos 9 5,319 07-03-2013, 19:00
Last Post: Nekochan
  Help Problem God plugin v4.0 4nonymous 1 2,545 06-22-2013, 23:25
Last Post: 8q4s8
  Help Infected Shop Plugin Problem Hallla 2 2,915 05-06-2013, 18:29
Last Post: Hallla
  problem with gsc code CheGuevara 5 5,107 04-20-2013, 15:06
Last Post: Nekochan
  problem to connect to server s.j-rez 0 2,097 04-17-2013, 18:18
Last Post: s.j-rez
  warning problem AndEEDJay 0 1,960 04-08-2013, 09:54
Last Post: AndEEDJay
  Help ADDON,PROBLEM HACK emilioxativa 5 4,522 04-03-2013, 08:16
Last Post: narkos

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.