VIP on time
#3

pawn Код:
CMD:setvip(playerid,params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new ID;
        new LVL;
        new Days = 30;
        if(sscanf(params,"iii", ID, LVL, Days)) return SendClientMessage(playerid,-1,"{FF0000}USAGE: {15FF00}/GiveVip [ID] [Vip Level] [30 Days]");
        PlayerInfo[playerid][Vip] = LVL;
        SetTimer("NoVip", 2628000000, false);
    }
    else
    {
        SendClientMessage(playerid, -1, "{FF0000}ERROR: {15FF00}You are not authorized to use this command, or the Days are Invalid !");
    }
    return 1;
}

forward NoVip();

public NoVip()
{
    new playerid;
    PlayerInfo[playerid][Vip] = 0;
    SendClientMessage(playerid, -1, "{FF0000}[INFO]: {15FF00}Your temporally Vip System has been finished !");
}
- I made this System in 5 minutes. Don't copy and paste, please adjust it with your Enums.

- I converted 1 month in miliseconds, and after 1 month, he won't have VIP !

- Anyway, my enums :

pawn Код:
enum pInfo
{
    Vip,
}

new PlayerInfo[MAX_PLAYERS][pInfo];

// EDIT: Look now at the code. I just made a little mistake wich will cause to you errors. I solved .
Reply


Messages In This Thread
VIP on time - by RonnyCZ - 02.11.2014, 16:25
Re: VIP on time - by Dziugsas - 02.11.2014, 16:35
Re: VIP on time - by HY - 02.11.2014, 16:44
Re: VIP on time - by RonnyCZ - 02.11.2014, 17:02
Re: VIP on time - by Abagail - 02.11.2014, 17:05
Re: VIP on time - by Dziugsas - 02.11.2014, 17:06
Re: VIP on time - by Abagail - 02.11.2014, 17:08
Re: VIP on time - by dominik523 - 02.11.2014, 17:27
Re: VIP on time - by Runn3R - 02.11.2014, 18:35
Re: VIP on time - by [HiC]TheKiller - 02.11.2014, 19:01

Forum Jump:


Users browsing this thread: 3 Guest(s)