01.11.2014, 08:49
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-
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.
/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; }
I Know there is no IsPlayerAdmin Etc, Don't Put this I Already have.