An Admin command ...
#10

pawn Код:
CMD:settime(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;
    new hour, minute;
    if(sscanf(params,"ii",hour,minute)) return SendClientMessage(playerid, 0xFFFFFFFF, "Useage: /settime [hour] [minute]");
    format(TimeString,32,"%02d:%02d", hour, minute);
    TextDrawSetString(TimeDisplay, TimeString);

    for (new playerid; playerid < MAX_PLAYERS; playerid++)
    {
        if (IsPlayerConnected(playerid))
        {
            SetPlayerTime(playerid, hour, minute);
        }
    }
    return 1;
}
Reply


Messages In This Thread
An Admin command ... - by GeekSiMo - 31.05.2014, 17:50
Re: An Admin command ... - by NaClchemistryK - 31.05.2014, 17:54
Re : An Admin command ... - by S4t3K - 31.05.2014, 17:56
Re: An Admin command ... - by Aerotactics - 31.05.2014, 17:58
Re: An Admin command ... - by GeekSiMo - 31.05.2014, 18:01
Re: An Admin command ... - by NaClchemistryK - 31.05.2014, 18:22
Re: An Admin command ... - by GeekSiMo - 02.06.2014, 17:53
Re: An Admin command ... - by iFiras - 02.06.2014, 18:34
Re: An Admin command ... - by GeekSiMo - 06.06.2014, 19:10
Re: An Admin command ... - by Faisal_khan - 06.06.2014, 19:14

Forum Jump:


Users browsing this thread: 1 Guest(s)