Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- new Text:Box1,Text:Box2,Text:Caract,Text:Nov,Text:Creditos;
- #define Creditos_Dialog 01
- #define Nov_Dialog 02
- #define Dialog ShowPlayerDialog
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("-===============================-");
- print("Starting script - developers: NONE");
- print("-===============================-");
- return 1;
- }
- #else
- #endif
- public OnGameModeInit()
- {
- Box1 = TextDrawCreate(510.000000, 159.000000, "_");
- TextDrawBackgroundColor(Box1, 255);
- TextDrawFont(Box1, 1);
- TextDrawLetterSize(Box1, 0.500000, 17.000000);
- TextDrawColor(Box1, -1);
- TextDrawSetOutline(Box1, 0);
- TextDrawSetProportional(Box1, 1);
- TextDrawSetShadow(Box1, 1);
- TextDrawUseBox(Box1, 1);
- TextDrawBoxColor(Box1, 75);
- TextDrawTextSize(Box1, 160.000000, 0.000000);
- Box2 = TextDrawCreate(510.000000, 159.000000, "_");
- TextDrawBackgroundColor(Box2, 255);
- TextDrawFont(Box2, 1);
- TextDrawLetterSize(Box2, 0.500000, 3.000000);
- TextDrawColor(Box2, -1);
- TextDrawSetOutline(Box2, 0);
- TextDrawSetProportional(Box2, 1);
- TextDrawSetShadow(Box2, 1);
- TextDrawUseBox(Box2, 1);
- TextDrawBoxColor(Box2, 75);
- TextDrawTextSize(Box2, 160.000000, 0.000000);
- Caract = TextDrawCreate(250.000000, 160.000000, "Features");
- TextDrawBackgroundColor(Caract, 255);
- TextDrawFont(Caract, 2);
- TextDrawLetterSize(Caract, 0.400000, 2.000000);
- TextDrawColor(Caract, -1);
- TextDrawSetOutline(Caract, 0);
- TextDrawSetProportional(Caract, 1);
- TextDrawSetShadow(Caract, 1);
- Nov = TextDrawCreate(200.000000, 239.000000, "Developers");
- TextDrawBackgroundColor(Nov, 255);
- TextDrawFont(Nov, 3);
- TextDrawLetterSize(Nov, 0.600000, 2.099999);
- TextDrawColor(Nov, 0xBFFF1C);
- TextDrawSetOutline(Nov, 0);
- TextDrawSetProportional(Nov, 1);
- TextDrawSetShadow(Nov, 1);
- Creditos = TextDrawCreate(370.000000, 239.000000, "News");
- TextDrawBackgroundColor(Creditos, 255);
- TextDrawFont(Creditos, 3);
- TextDrawLetterSize(Creditos, 0.600000, 2.099999);
- TextDrawColor(Creditos, 0xBFFF1C);
- TextDrawSetOutline(Creditos, 0);
- TextDrawSetProportional(Creditos, 1);
- TextDrawSetShadow(Creditos, 1);
- TextDrawSetSelectable(Nov, true);
- TextDrawSetSelectable(Creditos, true);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/newsv", cmdtext, true, 10) == 0)
- {
- TextDrawShowForPlayer(playerid, Caract);
- TextDrawShowForPlayer(playerid, Nov);
- TextDrawShowForPlayer(playerid, Creditos);
- TextDrawShowForPlayer(playerid, Box1);
- TextDrawShowForPlayer(playerid, Box2);
- SelectTextDraw(playerid, 0xA3B4C5FF);
- return 1;
- }
- return 0;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(_:clickedid != INVALID_TEXT_DRAW)
- {
- if(clickedid == Nov)
- {
- Dialog(playerid, Nov_Dialog,DIALOG_STYLE_MSGBOX,"Server News","News:\n\n {BFFF1C}Added new mappings for the server\n\nAdded new jobs and more factions","Accept","Close");
- }
- else if(clickedid == Creditos)
- {
- Dialog(playerid, Creditos_Dialog,DIALOG_STYLE_MSGBOX,"Developers","Developers:\n\n{BFFF1C} CEO & Founder Urrutia and ZumeZero\n\nThank you for entering the server","Accept","Close");
- }
- TextDrawHideForPlayer(playerid, Box1);
- TextDrawHideForPlayer(playerid, Box2);
- TextDrawHideForPlayer(playerid, Nov);
- TextDrawHideForPlayer(playerid, Caract);
- TextDrawHideForPlayer(playerid, Creditos);
- CancelSelectTextDraw(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment