Approved VIP System

Gameplay Addons
User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 187
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

Re: VIP System

#71

Post by sPe3doN » 1 Year Ago

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

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#72

Post by Raheem » 1 Year Ago

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?
You don't know? Learn and you will know.

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 187
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#73

Post by sPe3doN » 1 Year Ago

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

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#74

Post by Raheem » 1 Year Ago

New version is out: Image

Recommended for all to update old one with this new version.
You don't know? Learn and you will know.

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 187
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#75

Post by sPe3doN » 1 Year Ago

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).

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#76

Post by Raheem » 1 Year Ago

You sure you use latest version 1.2?
You don't know? Learn and you will know.

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 187
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#77

Post by sPe3doN » 1 Year Ago

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

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#78

Post by Raheem » 1 Year Ago

Use version 1.2 and when any problem face you with any plugin please post and we will help you.
You don't know? Learn and you will know.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#79

Post by Raheem » 11 Months Ago

Updated, some optimization ideas suggested & done by jack. This not new version. And i added natives explanations in the .inc file.
You don't know? Learn and you will know.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1873
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 101 times
Age: 21
Contact:

#80

Post by Raheem » 11 Months Ago

New version released: Image
You don't know? Learn and you will know.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests