![]() |
deleting weapons
how do u make it so it deletes a weapon....e.g wen u enetr the level it takes the bomb and the arrow weapon away from u....how do u do that?
|
NPC Code: Just copy over the original weapon with a new, destructing weapon. |
replace!!!
ok well since on all server the code:
NPC Code: make it: NPC Code: i think...:p |
there is a built in flag thats hasweapon( the name of the weap goes here) {blah......so why not
if (hasweapon(Bomb) && isweapon { destroy; } |
if (playerenters){
toweapons usux; destroy; } |
~AlphaFlame~
Use this... much more efficient than adding weapons to player account a bazillion times and taking them (LAG!) if (playerenters && hasweapon(weapon-to-take)){ toweapons weapon-to-take; if (isweapon)destroy; } Ta-freakin-da. |
try this :)
NPC Code: |
CLIENTSIDE
NPC Code: SERVERSIDE NPC Code: |
| All times are GMT +2. The time now is 05:00 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.