Need Help.
#1

I WANT DO SET VIP TIME IS 30DAYS , BUT ME DON'T KNOW TIME.
Код:
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;
}
Reply
#2

How do you save the player data?
Reply
#3

Are you using dini or mysql?
Reply
#4

1 month is 30 days. Which means you should just
/setvip [player] [level] 1 <----- 1 Month
Reply
#5

Consider a tutorial.
Reply
#6

i use .ini
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)