![]() |
disabling sword
how to disable the sword function with out disabling bombs and other weapons of D? (disableweapons(); doesnt work, it disables both)
|
First, use disableweapons to disable the use of everything, then re-script the firing of weapons by detecting when the "D" key is pressed and activating the current weapon using
PHP Code:
|
you could replace the sword gani ^^
|
Quote:
|
Quote:
|
thanks tig worked magicaly xD
|
if (player.freezetime == -1) player.weapon.trigger("WeaponFired", NULL);
You might want to use that so they can't fire weapons even while frozen. |
i did tat but player.freezetime <= 0
|
Well, with player.freezetime, -1 is the value returned when the player is not frozen.
|
can you help me i need to know how to disable pickup any type of object x.x
|
| All times are GMT +2. The time now is 10:16 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.