Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] Colors V1

$
0
0
Colors


Code


Code:

// Filterscript By TrexY //
// ALL RIGHT RESERVED ! © //
// If you are use this, please don't remove my credits //
// Respect ME //

/* Informations

Preparation time: 10-20 minutes.
Version: 0.3.7 [Working]
Which filterscript: [1]
Filterscript version: V1
Next update: None
Bugs: None

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~THANKS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*a_samp*

Author: SA-MP Team
Check it: http://www.sa-mp.com
________________________________________________________________________________
*ZCMD*

Author: Zeex
Check it : http://forum.sa-mp.com/showthread.php?t=91354
________________________________________________________________________________
*SAMP Community*

Author: SA-MP players -> Tutorials
Check it : http://www.forum.sa-mp.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Rights: All rights reserved ! ©
*/



#include <a_samp>
#include <zcmd> // Zeex
#include <fixchars> //
//
#define DIALOG_0 100
//

// Colors //

#define BLACK 0x000000FF //{000000}
#define WHITE 0xFFFFFFFF //{FFFFFF}
#define YELLOW 0xFFFF00FF //{FFFF00}
#define PALEYELLOW 0xFFFF80FF //{FFFF80}
#define GREEN 0x00FF00FF //{00FF00}
#define PINK 0xFF80FFFF //{FF80FF}
#define LIGHTGREEN 0x00FF80FF //{00FF80}
#define ORANGE 0xFF8000FF //{FF8000}
#define GRAY 0xC0C0C0FF //{C0C0C0}
#define Turquoise 0x00FFFFFF //{00FFFF}
#define RED 0xFF0000FF //{FF0000}
#define BLUE 0x0000FFFF //{0000FF}
#define LIGHTBLUE 0x0080FFFF //{0080FF}
#define GOLD 0xDED307FF //{DED307}
#define PURPLE 0x8E2FB7FF //{8E2FB7}
#define LIGHTGRAY 0xB0B0B0FF //{B0B0B0}
#define IDK 0xE10071FF //{E10071}

//
CMD:colors(playerid,params[])
{
ShowPlayerDialog(playerid, DIALOG_0, DIALOG_STYLE_LIST, "Colors By TrexY", "{00FF00}GREEN\n{0000FF}BLUE\n{8E2FB7}PURPLE\n{FF8000}ORANGE\n{FFFF00}YELLOW\n{FF0000}RED\n{DED307}GOLD\n{00FF80}LIGHTGREEN\n{00FFFF}Turquoise\n{FFFF80}PALE YELLOW\n{E10071}PURPLISH\n{00000F}BLACK\n{FFFFFF}WHITE\n{C0C0C0}GRAY", "OK!", "Cancel");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_0)
        {
            if(response)
            {
                if(listitem == 0)
                {
                        SetPlayerColor(playerid, GREEN);
                        SendClientMessage(playerid, GREEN, "New color is the name. ");
                }
                if(listitem == 1)
                {
                        SetPlayerColor(playerid, BLUE);
                        SendClientMessage(playerid, BLUE, "New color is the name. ");
                }
                if(listitem == 2)
                {
                          SetPlayerColor(playerid, PINK);
                          SendClientMessage(playerid, PINK, "New color is the name. ");
                }
                if(listitem == 3)
                {
                          SetPlayerColor(playerid, ORANGE);
                          SendClientMessage(playerid, ORANGE, "New color is the name. ");
                }
                if(listitem == 4)
                {
                          SetPlayerColor(playerid, YELLOW);
                          SendClientMessage(playerid, YELLOW, "New color is the name. ");
                }
                if(listitem == 5)
                {
                          SetPlayerColor(playerid, RED);
                          SendClientMessage(playerid, RED, "New color is the name. ");
                }
                if(listitem == 6)
                {
                          SetPlayerColor(playerid, GOLD);
                          SendClientMessage(playerid, GOLD, "New color is the name. ");
                }
                if(listitem == 7)
                {
                          SetPlayerColor(playerid, LIGHTGREEN);
                          SendClientMessage(playerid, LIGHTGREEN, "New color is the name. ");
                }
                if(listitem == 8)
                {
                          SetPlayerColor(playerid, Turquoise);
                          SendClientMessage(playerid, Turquoise, "New color is the name. ");
                }
                if(listitem == 9)
                {
                          SetPlayerColor(playerid, PALEYELLOW);
                          SendClientMessage(playerid, PALEYELLOW, "New color is the name. ");
                }
                if(listitem == 10)
                {
                          SetPlayerColor(playerid, IDK);
                          SendClientMessage(playerid, IDK, "New color is the name. ");
                }
                if(listitem == 11)
                {
                          SetPlayerColor(playerid, BLACK);
                          SendClientMessage(playerid, BLACK, "New color is the name. ");
                }
                if(listitem == 12)
                {
                          SetPlayerColor(playerid, WHITE);
                          SendClientMessage(playerid, WHITE, "New color is the name. ");
                }
                if(listitem == 13)
                {
                          SetPlayerColor(playerid, GRAY);
                          SendClientMessage(playerid, GRAY, "New color is the name. ");
                }
        }
        }else{
        SendClientMessage(playerid, 0x400000FF, "You have left the dialog menu.");
        }
return 1;
}

// The END //

Pictures


I think it unnecessary here.


Notes


Easy to Use
This is my first FS


Credits


Zeex ~ ZCMD
SA-MP ~ A_SAMP

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>