![]() |
Removing a weapon
How do you remove a weapon? is it like:
if (hasweapon(Weapon)) { destory; } |
ya that works i guess
|
if you want for a certain weapon like bomb
if (playerenters) {toweapons bomb; timeout=.5;} if (hasweapon&&timeout) {destroy;} this way you can replace the npc in the data base thing so if it's ever added with RC it will destroy itself. |
easier with the NPC server..it's like
removeweapon bomb; |
If you don't have a NPC Server just stick in a destroy; at the very top of the script and it'll delete itself when the player who has it reconnects, if you want to keep it in the weaponlist though (For players who like to collect weapons) it's better to put the destroy in the weaponfired part.
|
I want it for like a player leaves a level it goes bye bye remember the tred Kewl Idea about HouseBuilder? I GOT THE SCRITP! but i need to weapon to be deleted when they leave certian levels
|
if (!strequals(#L,levelnamehere.graal){destroy;}
|
or if you want the weapon for a set of levels, if (!strcontains(#L,test)){destroy;} dunno if itll work but it should delete the weapon when the player enters a level that doesnt have test in the name.
|
| All times are GMT +2. The time now is 04:48 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.