Approved VIP System

Plug-ins compatibility with Zombie Escape 1.x only!


User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#61

Post by Night Fury » 6 years ago

Raheem wrote: 6 years ago 50% discount of the extra-item can be done in the specified items you need them to have discount for the VIP. Like after the player buy the item you may check if he is VIP then back him cost/2. Show me the item you need to add discount to it and i'll do it for you.
It can be done instead in VIP's source file. It's better than keeping defining each item's cost for VIP & non-VIP players.
Use 'buy item post' forward and get the chosen item's cost & divide it on 2.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

User avatar
TheWhitesmith
Member
Member
Morocco
Posts: 33
Joined: 6 years ago
Location: Temara/Rabat
Contact:

#62

Post by TheWhitesmith » 6 years ago

Just use the forward "ze_select_item_post" as Jack said and divide the cost on what you need
[SYA] CSGO-Mod for CS 1.6 [ Cases/Keys/Rank ][/size]
IP: 149.202.251.74:27016

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#63

Post by Spir0x » 6 years ago

Guys who can make update for this plugin add a new flag after abcd "e"

flag e will give all players on Happy hours [VIP] Tag

thanks.

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#64

Post by Spir0x » 6 years ago

@Raheem not nice idea ?

Prekrasnoe Daleko
Member
Member
Russia
Posts: 32
Joined: 6 years ago
Location: Россия,Крым
Contact:

#65

Post by Prekrasnoe Daleko » 6 years ago

Raheem, dont compile: warning 225 unreachable code

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#66

Post by Raheem » 6 years ago

Post the code you try to compile.
He who fails to plan is planning to fail

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#67

Post by sPe3doN » 5 years ago

why this is not work in my server ?
Image

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#68

Post by Night Fury » 5 years ago

sPe3doN wrote: 5 years ago why this is not work in my server ?
Any problems appear on console/logs?
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#69

Post by sPe3doN » 5 years ago

Jack GamePlay wrote: 5 years ago
sPe3doN wrote: 5 years ago why this is not work in my server ?
Any problems appear on console/logs?
Nope i check i VIP & Best Deffender both dont work
Image

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#70

Post by johnnysins2000 » 5 years ago

sPe3doN wrote: 5 years ago
Jack GamePlay wrote: 5 years ago
sPe3doN wrote: 5 years ago why this is not work in my server ?
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...
Nobody Is That Busy If They Make Time :roll:

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#71

Post by sPe3doN » 5 years ago

johnnysins2000 wrote: 5 years ago
sPe3doN wrote: 5 years ago
Jack GamePlay wrote: 5 years 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
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#72

Post by Raheem » 5 years ago

Ayde12 wrote: 6 years 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: 5 years ago why this is not work in my server ?
Answer:
Jack GamePlay wrote: 5 years ago Any problems appear on console/logs?
He who fails to plan is planning to fail

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#73

Post by sPe3doN » 5 years ago

sPe3doN wrote: 5 years ago why this is not work in my server ?
Answer:
Jack GamePlay wrote: 5 years ago Any problems appear on console/logs?
[/quote]
I check and server dont have any problem
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#74

Post by Raheem » 5 years ago

New version is out: Image

Recommended for all to update old one with this new version.
He who fails to plan is planning to fail

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#75

Post by sPe3doN » 5 years 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).
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#76

Post by Raheem » 5 years ago

You sure you use latest version 1.2?
He who fails to plan is planning to fail

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#77

Post by sPe3doN » 5 years ago

Raheem wrote: 5 years 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
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#78

Post by Raheem » 5 years ago

Use version 1.2 and when any problem face you with any plugin please post and we will help you.
He who fails to plan is planning to fail

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#79

Post by Raheem » 5 years ago

Updated, some optimization ideas suggested & done by jack. This not new version. And i added natives explanations in the .inc file.
He who fails to plan is planning to fail

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#80

Post by Raheem » 5 years ago

New version released: Image
He who fails to plan is planning to fail

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 1 guest