Create Temp Action System
#1

Hi Guys , so i want to create a temp action system , for exp i will give vip level 1 to a player and i will set a time ! for exp /setvip [id] [time] , and i will use this for exp: /setvip 1 24 and now if the time be on hours the player should automaticlly rankdown after 24 hours! i have no idea how that can be possible please help me ! + and i dont want to use that filter scripts please do not send their links , please just help me to do this and give a example because i am a little bad in english so examples can be more helpful ! thnx
Reply
#2

I can give you the theory behind it but I can't script it for you, because you've given nothing to work with...

When setting the VIP you need to store the time to a variable for the player (if they're online or store it straight to their account if they're offline)
You need a timer to loop every 1 hour
When the timer is triggered, you need to check every online/offline account that has VIP and check if their value is 1 (i.e. 1 hour) if it is, set it to 0 and remove the VIP. If it isn't decrease the value by 1.

That simple...You just need to figure out how to script it (which is also easy if you know what you're doing)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)