OnPCLoginEvent:
if( #PremiumUser > gettimetick(2) ) {
sc_start SC_ITEMBOOST,( (#PremiumUser - gettimetick(2)) * 1000 ),50;
sc_start SC_EXPBOOST,( (#PremiumUser - gettimetick(2)) * 1000 ),50;
dispbottom "Premium will expell in: " + callfunc("Time2Str",#PremiumUser) + "";
}
if( #PremiumUser <= gettimetick(2) ) {
dispbottom "Premium time expelled.";
query_sql "UPDATE `login` SET group_id = '0' WHERE account_id = "+getcharid(3)+"";
}
end;
}
But, I want make something like:
if( #PremiumUser <= gettimetick(2) ) " and if player isn't group id 2 and higher, (if he is, that function works as needed, set group_id to 0)" { // this isn't a code, but some kind of code I want to see here,,,
dispbottom "Premium time expelled.";
query_sql "UPDATE `login` SET group_id = '0' WHERE account_id = "+getcharid(3)+"";
And make #premiumUser global reg value disappear as well. // not the code as well
}
end;
}
So, say: Account that has modaration options like mute and jail won't loose their group_id level when #premium ticktime is over. But, independend from group_id delete any sign of premium account if time has run out. Normal premiums like group id=1 will loose their group id, so it will be set to 0 back and also #premiumuser will be removed at all from global reg value.
Basicly I'm asking to help me to end this moment here, because when I try to make it myself, nothing good doesn't happen Thanks a lot for help.
Question
Golem1988
So, here are my premium onPCloginevent:
So, say: Account that has modaration options like mute and jail won't loose their group_id level when #premium ticktime is over. But, independend from group_id delete any sign of premium account if time has run out. Normal premiums like group id=1 will loose their group id, so it will be set to 0 back and also #premiumuser will be removed at all from global reg value.
Basicly I'm asking to help me to end this moment here, because when I try to make it myself, nothing good doesn't happen
Thanks a lot for help.
Edited by Golem19880 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.