viewing paste Unknown #25548 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
-       script  Donator VIP#T-1 -1,{
        end;
 
OnClock0001:
        query_sql "UPDATE `login` SET `vip_time`=`vip_time`-1 WHERE `group_id`='2'";
        end;
 
OnClock0002:
        query_sql "UPDATE `login` SET `group_id`='0' WHERE `vip_time`<='0' AND `group_id`='2'";
        end;
}
 
-       script  Donator VIP#L-1 -1,{
OnPCLoginEvent:
        if (getgroupid() != 2) end;
        query_sql "SELECT `vip_time` FROM `login` WHERE `account_id` = '"+ getcharid(3) +"'", @days;
        if (@days[0] <= 5){
        dispbottom "[ Donator VIP Control ]";
        dispbottom "You have only "+@days+" Donator VIP days remaining.";
        dispbottom "Recharge your Donator VIP and support the server !!!";
        end;
        }
        dispbottom "[ Donator VIP Control ]";
        dispbottom "You still have "+@days+" Donator VIP days.";
        end;
}
Viewed 500 times, submitted by unknown.