Vip time decrease - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vip time decrease (
/showthread.php?tid=396374)
Vip time decrease -
Louris - 30.11.2012
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?
Re: Vip time decrease -
NumbSkull - 30.11.2012
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
Re: Vip time decrease -
Louris - 01.12.2012
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?
Re: Vip time decrease -
[MM]RoXoR[FS] - 01.12.2012
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...
Re: Vip time decrease -
Louris - 01.12.2012
Yes, one month membership i want to make.