[FilterScript] Simple ColorList Dialog
#1

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
Reply
#2

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

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
Reply
#4

uppu
Reply
#5

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

Good. =P
Reply
#7

Quote:

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

okay
Quote:

Good. =P

thx
Reply
#8

Not Bad =D
Reply
#9

uppp
Reply
#10

very useful to me
Reply
#11

upppppp
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)