Vip time decrease
#1

I try'ed to make that one minute -1 time of VIP, but -1 min from vip time decrease only when i disconnect, whats wrong here?

SetTimerEx("pViplaikasAdd",60000,true,"i");

forward pViplaikasAdd(playerid);
public pViplaikasAdd(playerid);


public OnPlayerConnect(playerid)
{
{
if(PlayerInfo[playerid][pVip])
{
PlayerInfo[playerid][pViplaikas] --;
}
}


This is all my code, so whats wrong?
Reply
#2

where is the code under the public for the timer return? the only time vip time goes down is when a player logs on with this code
Reply
#3

Quote:
Originally Posted by NumbSkull
Посмотреть сообщение
where is the code under the public for the timer return? the only time vip time goes down is when a player logs on with this code
How to make to vip time goes down not only when connect?
Reply
#4

You mean like one month membership or so?

For that you will need to save the time when he became VIP.
When he log in,check if 1 month have passed or not...
Reply
#5

Yes, one month membership i want to make.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)