Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #include <zcmd>
- #define RGB(%0,%1,%2,%3) ((%0*16777216)+(%1*65536)+(%2*256)+%3)
- new PlayerText:Text[MAX_PLAYERS][4],
- PlayerText:Screen[MAX_PLAYERS];
- CMD:run(playerid)
- {
- Text[playerid][0] = CreatePlayerTextDraw(playerid, 2.333477, 402.370513, "Some");
- PlayerTextDrawLetterSize(playerid, Text[playerid][0], 0.400000, 2.200000);
- PlayerTextDrawAlignment(playerid, Text[playerid][0], 1);
- PlayerTextDrawColor(playerid, Text[playerid][0], -1);
- PlayerTextDrawSetShadow(playerid, Text[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, Text[playerid][0], 1);
- PlayerTextDrawBackgroundColor(playerid, Text[playerid][0], 51);
- PlayerTextDrawFont(playerid, Text[playerid][0], 3);
- PlayerTextDrawSetProportional(playerid, Text[playerid][0], 1);
- Text[playerid][1] = CreatePlayerTextDraw(playerid, 9.999933, 415.644744, "Nice");
- PlayerTextDrawLetterSize(playerid, Text[playerid][1], 0.400000, 2.200000);
- PlayerTextDrawAlignment(playerid, Text[playerid][1], 1);
- PlayerTextDrawColor(playerid, Text[playerid][1], -16776961);
- PlayerTextDrawSetShadow(playerid, Text[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, Text[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, Text[playerid][1], 51);
- PlayerTextDrawFont(playerid, Text[playerid][1], 3);
- PlayerTextDrawSetProportional(playerid, Text[playerid][1], 1);
- Text[playerid][2] = CreatePlayerTextDraw(playerid, 5.000047, 427.429992, "Text");
- PlayerTextDrawLetterSize(playerid, Text[playerid][2], 0.400000, 2.200000);
- PlayerTextDrawAlignment(playerid, Text[playerid][2], 1);
- PlayerTextDrawColor(playerid, Text[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, Text[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, Text[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, Text[playerid][2], 51);
- PlayerTextDrawFont(playerid, Text[playerid][2], 3);
- PlayerTextDrawSetProportional(playerid, Text[playerid][2], 1);
- Text[playerid][3] = CreatePlayerTextDraw(playerid, 5.000047, 390.4299920, "Hello");
- PlayerTextDrawBackgroundColor (playerid, Text[playerid][3], 255);
- PlayerTextDrawFont (playerid, Text[playerid][3], 1);
- PlayerTextDrawLetterSize (playerid, Text[playerid][3], 0.170000, 0.799998);
- PlayerTextDrawColor (playerid, Text[playerid][3], -1);
- PlayerTextDrawSetOutline (playerid, Text[playerid][3], 1);
- PlayerTextDrawSetProportional (playerid, Text[playerid][3], 1);
- PlayerTextDrawSetSelectable (playerid, Text[playerid][3], 0);
- for(new i=3; i>=0; --i)
- PlayerTextDrawShow(playerid, Text[playerid][i]);
- Screen[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
- PlayerTextDrawAlignment(playerid, Screen[playerid], 0);
- PlayerTextDrawFont(playerid, Screen[playerid], 3);
- PlayerTextDrawLetterSize(playerid, Screen[playerid], 1.0,480.0);
- PlayerTextDrawUseBox(playerid, Screen[playerid], 1);
- PlayerTextDrawBoxColor(playerid, Screen[playerid], RGB(0,0,0,255));
- PlayerTextDrawTextSize(playerid, Screen[playerid], 640.000000,480.000000);
- PlayerTextDrawShow(playerid, Screen[playerid]);
- printf("%d, %d, %d, %d", Text[playerid][0], Text[playerid][1], Text[playerid][2], Text[playerid][3]);
- return 1;
- }
- CMD:destroy(playerid)
- {
- PlayerTextDrawHide(playerid, Text[playerid][0]);
- PlayerTextDrawHide(playerid, Text[playerid][2]);
- PlayerTextDrawHide(playerid, Text[playerid][3]);
- PlayerTextDrawDestroy(playerid, Text[playerid][0]);
- PlayerTextDrawDestroy(playerid, Text[playerid][2]);
- PlayerTextDrawDestroy(playerid, Text[playerid][3]);
- return 1;
- }
- CMD:destroy1(playerid)
- {
- PlayerTextDrawHide(playerid, Text[playerid][1]);
- PlayerTextDrawDestroy(playerid, Text[playerid][1]);
- return 1;
- }
- CMD:screenoff(playerid)
- {
- PlayerTextDrawHide(playerid, Screen[playerid]);
- PlayerTextDrawDestroy(playerid, Screen[playerid]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement