Little Help with Time Command.
#1

Hello Everyone ! I want to Change my Admin Command Like /setplayertime playerid time to
/setalltime time.

That means I want to Change the Time of All. My Gamemode have a Command of Changing Player Time Can Someone Convert it to World Time Please.
As This Written in dcmd I want in dcmd. Don't Put zcmd command please....
Heres my command of Changing time of a player-
Код:
dcmd_setptime(playerid,params[])
{
	#pragma unused params
    new ID;
    new Level;
    new string[128];
    if(sscanf(params,"ui",ID,Level))
    {
        SendClientMessage(playerid, COLOR_ERROR,"{CACA00}[INFO]{FFFFFF}: /setptime [PlayerID] [Time]");
        return 1;
    }
    if(!IsPlayerConnected(ID))
    {
	 	format(string,sizeof(string),"The player ID (%d) is not connected to the server.",ID);
	 	SendClientMessage(playerid,COLOR_RED,string);
	 	return 1;
	}
	format(string, sizeof(string), "You have set %s's Playing Time to %d",PlayerName(ID),Level);
	SendClientMessage(playerid,COLOR_ADMIN,string);
	format(string,sizeof(string),"Admin %s has set your Playing Time to %d", PlayerName(playerid), Level);
	SendClientMessage(ID,COLOR_ADMIN,string);
	PlayerPlayingTimeHour[ID] =Level;
	return 1;
}
Convert the COde so i can set the world time not playertime Example - /setworldtime time
I Know there is no IsPlayerAdmin Etc, Don't Put this I Already have.
Reply


Messages In This Thread
Little Help with Time Command. - by Adarsh007 - 01.11.2014, 08:49
Re: Little Help with Time Command. - by HY - 01.11.2014, 09:11
Re: Little Help with Time Command. - by Adarsh007 - 02.11.2014, 14:15
Re: Little Help with Time Command. - by Quickie - 03.11.2014, 00:25

Forum Jump:


Users browsing this thread: 2 Guest(s)