TextDrawSetString
#2

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;
}
Try that.. You forgot a function. (https://sampwiki.blast.hk/wiki/SetWorldTime)
Reply


Messages In This Thread
TextDrawSetString - by SwisherSweet - 10.08.2013, 18:58
Re: TextDrawSetString - by BullseyeHawk - 10.08.2013, 19:02
Re: TextDrawSetString - by SwisherSweet - 10.08.2013, 19:06
Re: TextDrawSetString - by SwisherSweet - 10.08.2013, 19:13
Re: TextDrawSetString - by BullseyeHawk - 10.08.2013, 19:16
Re: TextDrawSetString - by SwisherSweet - 10.08.2013, 19:21
Re: TextDrawSetString - by BullseyeHawk - 10.08.2013, 19:33
Re: TextDrawSetString - by SwisherSweet - 10.08.2013, 20:05

Forum Jump:


Users browsing this thread: 3 Guest(s)