How to change server time?
#5

Like this

pawn Code:
if(strcmp(cmd, "/tod", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /tod [timeofday] (0-23)");
                return 1;
            }
            new hour;
            hour = strvalEx(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 1337)
            {
          SetWorldTime(hour);
                format(string, sizeof(string), "  Time set to %d Hours.", hour);
                BroadCast(COLOR_GRAD1, string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "  Niste ovlasteni za koristenje ove komande !");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
How to change server time? - by Fumis - 07.12.2008, 18:39
Re: How to change server time? - by Dujma - 07.12.2008, 18:42
Re: How to change server time? - by Lewwy - 07.12.2008, 18:43
Re: How to change server time? - by Fumis - 07.12.2008, 18:43
Re: How to change server time? - by Dujma - 07.12.2008, 18:46
Re: How to change server time? - by Lewwy - 07.12.2008, 18:47
Re: How to change server time? - by Dujma - 07.12.2008, 18:48
Re: How to change server time? - by Lewwy - 07.12.2008, 18:50
Re: How to change server time? - by Dujma - 07.12.2008, 18:55
Re: How to change server time? - by Fumis - 07.12.2008, 19:01
Re: How to change server time? - by Penki4a - 02.09.2012, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)