Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- + MY OLD PROJECTS +
- -------------------
- _________ _________ __________
- / _______| / _______| / _________|
- | / | / | /
- | | ______ | | ______ | |
- | | |___ | | | |___ | | |
- | | | | | | | | | |
- | |____/ | | |____/ | | \_________
- \__________/ eneration \__________/ aming \____________| reation
- _________
- | __ |
- | | | |
- | |__| | ____________ _ _
- | ______| _ | __________| |_| | |
- | |__________ _____| | _ _ | | | | ______
- | _______ | | ___ | | | | | | |_______ _ _____| | | _ |
- | | | | | | | | | | | | |_______ | | | | ___ | | |_| |
- | | | | | | | | _ | | | | | | | | | | | | | ____|
- | |_______| | | |___| |_| | | |_____| | _______| | | | | |___| | | |________
- |_____________| |___________| |_______ | |_________| |_| |_______| |__________|
- | | Creations
- _ | |
- | |_____| |
- |_________|
- + MY CURRENT PROJECT +
- ----------------------
- ________________
- \ /
- ___ \ / ___ _________ _____________
- \ \ \ / / / | ___ | | _______ |
- \ \ \ / / / | | | | | | | |
- \ \ \ / / / | | | | | | |__|
- \ \ \ / / / | |___| | | |
- \ \ \ / / / | _ _| | |
- \ \ \/ / / | | \ \ | | __
- \ \ / / | | \ \ | | | |
- \ \__/ / | | \ \____ | |_______| |
- \______/ ersus |__| \______| oleplay |_____________| reations
- ------------------------------
- By: Adnan Pasic (Denim/Pasa)
- Version: 1.0 - Beta
- Relase date: 27.12.2014
- YT video: http://goo.gl/BcWx2u
- IMGS: http://goo.gl/RLWIAv
- + Contact +
- FB: http://goo.gl/QPAOyP
- Skype: adnanpasic.1
- ------------------------------
- Calbacks:
- + ShowGuide(playerid, GuideID, Header[], LeftBlock[], Text1[], Text2[], Text3[])
- Note:
- ++ You need to create a stock function [stock OnGuideResponse(playerid, guideid, response)] in your GM/FS where you use
- the include, otherwise you will get an error (error 017: undefined symbol "OnGuideResponse")
- + When you use "ShowGuide" for the first time the variable "_GuideSite[playerid]" is set to 0 (for the sites)
- */
- new PlayerText:GuideTDs[MAX_PLAYERS][10],
- _GuideToggled[MAX_PLAYERS] = -1,
- _GuideSite[MAX_PLAYERS] = 0;
- public OnPlayerConnect(playerid) {
- _GuideToggled[playerid] = -1;
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
- if(newkeys == KEY_YES) OnGuideResponse(playerid, _GuideToggled[playerid], true);
- else if(newkeys == KEY_NO) OnGuideResponse(playerid, _GuideToggled[playerid], false);
- return 1;
- }
- stock ShowGuide(playerid, GuideID, naslov[], dodatak[], sastav[], sastav2[], sastav3[])
- {
- ToggleGuide(playerid, true);
- _GuideToggled[playerid] = GuideID;
- PlayerTextDrawSetString(playerid, GuideTDs[playerid][4],naslov);
- PlayerTextDrawSetString(playerid, GuideTDs[playerid][5],dodatak);
- PlayerTextDrawSetString(playerid, GuideTDs[playerid][6],sastav);
- PlayerTextDrawSetString(playerid, GuideTDs[playerid][8],sastav2);
- PlayerTextDrawSetString(playerid, GuideTDs[playerid][9],sastav3);
- return 1;
- }
- stock ToggleGuide(playerid, bool:toggle)
- {
- if(toggle == true && _GuideToggled[playerid] == -1) {
- GuideTDs[playerid][0] = CreatePlayerTextDraw(playerid, 1.000000, 120.000000, "_");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][0], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][0], 0.500000, 22.500005);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, GuideTDs[playerid][0], 1);
- PlayerTextDrawUseBox(playerid, GuideTDs[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, GuideTDs[playerid][0], 336860250);
- PlayerTextDrawTextSize(playerid, GuideTDs[playerid][0], 649.000000, 23.000000);
- GuideTDs[playerid][1] = CreatePlayerTextDraw(playerid, 8.000000, 125.000000, "~g~Shared guide");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][1], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][1], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][1], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][1], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][1], 1);
- GuideTDs[playerid][2] = CreatePlayerTextDraw(playerid, 129.000000, 120.000000, "_");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][2], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][2], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][2], 0.000000, 22.500000);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][2], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, GuideTDs[playerid][2], 1);
- PlayerTextDrawUseBox(playerid, GuideTDs[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid, GuideTDs[playerid][2], -1);
- PlayerTextDrawTextSize(playerid, GuideTDs[playerid][2], 127.000000, 12.000000);
- GuideTDs[playerid][3] = CreatePlayerTextDraw(playerid, 1.000000, 141.000000, "_");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][3], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][3], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][3], 80.000000, -0.250000);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][3], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][3], 0);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, GuideTDs[playerid][3], 0);
- PlayerTextDrawUseBox(playerid, GuideTDs[playerid][3], 1);
- PlayerTextDrawBoxColor(playerid, GuideTDs[playerid][3], -1);
- PlayerTextDrawTextSize(playerid, GuideTDs[playerid][3], 645.000000, 0.000000);
- GuideTDs[playerid][4] = CreatePlayerTextDraw(playerid, 137.000000, 125.000000, "Naslov");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][4], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][4], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][4], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][4], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][4], 1);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][4], 1);
- GuideTDs[playerid][5] = CreatePlayerTextDraw(playerid, 9.000000, 147.000000, "~b~Side bar");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][5], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][5], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][5], 0.320000, 0.899999);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][5], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][5], 1);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][5], 1);
- GuideTDs[playerid][6] = CreatePlayerTextDraw(playerid, 138.000000, 147.000000, "Text");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][6], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][6], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][6], 0.228000, 0.899999);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][6], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][6], 1);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][6], 1);
- GuideTDs[playerid][8] = CreatePlayerTextDraw(playerid, 138.000000, 204.000000, "Text2");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][8], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][8], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][8], 0.228000, 0.899999);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][8], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][8], 1);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][8], 1);
- GuideTDs[playerid][9] = CreatePlayerTextDraw(playerid, 138.000000, 261.000000, "Text3");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][9], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][9], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][9], 0.228000, 0.899999);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][9], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][9], 1);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][9], 1);
- GuideTDs[playerid][7] = CreatePlayerTextDraw(playerid, 7.000000, 303.000000, "~w~Press~r~ N~w~ to~n~close the guide!");
- PlayerTextDrawBackgroundColor(playerid, GuideTDs[playerid][7], 255);
- PlayerTextDrawFont(playerid, GuideTDs[playerid][7], 1);
- PlayerTextDrawLetterSize(playerid, GuideTDs[playerid][7], 0.280000, 1.000000);
- PlayerTextDrawColor(playerid, GuideTDs[playerid][7], -1);
- PlayerTextDrawSetOutline(playerid, GuideTDs[playerid][7], 0);
- PlayerTextDrawSetProportional(playerid, GuideTDs[playerid][7], 1);
- PlayerTextDrawSetShadow(playerid, GuideTDs[playerid][7], 1);
- for(new i = 0; i<10; i++) PlayerTextDrawShow(playerid,GuideTDs[playerid][i]);
- _GuideSite[playerid] = 0;
- }
- else if(toggle == true && _GuideToggled[playerid] > -1) {
- for(new i = 0; i<10; i++) PlayerTextDrawHide(playerid, GuideTDs[playerid][i]), PlayerTextDrawShow(playerid,GuideTDs[playerid][i]);
- }
- else if(toggle == false) {
- for(new i = 0; i<10; i++) {
- PlayerTextDrawDestroy(playerid, GuideTDs[playerid][i]);
- PlayerTextDrawHide(playerid, GuideTDs[playerid][i]);
- }
- _GuideToggled[playerid] = -1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement