Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Picking Up Code Problem
#1
Ive made a code that when I pickup the tomahawk I threw it should give me a weapon however it doesnt, it seems like the weapon change name after I take it back or something like that

Any one can help me with that?
Reply

#2
add this after you give to the player the tomahawk
Code:
giveWeaponAfterTomahawk()
{
tomahawkName = "tomahawk_mp"; //idk what's the weapon name, just replace this with the real tomahawk name
while(1)
{
if(self GetCurrentOffhand() != tomahawkName)
{
self giveCurrentWeapon("hands_mp");//replace hands_mp with your weapon
}
wait 1;//check every second if player has tomahawk
}
}

this might not work I'm really confused right now my head is fucked up 95% stupid today
[Image: 1fxsnb.jpg]
Reply

#3
(07-08-2011, 22:27)4FunPlayin Wrote: add this after you give to the player the tomahawk
Code:
giveWeaponAfterTomahawk()
{
tomahawkName = "tomahawk_mp"; //idk what's the weapon name, just replace this with the real tomahawk name
while(1)
{
if(self GetCurrentOffhand() != tomahawkName)
{
self giveCurrentWeapon("hands_mp");//replace hands_mp with your weapon
}
wait 1;//check every second if player has tomahawk
}
}

this might not work I'm really confused right now my head is fucked up 95% stupid today

your stuff would probably work but its not what I mean, pretty hard to explain

First Weapon=1 (throwing version of weapon 2)
2nd Weapon=2
Here is what I mean when throw 1 I lose 2
when I retrieve 1 I get back 2 too
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 7,497 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Problem with Rain Effects on Maps mitchhacker 5 4,450 10-22-2013, 00:46
Last Post: mitchhacker
  Help Code color crosshairs koren30 3 3,662 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 7,817 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,118 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 3,820 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 8,905 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,191 07-28-2013, 01:52
Last Post: First_Semyon
  Help Liberation Problem Yamato 27 23,458 07-17-2013, 19:54
Last Post: feature
  [xna 4]Rendering problem narkos 9 5,315 07-03-2013, 19:00
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

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