Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- new Text:BoxDraw0;
- new Text:LogoDraw;
- new Text:LoginRegDraw;
- new Text:WebDraw;
- new Text:CreditsDraw;
- new Text:QuitDraw;
- new Text:OtherDraw;
- public OnFilterScriptInit()
- {
- BoxDraw0 = TextDrawCreate(470.000000, -11.000000, "_~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~__~n~_");
- TextDrawBackgroundColor(BoxDraw0, 255);
- TextDrawFont(BoxDraw0, 1);
- TextDrawLetterSize(BoxDraw0, 0.500000, 2.799999);
- TextDrawColor(BoxDraw0, -1);
- TextDrawSetOutline(BoxDraw0, 0);
- TextDrawSetProportional(BoxDraw0, 1);
- TextDrawSetShadow(BoxDraw0, 1);
- TextDrawUseBox(BoxDraw0, 1);
- TextDrawBoxColor(BoxDraw0, 255);
- TextDrawTextSize(BoxDraw0, 650.000000, -38.000000);
- TextDrawSetSelectable(BoxDraw0, 0);
- LogoDraw = TextDrawCreate(471.000000, 10.000000, "..:2013 Dogfights:...");
- TextDrawBackgroundColor(LogoDraw, 16777215);
- TextDrawFont(LogoDraw, 1);
- TextDrawLetterSize(LogoDraw, 0.500000, 3.000000);
- TextDrawColor(LogoDraw, -16776961);
- TextDrawSetOutline(LogoDraw, 1);
- TextDrawSetProportional(LogoDraw, 1);
- TextDrawUseBox(LogoDraw, 1);
- TextDrawBoxColor(LogoDraw, 707406536);
- TextDrawTextSize(LogoDraw, 660.000000, -4.000000);
- TextDrawSetSelectable(LogoDraw, 0);
- LoginRegDraw = TextDrawCreate(473.000000, 60.000000, "Login / Register");
- TextDrawBackgroundColor(LoginRegDraw, 255);
- TextDrawFont(LoginRegDraw, 1);
- TextDrawLetterSize(LoginRegDraw, 0.639999, 3.300000);
- TextDrawColor(LoginRegDraw, -1);
- TextDrawSetOutline(LoginRegDraw, 0);
- TextDrawSetProportional(LoginRegDraw, 1);
- TextDrawSetShadow(LoginRegDraw, 1);
- TextDrawUseBox(LoginRegDraw, 1);
- TextDrawBoxColor(LoginRegDraw, 707406536);
- TextDrawTextSize(LoginRegDraw, 700.000000, 0.000000);
- TextDrawSetSelectable(LoginRegDraw, true);
- WebDraw = TextDrawCreate(475.000000, 115.000000, "Website");
- TextDrawBackgroundColor(WebDraw, 255);
- TextDrawFont(WebDraw, 1);
- TextDrawLetterSize(WebDraw, 0.639999, 3.300000);
- TextDrawColor(WebDraw, -1);
- TextDrawSetOutline(WebDraw, 0);
- TextDrawSetProportional(WebDraw, 1);
- TextDrawSetShadow(WebDraw, 1);
- TextDrawUseBox(WebDraw, 1);
- TextDrawBoxColor(WebDraw, 707406536);
- TextDrawTextSize(WebDraw, 670.000000, 0.000000);
- TextDrawSetSelectable(WebDraw, true);
- CreditsDraw = TextDrawCreate(475.000000, 165.000000, "Credits");
- TextDrawBackgroundColor(CreditsDraw, 255);
- TextDrawFont(CreditsDraw, 1);
- TextDrawLetterSize(CreditsDraw, 0.639999, 3.300000);
- TextDrawColor(CreditsDraw, -1);
- TextDrawSetOutline(CreditsDraw, 0);
- TextDrawSetProportional(CreditsDraw, 1);
- TextDrawSetShadow(CreditsDraw, 1);
- TextDrawUseBox(CreditsDraw, 1);
- TextDrawBoxColor(CreditsDraw, 707406536);
- TextDrawTextSize(CreditsDraw, 690.000000, 0.000000);
- TextDrawSetSelectable(CreditsDraw, true);
- QuitDraw = TextDrawCreate(477.000000, 392.000000, "QUIT");
- TextDrawBackgroundColor(QuitDraw, -1);
- TextDrawFont(QuitDraw, 1);
- TextDrawLetterSize(QuitDraw, 0.840000, 5.300000);
- TextDrawColor(QuitDraw, -16776961);
- TextDrawSetOutline(QuitDraw, 1);
- TextDrawSetProportional(QuitDraw, 1);
- TextDrawUseBox(QuitDraw, 1);
- TextDrawBoxColor(QuitDraw, 707406536);
- TextDrawTextSize(QuitDraw, 680.000000, -20.000000);
- TextDrawSetSelectable(QuitDraw, true);
- OtherDraw = TextDrawCreate(475.000000, 217.000000, "Other");
- TextDrawBackgroundColor(OtherDraw, 255);
- TextDrawFont(OtherDraw, 1);
- TextDrawLetterSize(OtherDraw, 0.639999, 3.300000);
- TextDrawColor(OtherDraw, -1);
- TextDrawSetOutline(OtherDraw, 0);
- TextDrawSetProportional(OtherDraw, 1);
- TextDrawSetShadow(OtherDraw, 1);
- TextDrawUseBox(OtherDraw, 1);
- TextDrawBoxColor(OtherDraw, 707406536);
- TextDrawTextSize(OtherDraw, 730.000000, 0.000000);
- TextDrawSetSelectable(OtherDraw, true);
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawHideForAll(BoxDraw0);
- TextDrawDestroy(BoxDraw0);
- TextDrawHideForAll(LogoDraw);
- TextDrawDestroy(LogoDraw);
- TextDrawHideForAll(LoginRegDraw);
- TextDrawDestroy(LoginRegDraw);
- TextDrawHideForAll(WebDraw);
- TextDrawDestroy(WebDraw);
- TextDrawHideForAll(CreditsDraw);
- TextDrawDestroy(CreditsDraw);
- TextDrawHideForAll(QuitDraw);
- TextDrawDestroy(QuitDraw);
- TextDrawHideForAll(OtherDraw);
- TextDrawDestroy(OtherDraw);
- return 1;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(_:clickedid != INVALID_TEXT_DRAW)
- {
- if(clickedid == LoginRegDraw)
- {
- SendClientMessage(playerid,-1,"* LOGIN / REG *");
- }
- else if(clickedid == WebDraw)
- {
- SendClientMessage(playerid,-1,"* WEBSITE *");
- }
- else if(clickedid == CreditsDraw)
- {
- SendClientMessage(playerid,-1,"* CREDITS *");
- }
- else if(clickedid == QuitDraw)
- {
- SendClientMessage(playerid,-1,"* QUIT *");
- }
- else if(clickedid == OtherDraw)
- {
- SendClientMessage(playerid,-1,"* OTHER *");
- }
- TextDrawHideForPlayer(playerid, BoxDraw0);
- TextDrawHideForPlayer(playerid, LogoDraw);
- TextDrawHideForPlayer(playerid, LoginRegDraw);
- TextDrawHideForPlayer(playerid, WebDraw);
- TextDrawHideForPlayer(playerid, CreditsDraw);
- TextDrawHideForPlayer(playerid, QuitDraw);
- TextDrawHideForPlayer(playerid, OtherDraw);
- CancelSelectTextDraw(playerid);
- }
- return 1;
- }
- CMD:testscreen(playerid, params[])
- {
- TextDrawShowForPlayer(playerid, BoxDraw0);
- TextDrawShowForPlayer(playerid, LogoDraw);
- TextDrawShowForPlayer(playerid, LoginRegDraw);
- TextDrawShowForPlayer(playerid, WebDraw);
- TextDrawShowForPlayer(playerid, CreditsDraw);
- TextDrawShowForPlayer(playerid, QuitDraw);
- TextDrawShowForPlayer(playerid, OtherDraw);
- SelectTextDraw(playerid, 0xA3B4C5FF);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment