/*
Author: AjaxM
Textdraws: 7
Date: 14/01/2017 20:23
Last Updated: 12/01/2017 12:15
Changelogs: (v2)
+ Supports only 4 Textdraws
+ Textdraws now gets destroyed when a player disconnects
+ The logo is relatively bigger then the previous version
+ Textdraw 'R' is now red in color
Total Changes: 4
*/
new Text:TDEditor_TD[4];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Rockstar Logo (v2) by AjaxM has loaded...");
print("--------------------------------------\n");
TDEditor_TD[0] = TextDrawCreate(579.599975, 361.733520, "BlackBox");
TextDrawLetterSize(TDEditor_TD[0], 0.000000, 3.999998);
TextDrawTextSize(TDEditor_TD[0], 621.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawUseBox(TDEditor_TD[0], 1);
TextDrawBoxColor(TDEditor_TD[0], 255);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetOutline(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 1);
TextDrawSetProportional(TDEditor_TD[0], 1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TDEditor_TD[1] = TextDrawCreate(582.799743, 365.466735, "YellowBox");
TextDrawLetterSize(TDEditor_TD[1], 0.000000, 3.119998);
TextDrawTextSize(TDEditor_TD[1], 618.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawUseBox(TDEditor_TD[1], 1);
TextDrawBoxColor(TDEditor_TD[1], -65281);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetOutline(TDEditor_TD[1], 0);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 1);
TextDrawSetProportional(TDEditor_TD[1], 1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TDEditor_TD[2] = TextDrawCreate(586.799987, 361.733367, "R");
TextDrawLetterSize(TDEditor_TD[2], 0.612799, 2.772269);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -16776961);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawSetOutline(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 2);
TextDrawSetProportional(TDEditor_TD[2], 1);
TextDrawSetShadow(TDEditor_TD[2], 0);
TDEditor_TD[3] = TextDrawCreate(582.201416, 376.359985, "[]");
TextDrawLetterSize(TDEditor_TD[3], 0.559200, 1.965866);
TextDrawAlignment(TDEditor_TD[3], 1);
TextDrawColor(TDEditor_TD[3], 65535);
TextDrawSetShadow(TDEditor_TD[3], 0);
TextDrawSetOutline(TDEditor_TD[3], 0);
TextDrawBackgroundColor(TDEditor_TD[3], 255);
TextDrawFont(TDEditor_TD[3], 2);
TextDrawSetProportional(TDEditor_TD[3], 1);
TextDrawSetShadow(TDEditor_TD[3], 0);
return 1;
}
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print("Rockstar Logo by AjaxM has unloaded...");
print("--------------------------------------\n");
TextDrawDestroy(TDEditor_TD[0]);
TextDrawDestroy(TDEditor_TD[1]);
TextDrawDestroy(TDEditor_TD[2]);
TextDrawDestroy(TDEditor_TD[3]);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
TextDrawShowForPlayer(playerid, TDEditor_TD[3]);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
TextDrawDestroy(TDEditor_TD[0]);
TextDrawDestroy(TDEditor_TD[1]);
TextDrawDestroy(TDEditor_TD[2]);
TextDrawDestroy(TDEditor_TD[3]);
return 1;
}
Its nice but why you created so many textdraws when you could do it with only 4
|