• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to create Vip_Time in Modern ACC ~ PLX SEE PROGRAMMERS

mankdam

New Member
Joined
Oct 1, 2010
Messages
38
Reaction score
0
Well, recently bought a code SHOP for ModernAcc, but he did not have VIP as a gift (offer).

I wanted to help and implements it, walked writing some codes but are not yet adding VIP, would help in programming.

Or another code ready =)

grateful

I added in Shop_m.php :
PHP:
                public function AddVip2($accountID) {
                        $this->load->database();
                        $this->db->query("UPDATE accounts SET vip_time = (vip_time + 30 * 86400) WHERE name = ".$accountID."");
                }

In Shop.php added:
PHP:
else if($data['item'][0]['type'] == 4) {
                               $this->shop_m->AddVip2($_SESSION['account_id']);
                               success("Vip Added.");
                               $ide->redirect(WEBSITE."/index.php/shop/main", 2);

                        }

In add_offer.php
PHP:
                                echo "<option value='4'>Vip Days Test</option>";

srry bad english xD


Testing the site appears when I click Buy >> Success:Vip Added.
but no vip_time is added to the player's account.

Help plx
 
Isn't it better if you actually make an item that gives Vip time? It's much better because then players can trade it without being scammed or something. Just make a rune that gives premium time, and put it in your shop.
 
@OP:

Are you sure the var. $accountID is the account name? If not, try this:
PHP:
public function AddVip2($accountID) { 
                        $this->load->database(); 
                        $this->db->query("UPDATE `accounts` SET vip_time = (vip_time + 30 * 86400) WHERE `id` = ".$accountID.""); 
                }

BTW, Paxton's suggestion is way better than this. (more people would buy premium time IMO)
 
Isn't it better if you actually make an item that gives Vip time? It's much better because then players can trade it without being scammed or something. Just make a rune that gives premium time, and put it in your shop.

Very interesting idea, had not thought of that. It would not have developed this code, I may use it. I still can not give rep + + for the idea because he gave recently. But thanks for the reply




@OP:

Are you sure the var. $accountID is the account name? If not, try this:
PHP:
public function AddVip2($accountID) { 
                        $this->load->database(); 
                        $this->db->query("UPDATE `accounts` SET vip_time = (vip_time + 30 * 86400) WHERE `id` = ".$accountID.""); 
                }

BTW, Paxton's suggestion is way better than this. (more people would buy premium time IMO)

It worked! It worked perfectly, now I did some more adjustments and is 100%

Thanks: D
Rep++
 
Back
Top