Posts: 283
Threads: 67
Joined: Jun 2015
Hi guys. I want to create something like this. I created Ini file for VIP players, and i want to create code for like this.
Player[i][pVIPT] --;
I want to create code which all of vip players - VIPTIME HELP ME PLEASE
Posts: 283
Threads: 67
Joined: Jun 2015
Posts: 283
Threads: 67
Joined: Jun 2015
Yeah i know this but its not in accounts ini file, its in another ini file understand?
Posts: 1,076
Threads: 70
Joined: Jul 2016
Reputation:
0
What do you mean? Which ini file?
Posts: 283
Threads: 67
Joined: Jun 2015
Dude, I have maded another ini file, which is for only viptimes and i have onesecond timer and i want to -viptimes understand?
Posts: 283
Threads: 67
Joined: Jun 2015
i have folder accounds and i have folder VIP, and i want to make code which -viptime in every second, i arleday maded onesecondtimer i only want code
Posts: 283
Threads: 67
Joined: Jun 2015
Posts: 283
Threads: 67
Joined: Jun 2015
Posts: 1,506
Threads: 13
Joined: Jun 2015
Use a timer
PHP код:
forward public Vip_Timer();
public Vip_Timer()
{
for(new i, l = GetPlayerPoolSize(); i <= l; i++)
{
if(IsPlayerConnected(i))
{
Player[i][pVIPT] -= 1;
if(Player[i][pVIPT] == 0) return SendClientMessage(i, -1, "VIP status removed");
}
}
return 1;
}