|
|
#1 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2010
Location: The Netherlands
Posts: 1,489
Reputation: 72
|
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.");
}
}
|
|
|
|
|
#2 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2011
Location: Milan, Italy
Posts: 354
Reputation: 31
|
If you do that i think that you could also do it with textdraw. No difference, the string is a string..
TextDrawCreate |
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2010
Location: The Netherlands
Posts: 1,489
Reputation: 72
|
|
|
|
|
|
#4 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2011
Location: Milan, Italy
Posts: 354
Reputation: 31
|
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2010
Location: The Netherlands
Posts: 1,489
Reputation: 72
|
I know how to create textdraw but how can i change it on day
|
|
|
| Thread Tools | |
| Display Modes | |
|
|