10.08.2013, 19:02
pawn Код:
CMD:settime(playerid,params[])
{
new string[128];
if(!Info[playerid][Logged]) return 0;
if(Info[playerid][Level] < 2) return ERRORMSG(playerid);
new time;
if(sscanf(params,"d",time)) return SendClientMessage(playerid,COLOR_GREY,"HELP: /settime [time]");
TextDrawHideForAll(TimeLeft);
new _timeString[3]; format(_timeString, sizeof(_timeString), "%d", time);
TextDrawSetString(TimeLeft,_timeString);
TextDrawShowForAll(TimeLeft);
SetWorldTime(time);
format(string,sizeof(string),"%s(%d) Has set the time or map to %d,",PlayerName(playerid), playerid, time);
SendClientMessageToAll(COLOR_ADMIN,string);
return 1;
}