Little Help with Time Command.
#4

pawn Код:
dcmd_setalltime(playerid,params[])
{
    #pragma unused params
    new Level;
    new string[128];
    if(sscanf(params,"i",Level))
    {
        SendClientMessage(playerid, COLOR_ERROR,"{CACA00}[INFO]{FFFFFF}: /setalltime [Time]");
        return 1;
    }
    for(new i;i!=MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            format(string,sizeof(string),"Admin %s has set your Playing Time to %d", PlayerName(playerid), Level);
            SendClientMessage(ID,COLOR_ADMIN,string);
            PlayerPlayingTimeHour[ID] =Level;
        }
    }
    format(string, sizeof(string), "You have set all connected players Playing Time to %d",Level);
    SendClientMessage(playerid,COLOR_ADMIN,string);
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(setalltime, 10, cmdtext);
    return 0;
}
Reply


Messages In This Thread
Little Help with Time Command. - by Adarsh007 - 01.11.2014, 08:49
Re: Little Help with Time Command. - by HY - 01.11.2014, 09:11
Re: Little Help with Time Command. - by Adarsh007 - 02.11.2014, 14:15
Re: Little Help with Time Command. - by Quickie - 03.11.2014, 00:25

Forum Jump:


Users browsing this thread: 1 Guest(s)