05.07.2013, 05:02
(
Последний раз редактировалось GhostPerk77; 05.07.2013 в 19:50.
)
Hello there SAMP Forum Member/Noob/Master/Dev/whatever you call yourself! I was really bored and I decided to make a Dialog Help List menu for those without creativity and without time to waste making a dialog box/menu. This one MAINLY focuses itself on the /help command. I had already searched on the Forums for an Filterscript LIKE this, but there isn't! So, it's not plagiarism. This is own custom handmade script from scratch. Enjoy it and edit your way
Download : https://www.dropbox.com/s/7eiaq3y1nn...log%20v1.1.pwn
Pictures
Code (just in case you don't have time to ACTUALLY DOWNLOAD IT AND EDIT IT which makes it easier, rather than a copy paster!)
Code (just in case you don't have time to ACTUALLY DOWNLOAD IT AND EDIT IT which makes it easier, rather than a copy paster!)
Код:
// This Filterscript was created by GhostPerk77 // FOR PUBLIC USEAGE --> YOU CAN EDIT THIS in the WAY YOU NEED IT! // Don't steal and REMAKE this project and JUDGE me for COPYRIGHT! // This is not a COPY FROM THE INTERNET. THIS IS THE ORIGINAL FILE. // ALL RIGHTS RESERVED TO GHOSTPERK77 ---> DON'T COPYRIGHT UNDER MY NAME! #include <a_samp> // All these COLOR CODES are from SAMP FORUMS thanks to : killer98p #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_BLUE 0x0000BBAA #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_ORANGE 0xFF9900AA #define COLOR_RED 0xAA3333AA #define COLOR_LIME 0x10F441AA #define COLOR_MAGENTA 0xFF00FFFF #define COLOR_NAVY 0x000080AA #define COLOR_AQUA 0xF0F8FFAA #define COLOR_CRIMSON 0xDC143CAA #define COLOR_FLBLUE 0x6495EDAA #define COLOR_BISQUE 0xFFE4C4AA #define COLOR_BLACK 0x000000AA #define COLOR_CHARTREUSE 0x7FFF00AA #define COLOR_BROWN 0XA52A2AAA #define COLOR_CORAL 0xFF7F50AA #define COLOR_GOLD 0xB8860BAA #define COLOR_GREENYELLOW 0xADFF2FAA #define COLOR_INDIGO 0x4B00B0AA #define COLOR_IVORY 0xFFFF82AA #define COLOR_LAWNGREEN 0x7CFC00AA #define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime #define COLOR_MIDNIGHTBLUE 0X191970AA #define COLOR_MAROON 0x800000AA #define COLOR_OLIVE 0x808000AA #define COLOR_ORANGERED 0xFF4500AA #define COLOR_PINK 0xFFC0CBAA // - Light light pink #define COLOR_SEAGREEN 0x2E8B57AA #define COLOR_SPRINGGREEN 0x00FF7FAA #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green #define COLOR_MEDIUMAQUA 0x83BFBFAA #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^ // End of the Line of Color Codes #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" GhostPerks77's Help Dialog and Assistance"); print("--------It's Currently Working----------\n"); return 1; } #endif public OnFilterScriptExit() { print("\n--------------------------------------"); print(" GhostPerks77's Help Dialog and Assistance"); print("---------It's shutting down-------------\n"); return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/help", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Help Menu and Assistance", "General\nAccount\nInformation\nClan\nHouse\nVehicle\nVIP/Donator", "Choose", "Exit"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) // Menu Help Dialog { if(!response) return SendClientMessage(playerid, 0xFFFFFFAA, "Selection Canceled!"); switch(listitem) { case 0: // General Help { SendClientMessage(playerid, COLOR_LIME, "------------------------------------------------------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "You need to setup whatever you want here to be as showing the specific help of the topic."); SendClientMessage(playerid, COLOR_LIME, "------------------------------------------------------------------------------------------------------------------"); return 1; } case 1: // Account Help { SendClientMessage(playerid, COLOR_CORAL, "-----------------------------------------------------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "You need to setup whatever you want here to be as showing the specific help of the topic."); SendClientMessage(playerid, COLOR_CORAL, "-----------------------------------------------------------------------------------------------------------------"); return 1; } case 2: // Information { SendClientMessage(playerid, COLOR_FLBLUE, "------------------------------------------------------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "You need to setup whatever you want here to be as showing the specific help of the topic."); SendClientMessage(playerid, COLOR_FLBLUE, "----------------------------------------------------------------------------------------------------------------"); return 1; } case 3: // Clan Help { SendClientMessage(playerid, COLOR_RED, "------------------------------------------------------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "You need to setup whatever you want here to be as showing the specific help of the topic."); SendClientMessage(playerid, COLOR_RED, "------------------------------------------------------------------------------------------------------------------"); return 1; } case 4: // House Help { SendClientMessage(playerid, COLOR_YELLOW, "---------------------------------------------------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "You need to setup whatever you want here to be as showing the specific help of the topic."); SendClientMessage(playerid, COLOR_YELLOW, "---------------------------------------------------------------------------------------------------------------"); return 1; } case 5: // Vehicle Help { SendClientMessage(playerid, COLOR_PINK, "-----------------------------------------------------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "You need to setup whatever you want here to be as showing the specific help of the topic."); SendClientMessage(playerid, COLOR_PINK, "-----------------------------------------------------------------------------------------------------------------"); return 1; } case 6: // VIP or Donator Help { SendClientMessage(playerid, COLOR_MAGENTA, "------------------------------------------------------------------------------------------------------------------"); SendClientMessage(playerid, COLOR_GREY, "You need to setup whatever you want here to be as showing the specific help of the topic."); SendClientMessage(playerid, COLOR_MAGENTA, "----------------------------------------------------------------------------------------------------------------"); return 1; } } } return 1; }
Sincerely yours, GhostPerk77.