Posts: 916
Threads: 65
Joined: Jun 2011
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?
Posts: 916
Threads: 65
Joined: Jun 2011
07-08-2011, 23:37
(This post was last modified: 07-08-2011, 23:39 by Scripts18.)
(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