ItsMods

Full Version: IGNORE
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
if(!self hasweapon("x_sp"))
{
self takeweapon("xx_sp");
}

Dunno why but it wont work
Maybe this can help you, look the thing inside the loop.

http://www.itsmods.com/forum/Thread-Knif...knife.html
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");
}
(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
What do u want?
Do u want a special weapon been taken, when u have not a special weapon?
Or what?
(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