Untitled

mail@pastecode.io avatar
unknown
plain_text
21 days ago
5.3 kB
0
Indexable
Never
new PlayerText:LogoPTD[2], Text:LogoTD[6];

task thoigiann[1000]() {
    new string[128], year, month,day;
    getdate(year, month, day);
    format(string, sizeof(string), "%02d:%02d", hour, minuite);
    TextDrawSetString(LogoTD[5], string);
    format(string, sizeof(string), "%d/%d/%d", day, month,year);
    TextDrawSetString(LogoTD[4], string);
	return true;
}

//onplayerload
	for(new xxx = 0; xxx < 6; xxx++) TextDrawShowForPlayer(playerid,LogoTD[xxx]);
	for(new xxx = 0; xxx < 2; xxx++) PlayerTextDrawShow(playerid,LogoPTD[xxx]);

	new young[64];
	format(young,sizeof(young),"ID: %d",playerid);
 	PlayerTextDrawSetString(playerid,LogoPTD[0],young);
 	format(young,sizeof(young),"Level: %d",PlayerInfo[playerid][pLevel]);
 	PlayerTextDrawSetString(playerid,LogoPTD[1],young);


// loadtextdraws()
	//logo
    LogoTD[0] = TextDrawCreate(23.411453, 432.666900, "box");
	TextDrawLetterSize(LogoTD[0], 0.001404, 0.970134);
	TextDrawTextSize(LogoTD[0], 0.000000, 27.000000);
	TextDrawAlignment(LogoTD[0], 2);
	TextDrawColor(LogoTD[0], -1);
	TextDrawUseBox(LogoTD[0], 1);
	TextDrawBoxColor(LogoTD[0], -5963521);
	TextDrawSetShadow(LogoTD[0], 0);
	TextDrawSetOutline(LogoTD[0], 0);
	TextDrawBackgroundColor(LogoTD[0], 255);
	TextDrawFont(LogoTD[0], 1);
	TextDrawSetProportional(LogoTD[0], 1);
	TextDrawSetShadow(LogoTD[0], 0);

	LogoTD[1] = TextDrawCreate(64.172798, 433.250122, "box");
	TextDrawLetterSize(LogoTD[1], -0.000468, 0.935136);
	TextDrawTextSize(LogoTD[1], 0.000000, 38.000000);
	TextDrawAlignment(LogoTD[1], 2);
	TextDrawColor(LogoTD[1], -1);
	TextDrawUseBox(LogoTD[1], 1);
	TextDrawBoxColor(LogoTD[1], -5963521);
	TextDrawSetShadow(LogoTD[1], 0);
	TextDrawSetOutline(LogoTD[1], 0);
	TextDrawBackgroundColor(LogoTD[1], 255);
	TextDrawFont(LogoTD[1], 1);
	TextDrawSetProportional(LogoTD[1], 1);
	TextDrawSetShadow(LogoTD[1], 0);

	LogoTD[2] = TextDrawCreate(323.733703, 442.583312, "box");
	TextDrawLetterSize(LogoTD[2], 0.000000, -0.260614);
	TextDrawTextSize(LogoTD[2], 0.000000, 206.000000);
	TextDrawAlignment(LogoTD[2], 2);
	TextDrawColor(LogoTD[2], -1);
	TextDrawUseBox(LogoTD[2], 1);
	TextDrawBoxColor(LogoTD[2], -5963521);
	TextDrawSetShadow(LogoTD[2], 0);
	TextDrawSetOutline(LogoTD[2], 0);
	TextDrawBackgroundColor(LogoTD[2], 255);
	TextDrawFont(LogoTD[2], 1);
	TextDrawSetProportional(LogoTD[2], 1);
	TextDrawSetShadow(LogoTD[2], 0);

	LogoTD[3] = TextDrawCreate(327.013488, 424.500183, "GTA-RP.NET");
	TextDrawLetterSize(LogoTD[3], 0.245973, 1.500511);
	TextDrawTextSize(LogoTD[3], 0.000000, 77.000000);
	TextDrawAlignment(LogoTD[3], 2);
	TextDrawColor(LogoTD[3], -5963521);
	TextDrawUseBox(LogoTD[3], 1);
	TextDrawBoxColor(LogoTD[3], 255);
	TextDrawSetShadow(LogoTD[3], 0);
	TextDrawSetOutline(LogoTD[3], 0);
	TextDrawBackgroundColor(LogoTD[3], 255);
	TextDrawFont(LogoTD[3], 2);
	TextDrawSetProportional(LogoTD[3], 1);
	TextDrawSetShadow(LogoTD[3], 0);

	LogoTD[4] = TextDrawCreate(254.392379, 425.666717, "15.3.2022");
	TextDrawLetterSize(LogoTD[4], 0.286617, 1.366667);
	TextDrawAlignment(LogoTD[4], 2);
	TextDrawColor(LogoTD[4], -1);
	TextDrawSetShadow(LogoTD[4], 0);
	TextDrawSetOutline(LogoTD[4], 1);
	TextDrawBackgroundColor(LogoTD[4], 255);
	TextDrawFont(LogoTD[4], 3);
	TextDrawSetProportional(LogoTD[4], 1);
	TextDrawSetShadow(LogoTD[4], 0);

	LogoTD[5] = TextDrawCreate(393.543304, 425.083465, "24:00");
	TextDrawLetterSize(LogoTD[5], 0.286617, 1.366667);
	TextDrawAlignment(LogoTD[5], 2);
	TextDrawColor(LogoTD[5], -1);
	TextDrawSetShadow(LogoTD[5], 0);
	TextDrawSetOutline(LogoTD[5], 1);
	TextDrawBackgroundColor(LogoTD[5], 255);
	TextDrawFont(LogoTD[5], 3);
	TextDrawSetProportional(LogoTD[5], 1);
	TextDrawSetShadow(LogoTD[5], 0);

//onplayerconnect
	//logo
    LogoPTD[0] = CreatePlayerTextDraw(playerid, 24.348495, 432.083496, "ID: 20");
	PlayerTextDrawLetterSize(playerid, LogoPTD[0], 0.176163, 1.127079);
	PlayerTextDrawTextSize(playerid, LogoPTD[0], 0.000000, 26.000000);
	PlayerTextDrawAlignment(playerid, LogoPTD[0], 2);
	PlayerTextDrawColor(playerid, LogoPTD[0], -1);
	PlayerTextDrawUseBox(playerid, LogoPTD[0], 1);
	PlayerTextDrawBoxColor(playerid, LogoPTD[0], 255);
	PlayerTextDrawSetShadow(playerid, LogoPTD[0], 0);
	PlayerTextDrawSetOutline(playerid, LogoPTD[0], 0);
	PlayerTextDrawBackgroundColor(playerid, LogoPTD[0], 255);
	PlayerTextDrawFont(playerid, LogoPTD[0], 2);
	PlayerTextDrawSetProportional(playerid, LogoPTD[0], 1);
	PlayerTextDrawSetShadow(playerid, LogoPTD[0], 0);

	LogoPTD[1] = CreatePlayerTextDraw(playerid, 64.641319, 432.666809, "level: 10");
	PlayerTextDrawLetterSize(playerid, LogoPTD[1], 0.163982, 1.033560);
	PlayerTextDrawTextSize(playerid, LogoPTD[1], 0.000000, 37.000000);
	PlayerTextDrawAlignment(playerid, LogoPTD[1], 2);
	PlayerTextDrawColor(playerid, LogoPTD[1], -1);
	PlayerTextDrawUseBox(playerid, LogoPTD[1], 1);
	PlayerTextDrawBoxColor(playerid, LogoPTD[1], 255);
	PlayerTextDrawSetShadow(playerid, LogoPTD[1], 0);
	PlayerTextDrawSetOutline(playerid, LogoPTD[1], 0);
	PlayerTextDrawBackgroundColor(playerid, LogoPTD[1], 255);
	PlayerTextDrawFont(playerid, LogoPTD[1], 2);
	PlayerTextDrawSetProportional(playerid, LogoPTD[1], 1);
	PlayerTextDrawSetShadow(playerid, LogoPTD[1], 0);
Leave a Comment