- 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;
}