Page 8 of 10

Re: VIP System

Posted: 06 Jul 2018, 09:24
by sPe3doN
johnnysins2000 wrote:
1 Year Ago
sPe3doN wrote:
1 Year Ago
Jack GamePlay wrote:
1 Year Ago


Any problems appear on console/logs?
Nope i check i VIP & Best Deffender both dont work
Works for everyone why u only ?

there must be some plugin in your sv which is blocking it from loading...
Idk but i add only kgbbots plugin

Re: VIP System

Posted: 06 Jul 2018, 11:00
by Raheem
Ayde12 wrote:
1 Year Ago
Raheem, dont compile: warning 225 unreachable code
edit: public native_ze_get_vip_flags(id) { } to be:
    1. public native_ze_get_vip_flags(id)
    2. {
    3.     if (file_exists(g_szLocalFile))
    4.     {
    5.         new iMaxLines = file_size(g_szLocalFile, 1)
    6.         new szLineToRead[129]
    7.         new szSteamID[35], szName[32]
    8.         new szParse[3][65]
    9.         new iTextLen
    10.        
    11.         get_user_authid(id, szSteamID, charsmax(szSteamID))
    12.         get_user_name(id, szName, charsmax(szName))
    13.        
    14.         for (new iLineToRead = 0; iLineToRead < iMaxLines; iLineToRead++)
    15.         {
    16.             read_file(g_szLocalFile, iLineToRead, szLineToRead, charsmax(szLineToRead), iTextLen)
    17.             parse(szLineToRead, szParse[0], 64, szParse[1], 64, szParse[2], 64)
    18.            
    19.             remove_quotes(szParse[0])
    20.             remove_quotes(szParse[1])
    21.             remove_quotes(szParse[2])
    22.            
    23.             if (!szParse[0][0] || szParse[0][0] == ';' || (szParse[0][0] == '/' && szParse[0][1] == '/'))
    24.                 continue
    25.            
    26.             if ((equali(szSteamID, szParse[0]) && szParse[0][0] == 'S') || equali(szName, szParse[0]))
    27.             {
    28.                 g_bIsUserVIP[id] = true
    29.                 copy(g_szPassword, charsmax(g_szPassword), szParse[1])
    30.  
    31.                 return read_flags(szParse[2])
    32.             }
    33.         }
    34.     }
    35.     else
    36.     {
    37.         write_file(g_szLocalFile, "; Zombie Escape VIP^n^n;Flags:^n")
    38.         write_file(g_szLocalFile, "; a -- Connect Message and VIP List")
    39.         write_file(g_szLocalFile, "; b -- Multi-Jump")
    40.         write_file(g_szLocalFile, "; c -- Parachute")
    41.         write_file(g_szLocalFile, "; d -- Scoreboard Attrib.^n^n;Examples:^n")
    42.         write_file(g_szLocalFile, "; ^"Steam/Nick^" ^"Password^" ^"Flags^"")
    43.     }
    44.    
    45.     g_bIsUserVIP[id] = false
    46.    
    47.     if (g_bSetVIP[id] == true)
    48.     {
    49.         return g_iFlags[id]
    50.     }
    51.     else
    52.     {
    53.         return VIP_Z
    54.     }
    55. }
Useless return VIP_Z has been removed.
sPe3doN wrote:
1 Year Ago
why this is not work in my server ?
Answer:
Jack GamePlay wrote:
1 Year Ago
Any problems appear on console/logs?

Re: VIP System

Posted: 06 Jul 2018, 11:21
by sPe3doN
sPe3doN wrote:
1 Year Ago
why this is not work in my server ?
Answer:
Jack GamePlay wrote:
1 Year Ago
Any problems appear on console/logs?
[/quote]
I check and server dont have any problem

Re: VIP System

Posted: 12 Jul 2018, 19:39
by Raheem
New version is out: Image

Recommended for all to update old one with this new version.

Re: VIP System

Posted: 20 Jul 2018, 19:15
by sPe3doN
when i add VIP I get this eroor

Code: Select all

L 07/20/2018 - 11:34:10: Start of error session.
L 07/20/2018 - 11:34:10: Info (map "ze_jurassicpark4") (file "addons/amxmodx/logs/error_20180720.log")
L 07/20/2018 - 11:34:10: Could not find function "Say_Text"
L 07/20/2018 - 11:34:10: [AMXX] Run time error 19 (plugin "ze_vip_system.amxx") - debug not enabled!
L 07/20/2018 - 11:34:10: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

Re: VIP System

Posted: 20 Jul 2018, 20:13
by Raheem
You sure you use latest version 1.2?

Re: VIP System

Posted: 20 Jul 2018, 20:39
by sPe3doN
Raheem wrote:
1 Year Ago
You sure you use latest version 1.2?
no this first version but i try 1.1 & 1.2 they work but with Problem only vip prefix work

Re: VIP System

Posted: 20 Jul 2018, 20:41
by Raheem
Use version 1.2 and when any problem face you with any plugin please post and we will help you.

Re: VIP System

Posted: 29 Jul 2018, 08:55
by Raheem
Updated, some optimization ideas suggested & done by jack. This not new version. And i added natives explanations in the .inc file.

Re: VIP System

Posted: 23 Aug 2018, 22:27
by Raheem
New version released: Image