![]() |
Remove
2 questions (again :D)
1.i just cant figure out how to remmove a weapon from ur Q window (weaponlist) 2. how do i remove the item from a inventory ? example of command : if (playertouchsme) { toinventory itemname; } how do i delete it from the inventory ? |
1: Make a weapon like this
If (playerenters) { toweapons Bomb; destroy; } Voila 2: Unset the flag if (playerenters) unset itemname; |
okay thx for number 2 but 1 doesnt make sense = /
it only will destroy the NPC on the board not in inventory = / |
unset WeaponName?
i didnt know about that, lol :) |
Quote:
removeweapon WeaponName; or you could make a script like if (playertouchsme) toweapons WeaponName; if (weaponfired) destroy; |
With an NPC Server you can just delete it from the level and then delete it from the weapons database.
On a playerworld without an NPC Server, just put this in the weapon you want to delete if (playertouchsme) {toweapons weaponname;} if (weaponfired) {sleep.1;destroy;} if (isweapon){sleep.1;destroy;} If the original weapon isn't on the server anymore, just make a new npc with an image, put that script in the npc, and make sure the weapon name is the same. |
Re: Remove
Quote:
If your not using NPC Server you can add a bit at the bottom of the script like NPC Code:if (flagnamehere) { 2) unset flag (flag will be whatever you have toinventoried) |
All times are GMT +2. The time now is 11:07 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.