![]() |
Weapon killer
A long time ago I made a script that would delete a weapon from your inventory when you entered a level, but now i can't remember how it's done :(
Would someone be so kind as to post the script here for me or send it to me in a pm. thanks :) |
do alot like this
if (playerenters&&hasweapon(LAT Boots)) {toweapons LAT Boots; if (playerenters&&hasweapon(Heart Stone)) {toweapons Heart Stone; if (weaponfired) {destroy;} } } like that, you get the point |
Quote:
if (playerenters) { timeout=0.5; } if (playerenters&&hasweapon(LAT Boots)) {toweapons LAT Boots; if (playerenters&&hasweapon(Heart Stone)) {toweapons Heart Stone; if (isweapon||timeout) {destroy;} } } |
NPC Code:if (playerenters&&isweapon&&strequals(#L,levelname)) destroy; |
Here's how it should be done...
NPC Code: Very easy to make... Even easier with the NPC server. NPC Code: |
yea but my way is easier if its alot of weapons you want to destroy
|
Hmm... try this
NPC Code: |
if(playerenters) toweapons Tree Seeds;
if(isweapon) destroy; Warning: Though this seems to happen instantaneously, some NPCs will detect hasweapon(Tree Seeds). Very bad if you're running an autojailer on it! =_=; |
lol?
y just do this lil code lol:
if (weaponfired && !strequals(#L, UR LEVEL)){ //when the weapon is fired in another level// destroy; } |
| All times are GMT +2. The time now is 02:08 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.