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)
- */
- #include <a_samp>
- #include <zcmd>
- #include "../Include/Guide.inc"
- //#include <Guide.inc>
- new GuideTestSides[][] = {
- "Site 1",
- "Site 2",
- "Site 3",
- "Site 4"
- };
- new GuideSidesText[][] = {
- "This is the text of the first site!",
- "Site two text is this",
- "3th site text",
- "This is the text of the last site.~n~I hope you like my guide system :)"
- };
- stock OnGuideResponse(playerid, guideid, response) {
- /*
- "playerid" - playerid of the player that has the guide showed
- "guideid" - is the id of the guide that you enter in the "ShowGuide" guide function
- "response" - will return false if you press the "N" button
- "response" - will return false if you press the "Y" button
- */
- if(!response) return ToggleGuide(playerid, false);
- if(guideid == 0) {
- _GuideSite[playerid]++;
- if(_GuideSite[playerid] >= sizeof(GuideTestSides)) _GuideSite[playerid] = 0;
- new Sites[150] = "~w~";
- for(new i = 0; i < sizeof(GuideTestSides); i++) {
- if(_GuideSite[playerid] == i) format(Sites, 150, "%s~r~%s~w~~n~", Sites, GuideTestSides[i]);
- else format(Sites, 150, "%s%s~n~", Sites, GuideTestSides[i]);
- }
- ShowGuide(playerid, 0, "Test guide", Sites, GuideSidesText[_GuideSite[playerid]], "", "");
- }
- return 1;
- }
- CMD:guide(playerid, params[]) {
- new Sites[150] = "~r~";
- for(new i = 0; i < sizeof(GuideTestSides); i++) {
- format(Sites, 150, "%s%s~w~~n~", Sites, GuideTestSides[i]);
- }
- ShowGuide(playerid, 0, "Test guide", Sites, GuideSidesText[0], "", "");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement