Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------------//
- //==========================Color menu By [RRS]ElectroX============================//
- //---------------------------------------------------------------------------------//
- #if defined ColorInfo
- Color Menu
- -Realizat de [RRS]ElectroX
- -Linii: 110
- -RNG-Servers.com
- -Facut pentru sa-mp.com
- -Testat de [XSS]Skull
- -Multumiri speciale:[RNG]DuReX
- •Multumim ca folositi ColorMenu•
- #endif
- #define FILTERSCRIPT
- //•Include-uri...
- #include <a_samp>
- #include <zcmd>
- //---------------------------------------------------------------------------------//
- //================================CULORI===========================================//
- //---------------------------------------------------------------------------------//
- #define Rosu 0xFF0000FF;
- #define Verde 0x00FF00FF;
- #define Albastru 0x0000FFFF;
- #define Alb 0xFFFFFFFF;
- #define Negru 0x000000C1;
- #define Aqua 0x00FFFFFF
- #define Galben 0xFFFF00FF;
- #define Roz 0xFF00FFFF;
- #define MesajIntampinare 0x0BBF6AA;
- //---------------------------------------------------------------------------------//
- #if defined FILTERSCRIPT
- //==========News===========//
- new Culorile;
- new Credite;
- //---------------------------------------------------------------------------------//
- //=============================CONSOLA=============================================//
- //---------------------------------------------------------------------------------//
- public OnFilterScriptInit()
- {
- print("\n======================================");
- print("Dialog de Culori By [RRS]ElectroX");
- print("----------Incarcat!--------------");
- print("========================================\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n======================================");
- print("Dialog de Culori By [RRS]ElectroX");
- print("-----------Scos!------------------");
- print("========================================\n");
- return 1;
- }
- #else
- #endif
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, 0x0BBF6AA, "•This server is using Color Menu by {FF0000} [RRS]ElectroX");
- }
- //•Exemplu comanda....
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/comanda", cmdtext, true, 10) == 0) //sau CMD: daca folositi ZCMD.
- {
- //Functia comenzii(SendClientMessage, CreateVehicle, SetPlayerHealth)
- }
- }
- //•Dialog-ul, comanda initiala
- CMD:culori(playerid, params[])
- {
- ShowPlayerDialog(playerid, Culorile, DIALOG_STYLE_LIST, "{FFFFFF}Colours", "{FF0000}•Rosu\n{008000}•Verde\n{0000FF}•Albastru\n{FFFFFF}•Alb\n{000000}•Negru\n{00FFFF}•Acvatic\n{FFFF00}•Galben\n{FF00FF}•Roz\n{FFFFFF}•Credite", "•Alege", "•Iesire");
- return 1;
- }
- //---------------------------------------------------------------------------------//
- //======================Credite====================================================//
- CMD:cmcredits(playerid, params[])
- {
- ShowPlayerDialog(playerid, Credite, DIALOG_STYLE_MSGBOX, "{FFFFFF}Color Menu {0000FF}Credits", "{FFFFFF}•Realizat de {008000}[RRS]ElectroX\n{FFFFFF}•Testat de {008000}[XSS]Skull\n{FFFFFF}•Multumiri Speciale:{008000}[RNG]DuReX {FFFFFF}si {008000}SA-MP.COM!\n{FFFFFF}•Multumim ca ati citit creditele {008000}ColorMenu", "•OK", "•Iesire");
- return 1;
- }
- //==============================================================================//
- //-----------------------Raspunsuri Dialog--------------------------------------//
- //==============================================================================//
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Culorile)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: SetPlayerColor(playerid, 0xFF0000FF);
- case 1: SetPlayerColor(playerid, 0x00FF00FF);
- case 2: SetPlayerColor(playerid, 0x0000FFFF);
- case 3: SetPlayerColor(playerid, 0xFFFFFFFF);
- case 4: SetPlayerColor(playerid, 0x000000C1);
- case 5: SetPlayerColor(playerid, 0x00FFFFFF);
- case 6: SetPlayerColor(playerid, 0xFFFF00FF);
- case 7: SetPlayerColor(playerid, 0xFF00FFFF);
- case 8: ShowPlayerDialog(playerid, Credite, DIALOG_STYLE_MSGBOX, "{FFFFFF}Color Menu {0000FF}Credits", "{FFFFFF}•Realizat de {008000}[RRS]ElectroX\n{FFFFFF}•Testat de {008000}[XSS]Skull\n{FFFFFF}•Multumiri Speciale:{008000}[RNG]DuReX {FFFFFF}si {008000}SA-MP.COM!\n{FFFFFF}•Multumim ca ati citit creditele {008000}ColorMenu", "•OK", "•Iesire");
- }
- }
- }
- return 1;
- }
- //=============================FINAL===================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement