![]() |
Script Sunday: Hotkeys
Hi Everyone since Ventus (My Server) i am retiring for good this time i decided to give back to the community and help as i can so 1 or 2 Sundays a month i will donate some things from Ventus so people can use or learn from
Credit to this script goes to Emera Setup: 1) Create a weapon (name it what you want) 2) Insert the script 3) add the weapon to you and a grey bar with boxes should appear at the bottom Controls: Right Click a box and your current equipped item will be added to hotkeys Left Click a box the the item in it will be equipped PHP Code:
|
stuff you could improve (yes i know you've said it's not perfect, still worth mentioning)
1. your this.keycount could be set as a const flag, as you're not altering it, just reading it. 2. might be optional, but instead of placing -'s for blank hotkey spots, i'd have just done this check PHP Code:
3. PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 06:35 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.