Thread: Armoury Manager
View Single Post
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 02-01-2016 , 15:08   Re: Armoury Manager
Reply With Quote #13

Hi Bugsy, good code. Looks like you spend a quite some time on it. But if you still interest, I have some ideas:
  1. To have unlimited entities using a dynamic array instead of static. It is a script peek up, to help anyone who is reading this and beginning to script, see the changes from static to dynamic:
    Spoiler

  2. To use the newer 'client_disconnected' when compiling at the AMXX 183. Snippet:
    Code:
    #if AMXX_VERSION_NUM < 183 public client_disconnect( id ) #else public client_disconnected( id ) #endif {
  3. To put the small menu functions 'ShowTypeMenu' and 'ShowCountMenu' a little up on the code after 'SaveAndResetVars', because they are now 9 functions away from its caller separed by big functions as 'DeleteConfig', 'DisableManager', 'EnableManager' and 'RoundStart'.

  4. Code:
    //Shows a MOTD status of any entities that have been created or changed. The MOTD character limit is too low to allow displaying //every entity on a map that has > ~12 entities. public DisplayInfo( id , level , cid ) {
    If I understand correctly, you could write various 'motd_page1.html', 'motd_page2.hmtl', etc, on disk and create links between them. Ex: [Page fotter] Next page - Previous page - First Page - Last Page. So, you could show all weapons working around this limitation using several pages, instead of just one big and scrollable one.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 02-01-2016 at 16:58. Reason: spelling fix
addons_zz is offline