Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IGNORE
#1
if(!self hasweapon("x_sp"))
{
self takeweapon("xx_sp");
}

Dunno why but it wont work
Reply

#2
Maybe this can help you, look the thing inside the loop.

http://www.itsmods.com/forum/Thread-Knif...knife.html
Reply

#3
if(!self hasweapon("x_sp"))
{
self takeweapon("xx_sp");
}

What the code does is take a weapon if you DON'T have it..
it should be this: ('!' removed)
if(self hasweapon("x_sp"))
{
self takeweapon("xx_sp");
}
[Image: MaEIQ.png]
Reply

#4
(07-18-2011, 14:58)Yamato Wrote: Maybe this can help you, look the thing inside the loop.

http://www.itsmods.com/forum/Thread-Knif...knife.html

Your code is close to what I mean but its not

hard to explain it :S
(07-18-2011, 15:08)Pozzuh Wrote: if(!self hasweapon("x_sp"))
{
self takeweapon("xx_sp");
}

What the code does is take a weapon if you DON'T have it..
it should be this: ('!' removed)
if(self hasweapon("x_sp"))
{
self takeweapon("xx_sp");
}

I know thats what I want but it doesnt seems to work, I want it that if he doesnt have a weapon it takes another

I dont know why but when I have that weapon, or not self hasweapon on that weapon doesnt work :S
Reply

#5
What do u want?
Do u want a special weapon been taken, when u have not a special weapon?
Or what?
Reply

#6
(07-18-2011, 16:09)Tomsen1410 Wrote: What do u want?
Do u want a special weapon been taken, when u have not a special weapon?
Or what?

well its ok I only need the tommhawk pickup code made another thread

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tutorial] Ignore Assets SparkyMcSparks 4 3,573 07-09-2011, 06:22
Last Post: rotceh_dnih

Forum Jump:


Users browsing this thread:
1 Guest(s)

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