Register for your free account! | Forgot your password?

You last visited: Today at 13:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[UpDate] For my Premium System

Discussion on [UpDate] For my Premium System within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
DexterSK's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 160
Received Thanks: 161
[UpDate] For my Premium System

Hi epvp
Today i want release mini update for my Premium system for Hen! cms.


What it's is?

Button ,,Buy" for buy premium from ItemShop show when ,, your coins >= price"

Screen:


How to?

Step 1: Open you'r bonus.php in pages folder.

Step 2: Find:

PHP Code:
<tr>
  <
td colspan="2" class="isBuy"><a href="index.php?s=bonus&id=1">Buy</a></td>
</
tr
Step 3: Replace With:

PHP Code:
<tr>
        <?php
        
if($_SESSION['user_coins'] >= $serverSettings['1'])
        {
            echo
'<td colspan="2" class="isBuy"><a href="index.php?s=bonus&id=1">Buy</a></td>';
        }
        else
        {
            echo
'<td colspan="2" class="isBuy"><a href="index.php?s=spenden">Buy Coins</a></td>';
        }
        
?>
        </tr>
Step 4: Find:

PHP Code:
<tr>
  <
td colspan="2" class="isBuy"><a href="index.php?s=bonus&id=2">Buy</a></td>
</
tr
Step: 5: Replace with:

PHP Code:
 <tr>
        <?php
        
if($_SESSION['user_coins'] >= $serverSettings['2'])
        {
            echo
'<td colspan="2" class="isBuy"><a href="index.php?s=bonus&id=2">Buy</a></td>';
        }
        else
        {
            echo
'<td colspan="2" class="isBuy"><a href="index.php?s=spenden">Buy Coins</a></td>';
        }
        
?>
        </tr>
etc,etc,etc..

that's all

Sorry for my bad english.
DexterSK is offline  
Thanks
3 Users
Old 03/14/2013, 09:32   #2
 
plechito's Avatar
 
elite*gold: 105
Join Date: Aug 2010
Posts: 1,031
Received Thanks: 2,560
It fits, thanks
plechito is offline  
Reply


Similar Threads Similar Threads
[Add-On] Premium System -> Premium Panel
04/28/2013 - Metin2 PServer Guides & Strategies - 18 Replies
Hey, ich habe mich mal dran gesetzt und für euch eine Art Add-On für das Premium System von sLay gequestet. Es ist ein Premium Panel, wo der Premium Spieler viele Möglichkeiten hat, was zu machen! quest prempanel begin state start begin when 9010.chat."Userpanel" with pc.getqf("premium_user")==1 and not npc.is_pc() begin say("Willkommen zurück, ".. pc.get_name .."") say("") local s = select("Ankündigung schreiben", "Spezial-Teleporter", "Verwandeln", "NPC öffnen", "Team...
Update System
02/04/2013 - CO2 Private Server - 1 Replies
well in the source Am using (Impulse based Source ) i see that the Flags ID arent too long this is an example :- MoveSpeedRecovered = 56, GodlyShield = 57, ShockDaze = 58, Freeze = 59, ChaosCycle = 60, IronShirt = 64, so my question how its converted from ulong number into those simple ones ?
Question about update system
04/11/2012 - DarkOrbit - 1 Replies
Hey, I found my really old not-finished project 'Darkorbit 1vs1 simulator' and I decided to build it again (to recap vb skills:) ) So I starded yesterday and first problem appeared :D I dunno how to calculate correctly dmg and shield with updates. I dont have anymore any DO account so I cannot test neither. So do you know how to calculate correctly? Or are those number 100% correctly in English forum? Damage Shield I think I will add "Lvl: 1/8/16" button or something like that to my...
(DO) New Update! Friend System
12/24/2011 - DarkOrbit - 3 Replies
Hello, Here is the new update As everone now knows. We can add players that we know as a friend ... He or she send you a friend request or you send her or him an friend request. but what's the point of sending them friend request. when you don't even know when he or she is online at the time.This idea of mine takes the Online Friends to an new level. Once you added someone as your friend. That lucky person name will be Gold { If not an mamber of your clan.} That lucky person name...
Blog system update
11/28/2009 - Main - 29 Replies
We've just updated the blog system, please report all bugs in this topic. Some of the new features in Blog 2 include: Blog Customization - users may customize their blogs in the same manner that they can customize their user profiles. Group Blogs - users may allow other users to post to their blog. Sidebar Blocks - users may create custom blocks to display in their sidebar. These blocks can be rearranged by drag and drop. Custom Pages - users may create custom pages to be displayed in...



All times are GMT +1. The time now is 13:17.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.