15.11.2017, 19:42
You just need to switch the function 'SendClientMessageToAll' with 'SendClientMessage' to the ID (i) because you're using a loop anyway. I've fixed it for you.
Also, I recommend you to remember to indent your codes.
Code:
CMD:day(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_RED, "ERROR: Insufficient Permissions!"); for(new i = 0; i < MAX_PLAYERS; i++) { SetPlayerTime(i, 12, 0); SendClientMessage(i, COLOR_RED, "Server's time has been set to day time!"); } return 1; }