Skip to content

Commit

Permalink
Updated to 1.5 version, fixed weapon sound bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kruz1337 committed Oct 3, 2022
1 parent 486e82e commit 456d832
Show file tree
Hide file tree
Showing 4 changed files with 989 additions and 756 deletions.
5 changes: 4 additions & 1 deletion scripts/nst_weapons.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <regex>

#define PLUGIN "NST Weapons"
#define VERSION "1.4"
#define VERSION "1.5"
#define AUTHOR "github.com/kruz1337"

new auto_buy_enabled[33]
Expand Down Expand Up @@ -52,7 +52,10 @@ public nstmenu(client) {
formatex(menu, charsmax(menu), "%L", LANG_PLAYER, "MENU_ITEM5")
menu_additem(menuxx, menu, "5")

new enabled_disabled[64]
formatex(menu, charsmax(menu), "%L", LANG_PLAYER, "MENU_ITEM6")
formatex(enabled_disabled, charsmax(enabled_disabled), "\r[%L]", LANG_PLAYER, auto_buy_enabled[client] ? "ITEM_ENABLED" : "ITEM_DISABLED")
replace(menu, 64, "$", enabled_disabled)
menu_additem(menuxx, menu, "6")

formatex(text[len], charsmax(text) - len, "%L", LANG_PLAYER, "MENU_NEXT");
Expand Down
Loading

0 comments on commit 456d832

Please sign in to comment.