SA-MP Forums Archive
[FilterScript] Simple ColorList Dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Simple ColorList Dialog (/showthread.php?tid=387535)



Simple ColorList Dialog - MarkzD - 25.10.2012

Its a simple fs,so

OnPlayerCommandText
PHP код:
if(!strcmp(cmdtext"/clist"true))
{
        
ShowPlayerDialog(playerid392DIALOG_STYLE_LIST"{00FF00}Color{FF0000}List""{FFFFFF}White\n{CCCCCC}Gray\n{00A90B}Green\n{00FF00}LightGreen\n{FF0000}Red\n{0015FF}Blue""Okay""Back");
        return 
1;

OnDialogResponse
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
        if(
response)
        {
                switch(
dialogid)
                {
                        case 
392// dialog id
                        
{
                                switch(
listitem)
                                {
                                        case 
0:SetPlayerColor(playerid0xFFFFFFFF); 
                                        case 
1:SetPlayerColor(playerid0xC0C0C0C8); 
                                        case 
2:SetPlayerColor(playerid0x008000C8); 
                                        case 
3:SetPlayerColor(playerid0x80FF00C8); 
                                        case 
4:SetPlayerColor(playerid0xFF0000C8); 
                                        case 
5:SetPlayerColor(playerid0x0000FFC8); 
                                }
                        }
                }
        }
        return 
1;

You can add new colors:
OnPlayerCommandText
PHP код:
if(!strcmp(cmdtext"/clist"true))
{
        
ShowPlayerDialog(playerid392DIALOG_STYLE_LIST"{00FF00}Color{FF0000}List""{FFFFFF}White\n{CCCCCC}Gray\n{00A90B}Green\n{00FF00}LightGreen\n{FF0000}Red\n{0015FF}Blue\n{FF00FF}YourColor""Okay""Back");
        return 
1;

OnDialogResponse
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
        if(
response)
        {
                switch(
dialogid)
                {
                        case 
392// dialog id
                        
{
                                switch(
listitem)
                                {
                                        case 
0:SetPlayerColor(playerid0xFFFFFFFF); 
                                        case 
1:SetPlayerColor(playerid0xC0C0C0C8); 
                                        case 
2:SetPlayerColor(playerid0x008000C8); 
                                        case 
3:SetPlayerColor(playerid0x80FF00C8); 
                                        case 
4:SetPlayerColor(playerid0xFF0000C8); 
                                        case 
5:SetPlayerColor(playerid0x0000FFC8); 
                                        case 
6:SetPlayerColor(playerid0xYOURCOLOR); 
                                }
                        }
                }
        }
        return 
1;

Download:
Solidfiles
Pastebin
--------------------------------------------------------------------
P.S NOTE "//This mod by Dmitry_Jj for Winrp" - in last week i write a rp mod, so this standart "new.pwn" with this note


Re: Simple ColorList Dialog - iJumbo - 25.10.2012

maybe for the black use a gray color or some like {FF0000}>{000000}Black{FF0000}<


Re: Simple ColorList Dialog - MarkzD - 25.10.2012

Quote:
Originally Posted by [ISS]jumbo
Посмотреть сообщение
maybe for the black use a gray color or some like {FF0000}>{000000}Black{FF0000}<
hmm, yeah_)
One second i redact the message


Re: Simple ColorList Dialog - MarkzD - 25.10.2012

uppu


Re: Simple ColorList Dialog - NoahF - 25.10.2012

On the next update you should definitely add some cooler/more colors. Otherwise, it's nice.


Re: Simple ColorList Dialog - jpeg - 25.10.2012

Good. =P


Re: Simple ColorList Dialog - MarkzD - 26.10.2012

Quote:

On the next update you should definitely add some cooler/more colors. Otherwise, it's nice.

okay
Quote:

Good. =P

thx


Re: Simple ColorList Dialog - []Allex[] - 26.10.2012

Not Bad =D


Re: Simple ColorList Dialog - MarkzD - 27.10.2012

uppp


Re: Simple ColorList Dialog - Anak - 27.10.2012

very useful to me


Re: Simple ColorList Dialog - MarkzD - 28.10.2012

upppppp