Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Help .

$
0
0
I WANT DO SET VIP TIME IS 30DAYS , BUT ME DON'T KNOW TIME.
i use .ini
Code:
Code:

CMD:setvip(playerid,params[])
{
   
    if(pInfo[playerid][pAdminLevel] >= 5)
    {
    new targetid,level,string[256],months;
    if(sscanf(params, "ud", targetid, level,months))
    {
        SendClientMessage(playerid,-1,"USAGE: /setvip [player] [level] [months]");
        SendClientMessage(playerid,-1,"Available Levels:  |1| Bronze |2| Silver |3| Gold ");
        return 1;
    }
    format(string, sizeof(string), "%s %s da cho vip %s.",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid));
    SendClientMessageToAll(-1,string);
    }
    else {
    SendClientMessage(playerid,COLOR_RED,"{FF0000}Ban khong phai admin.!");
    }
    return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles