Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // |
- // TEXTDRAW |
- // |
- // By:Dasine94 |
- // |
- // My first Textdraw, nothing special.|
- //--------------------------------------
- #include <a_samp>
- new Text:Textdraw0;
- new Text:Textdraw1;
- public OnFilterScriptInit()
- {
- // Your Textdraw Here! :D
- Textdraw0 = TextDrawCreate(598.000000, 420.000000, "Write What you want here! :)");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 2);
- TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
- TextDrawColor(Textdraw0, 0xC2A2DAAA);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- Textdraw1 = TextDrawCreate(595.000000, 429.000000, "Write What you want here! :)");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 2);
- TextDrawLetterSize(Textdraw1, 0.300000, 1.000000);
- TextDrawColor(Textdraw1, 0xAA3333AA);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 1);
- for(new i; i < MAX_PLAYERS; i ++)
- {
- if(IsPlayerConnected(i))
- {
- TextDrawShowForPlayer(i, Textdraw0);
- TextDrawShowForPlayer(i, Textdraw1);
- }
- }
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawHideForAll(Textdraw0);
- TextDrawDestroy(Textdraw0);
- TextDrawHideForAll(Textdraw1);
- TextDrawDestroy(Textdraw1);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement