![]() |
|
IGNORE - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: IGNORE (/Thread-IGNORE.html) |
IGNORE - Scripts18 - 07-18-2011 if(!self hasweapon("x_sp")) { self takeweapon("xx_sp"); } Dunno why but it wont work RE: !self hasweapon("XX"); not working - Yamato - 07-18-2011 Maybe this can help you, look the thing inside the loop. http://www.itsmods.com/forum/Thread-Knife-ONLY-mod-with-1-throwing-knife.html RE: !self hasweapon("XX"); not working - Pozzuh - 07-18-2011 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"); } RE: !self hasweapon("XX"); not working - Scripts18 - 07-18-2011 (07-18-2011, 14:58)Yamato Wrote: Maybe this can help you, look the thing inside the loop. 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")) 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 RE: IGNORE - Tomsen1410 - 07-18-2011 What do u want? Do u want a special weapon been taken, when u have not a special weapon? Or what? RE: IGNORE - Scripts18 - 07-18-2011 (07-18-2011, 16:09)Tomsen1410 Wrote: What do u want? well its ok I only need the tommhawk pickup code made another thread |