Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// DATE - TIME start
- new Text:Time, Text:Date;
- new string[256];
- new year,month,day,hours,minutes,seconds;
- getdate(year, month, day), gettime(hours, minutes, seconds);
- format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
- TextDrawSetString(Date, string);
- format(string, sizeof string, "%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
- TextDrawSetString(Time, string);
- Date = TextDrawCreate(542.000061, 4.960021,"--");
- TextDrawFont(Date,1);
- TextDrawLetterSize(Date,0.367999, 1.525333);
- TextDrawColor(Date,-16777279);
- TextDrawSetShadow(Date, 1);
- TextDrawSetOutline(Date, 1);
- Time = TextDrawCreate(499.200073, 4.400056,"--");
- TextDrawFont(Time,3);
- TextDrawLetterSize(Time,0.417999, 2.086044);
- TextDrawColor(Time,-16777279);
- TextDrawSetShadow(Time, 1);
- TextDrawSetOutline(Time, 1);
- OnPlayerSpawn
- TextDrawShowForPlayer(playerid, Time);
- TextDrawShowForPlayer(playerid, Date);
- /// DATE - TIME end
- /// PlayerNameTD start
- new PlayerText: PlayerNameTD[MAX_PLAYERS][1];
- PlayerNameTD[playerid][0] = CreatePlayerTextDraw(playerid, 90, 317.833343, "Player");
- PlayerTextDrawLetterSize(playerid, PlayerNameTD[playerid][0], 0.298666, 1.309628);
- PlayerTextDrawAlignment(playerid, PlayerNameTD[playerid][0], 2);
- PlayerTextDrawColor(playerid, PlayerNameTD[playerid][0], 0x2685A4FF);
- PlayerTextDrawSetShadow(playerid, PlayerNameTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, PlayerNameTD[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, PlayerNameTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, PlayerNameTD[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, PlayerNameTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, PlayerNameTD[playerid][0], 0);
- OnPlayerSpawn
- new strname[256];
- foreach (new i : Player)
- {
- format(strname, sizeof(strname), "%s (%d)", GetName(i), i);
- PlayerTextDrawSetString(i, PlayerNameTD[i][0], strname);
- PlayerTextDrawShow(i, PlayerNameTD[i][0]);
- }
- /// PlayerNameTD end
- /// Galactic - Terra start
- new Text:galhud_Global[4];
- galhud_Global[0] = TextDrawCreate(51.054183, 328.833251, "-");
- TextDrawLetterSize(galhud_Global[0], 6.516544, 0.969999);
- TextDrawAlignment(galhud_Global[0], 1);
- TextDrawColor(galhud_Global[0], 255);
- TextDrawSetShadow(galhud_Global[0], 1);
- TextDrawSetOutline(galhud_Global[0], 2);
- TextDrawBackgroundColor(galhud_Global[0], 255);
- TextDrawFont(galhud_Global[0], 2);
- TextDrawSetProportional(galhud_Global[0], 1);
- TextDrawSetShadow(galhud_Global[0], 1);
- galhud_Global[1] = TextDrawCreate(49.648620, 310.749816, "-");
- TextDrawLetterSize(galhud_Global[1], 6.516544, 0.969999);
- TextDrawAlignment(galhud_Global[1], 1);
- TextDrawColor(galhud_Global[1], 255);
- TextDrawSetShadow(galhud_Global[1], 1);
- TextDrawSetOutline(galhud_Global[1], 2);
- TextDrawBackgroundColor(galhud_Global[1], 255);
- TextDrawFont(galhud_Global[1], 2);
- TextDrawSetProportional(galhud_Global[1], 1);
- TextDrawSetShadow(galhud_Global[1], 1);
- galhud_Global[2] = TextDrawCreate(548, 21, "GALACTIC");
- TextDrawLetterSize(galhud_Global[2], 0.335812, 1.279165);
- TextDrawAlignment(galhud_Global[2], 1);
- TextDrawColor(galhud_Global[2], -1);
- TextDrawSetShadow(galhud_Global[2], 1);
- TextDrawSetOutline(galhud_Global[2], 1);
- TextDrawBackgroundColor(galhud_Global[2], 255);
- TextDrawFont(galhud_Global[2], 1);
- TextDrawSetProportional(galhud_Global[2], 1);
- TextDrawSetShadow(galhud_Global[2], 1);
- galhud_Global[3] = TextDrawCreate(566, 30, "TERRA");
- TextDrawLetterSize(galhud_Global[3], 0.335812, 1.279165);
- TextDrawAlignment(galhud_Global[3], 1);
- TextDrawColor(galhud_Global[3], 0x2685A4FF);
- TextDrawSetShadow(galhud_Global[3], 1);
- TextDrawSetOutline(galhud_Global[3], 1);
- TextDrawBackgroundColor(galhud_Global[3], 255);
- TextDrawFont(galhud_Global[3], 3);
- TextDrawSetProportional(galhud_Global[3], 1);
- TextDrawSetShadow(galhud_Global[3], 1);
- // Galactic - TERRA end
Advertisement
Add Comment
Please, Sign In to add comment