Gameday
#1

Heey guys
I have made gameday and time but how can i let see the day in textdraw.
Code:
Code:
public TimeWorld()
{
	new string[30];
	if(gametime == 0 && gameday == 7 && gameweek == 4)
	{
	     //SendRconCommand("gmx");
	}
	gametime++;
	if(gametime >= 24)
	{
		gametime =0;
	}
	if(gametime == 0)
	{
		gameday ++;
	}
	for(new i=0; i < MAX_PLAYERS; i++)
	{
		if (IsPlayerConnected(i))
	    {
        	SetPlayerTime(i,gametime,0);
		}
	}
	SetWorldTime(gametime);
	format(string, sizeof(string), "[GAME TIME] %d:00", gametime);
	SendClientMessageToAll(COLOR_WHITE, string);
	if(gametime == 0 && gameday == 1)
	{

		SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Monday");
	}
	if(gametime == 0 && gameday == 2)
	{
		SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Tuesday");
	}
	if(gametime == 0 && gameday == 3)
	{
		SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Wednesday");
	}
	if(gametime == 0 && gameday == 4)
	{
		SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Thursday");
	}
	if(gametime == 0 && gameday == 5)
	{
		SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Friday");
	}
	if(gametime == 0 && gameday == 6)
	{
		SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Saturday");
	}
	if(gametime == 0 && gameday == 7)
 	{
		SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Sunday");
	}
	if(gametime == 23 && gameday == 7)
	{
		gameweek ++;
		gameday =1;
		if(gameweek == 1)
		{
			SendClientMessageToAll(COLOR_WHITE,"[GAME WEEK] 1");
		}
		if(gameweek == 2)
		{
			SendClientMessageToAll(COLOR_WHITE,"[GAME WEEK] 2");
		}
		if(gameweek == 3)
		{
			SendClientMessageToAll(COLOR_WHITE,"[GAME WEEK] 3");
		}
		if(gameweek == 4)
		{
			SendClientMessageToAll(COLOR_WHITE,"[GAME WEEK] 4");
		}
	}
	if(gametime == 23 && gameday == 7 && gameweek == 4)
	{
		//SendClientMessageToAll(COLOR_ADMIN,"[AUTO ADMIN] The server will restart in one game hour to give it a nice fresh start.");
	}
}
thanks Admigo
Reply
#2

If you do that i think that you could also do it with textdraw. No difference, the string is a string..

TextDrawCreate
Reply
#3

Quote:
Originally Posted by Phanto90
View Post
If you do that i think that you could also do it with textdraw. No difference, the string is a string..

TextDrawCreate
I dont know how to do this. Pls help
Reply
#4

Sure that you did that code :/ Suspicious

https://sampwiki.blast.hk/wiki/TextDrawCreate
Reply
#5

I know how to create textdraw but how can i change it on day
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)