SA-MP Forums Archive
INI HELP - 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: INI HELP (/showthread.php?tid=619014)



INI HELP - Pearson - 12.10.2016

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


Re: INI HELP - Pearson - 12.10.2016

BUMP


Re: INI HELP - Eoussama - 12.10.2016

Ok, let me make you a refilling command for VIPs

PHP код:
CMD:refill(playeridparams[]){
       if(
player[playerid][pVIPT] > 0){
             
SetPlayerHealth(playerid100);
             return 
1;
       }
       return 
1;

this is just a simple example, just follow the same method,
if you want some more advanced commands, download my filterscript, and learn from its content some tricks, check it, it's on my signature


Re: INI HELP - Pearson - 12.10.2016

Yeah i know this but its not in accounts ini file, its in another ini file understand?


Re: INI HELP - Eoussama - 12.10.2016

What do you mean? Which ini file?


Re: INI HELP - Pearson - 12.10.2016

Dude, I have maded another ini file, which is for only viptimes and i have onesecond timer and i want to -viptimes understand?


Re: INI HELP - Pearson - 12.10.2016

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


Re: INI HELP - Pearson - 12.10.2016

BUMP


Re: INI HELP - Pearson - 12.10.2016

BUMP


Re: INI HELP - Logic_ - 13.10.2016

Use a timer

PHP код:
forward public Vip_Timer();
public 
Vip_Timer()
{
    for(new 
iGetPlayerPoolSize(); <= li++)
    {
        if(
IsPlayerConnected(i))
        {
            
Player[i][pVIPT] -= 1;
            if(
Player[i][pVIPT] == 0) return SendClientMessage(i, -1"VIP status removed");
        }
    }
    return 
1;