Автор: OKStyle
В начало мода:
Code: Select all
new Text:Logo[10];
В OnGameModeInit или в OnFilterScriptInit:
Code: Select all
Logo[0] = TextDrawCreate(501.0, 5.0, "A");
TextDrawLetterSize(Logo[0], 0.51, 2.0);
TextDrawFont(Logo[0], 0);
TextDrawSetOutline(Logo[0], 1);
TextDrawBackgroundColor(Logo[0], 255);
Logo[1] = TextDrawCreate(514.0, 5.0, "t");
TextDrawLetterSize(Logo[1], 0.51, 2.0);
TextDrawFont(Logo[1], 0);
TextDrawSetOutline(Logo[1], 1);
TextDrawBackgroundColor(Logo[1], 255);
Logo[2] = TextDrawCreate(526.0, 5.0, "l");
TextDrawLetterSize(Logo[2], 0.51, 2.0);
TextDrawFont(Logo[2], 0);
TextDrawSetOutline(Logo[2], 1);
TextDrawBackgroundColor(Logo[2], 255);
Logo[3] = TextDrawCreate(531.0, 5.0, "a");
TextDrawLetterSize(Logo[3], 0.51, 2.0);
TextDrawFont(Logo[3], 0);
TextDrawSetOutline(Logo[3], 1);
TextDrawBackgroundColor(Logo[3], 255);
Logo[4] = TextDrawCreate(539.0, 5.0, "n");
TextDrawLetterSize(Logo[4], 0.51, 2.0);
TextDrawFont(Logo[4], 0);
TextDrawSetOutline(Logo[4], 1);
TextDrawBackgroundColor(Logo[4], 255);
Logo[5] = TextDrawCreate(547.0, 5.0, "t");
TextDrawLetterSize(Logo[5], 0.51, 2.0);
TextDrawFont(Logo[5], 0);
TextDrawSetOutline(Logo[5], 1);
TextDrawBackgroundColor(Logo[5], 255);
Logo[6] = TextDrawCreate(558.0, 5.0, "i");
TextDrawLetterSize(Logo[6], 0.51, 2.0);
TextDrawFont(Logo[6], 0);
TextDrawSetOutline(Logo[6], 1);
TextDrawBackgroundColor(Logo[6], 255);
Logo[7] = TextDrawCreate(563.0, 5.0, "c");
TextDrawLetterSize(Logo[7], 0.51, 2.0);
TextDrawFont(Logo[7], 0);
TextDrawSetOutline(Logo[7], 1);
TextDrawBackgroundColor(Logo[7], 255);
Logo[8] = TextDrawCreate(580.0, 5.0, "R");
TextDrawLetterSize(Logo[8], 0.51, 2.0);
TextDrawFont(Logo[8], 0);
TextDrawSetOutline(Logo[8], 1);
TextDrawBackgroundColor(Logo[8], 255);
Logo[9] = TextDrawCreate(595.0, 5.0, "P");
TextDrawLetterSize(Logo[9], 0.51, 2.0);
TextDrawFont(Logo[9], 0);
TextDrawSetOutline(Logo[9], 1);
TextDrawBackgroundColor(Logo[9], 255);
for(new i = 0; i < sizeof(Logo); i++) TextDrawColor(Logo[i], ((floatround((0xFF * floatsin((i / (sizeof(Logo) / 3.0)), radian))) * 0x1000000) + (floatround(((0xFF / sizeof(Logo)) * i)) * 0x10000) + (floatround(((0xFF / sizeof(Logo)) * (sizeof(Logo) - i))) * 0x100) + 0xFF)); // сама раскраска
В OnGameModeExit или в OnFilterScriptExit:
Code: Select all
for(new i = 0; i < sizeof(Logo); i++) TextDrawDestroy(Logo[i]);
В OnPlayerConnect:
Code: Select all
for(new i = 0; i < sizeof(Logo); i++) TextDrawShowForPlayer(playerid, Logo[i]);
В OnPlayerDisconnect:
Code: Select all
for(new i = 0; i < sizeof(Logo); i++) TextDrawHideForPlayer(playerid, Logo[i]);