Sziasztok! Készítettem egy Karácsonyi Textdrawot gondoltam felteszem nektek..
Adatok:
Kép:
Script:
[pawn]
#include <a_samp>
#include <fixchars.h>
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
public OnFilterScriptInit()
{
print(\"Christmas Textdraw By Diggity\");
Textdraw0 = TextDrawCreate(489.000000, 200.000000, \".\");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.000000, 12.300000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 207906069);
TextDrawTextSize(Textdraw0, 634.000000, 0.000000);
Textdraw1 = TextDrawCreate(492.000000, 202.000000, \"Boldog Karácsonyt!\");
TextDrawBackgroundColor(Textdraw1, -16776961);
TextDrawFont(Textdraw1, 0);
TextDrawLetterSize(Textdraw1, 0.669999, 1.800000);
TextDrawColor(Textdraw1, 255);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
Textdraw2 = TextDrawCreate(492.000000, 226.000000, \"Minden kedves\");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 0);
TextDrawLetterSize(Textdraw2, 0.649999, 1.700000);
TextDrawColor(Textdraw2, 16777215);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
Textdraw3 = TextDrawCreate(560.000000, 247.000000, \"Játékosnak!\");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 0);
TextDrawLetterSize(Textdraw3, 0.549999, 1.600000);
TextDrawColor(Textdraw3, 16711935);
TextDrawSetOutline(Textdraw3, 1);
TextDrawSetProportional(Textdraw3, 1);
Textdraw4 = TextDrawCreate(496.000000, 269.000000, \"BY:\");
TextDrawBackgroundColor(Textdraw4, 16711935);
TextDrawFont(Textdraw4, 3);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, 65535);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);
Textdraw5 = TextDrawCreate(513.000000, 286.000000, \"sampforum.hu\");
TextDrawBackgroundColor(Textdraw5, 16777215);
TextDrawFont(Textdraw5, 3);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, -16776961);
TextDrawSetOutline(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
}
}
return 1;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawDestroy(Textdraw2);
TextDrawHideForAll(Textdraw3);
TextDrawDestroy(Textdraw3);
TextDrawHideForAll(Textdraw4);
TextDrawDestroy(Textdraw4);
TextDrawHideForAll(Textdraw5);
TextDrawDestroy(Textdraw5);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
return 1;
}
[/pawn]
A Képen ugye ékezet nélkül látható a TD de a script be már ékezetes lett a Fixchars.h INC segítségével!
INC:
http://solidfiles.com/d/5ad7/ Remélem hogy valaki használni fogja!