Don't like ads? PRO users don't see any ads ;-)
Guest

Time

By: a guest on Jul 29th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CMD:tod(playerid, params[])
  2. {
  3.         if (PlayerInfo[playerid][pAdmin] >= 1337)
  4.         {
  5.                 new string[128], time;
  6.                 if(sscanf(params, "d", time)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /tod [time] (0-23)");
  7.  
  8.                 SetWorldTime(time);
  9.                 gTime = time;
  10.                 format(string, sizeof(string), "Time set to %d:00.", time);
  11.                 BroadCast(COLOR_GRAD1, string);
  12.         }
  13.         else
  14.         {
  15.                 SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  16.         }
  17.         return 1;
  18. }