/color command
#3

Simplest and easy and it is based on dialogs

pawn Код:
#include <a_samp>
#include <Zcmd>
#define COLOR_WHITE 0xFFFFFFAA

CMD:colour(playerid,params[])
{
        ShowPlayerDialog(playerid,16, DIALOG_STYLE_LIST, "{FFFFFF}Color Pickup:","Red\nYellow\nBlue\nPink\nWhite\nGrad\nSilver", "Ok", "Cancel");
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

if(dialogid == 16)
    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPlayerColor(playerid, 0xFF00FFF0);
                SendClientMessage(playerid,COLOR_WHITE,"You have set your name colour to Red");
            }
            if(listitem == 1)
            {
                SetPlayerColor(playerid, 0xFFFF00AA);
                SendClientMessage(playerid,COLOR_WHITE,"You have set your name colour to Yellow");
            }
            if(listitem == 2)
            {
                SetPlayerColor(playerid, 0x0000BBAA);
                SendClientMessage(playerid,COLOR_WHITE,"You have set your name colour to Blue");
            }
            if(listitem == 3)
            {
                SetPlayerColor(playerid, 0xFF66FFAA);
                SendClientMessage(playerid,COLOR_WHITE,"You have set your name colour to Pink");
            }
            if(listitem == 4)
            {
                SetPlayerColor(playerid, 0xFFFFFFAA);
                SendClientMessage(playerid,COLOR_WHITE,"You have set your name colour to White");
            }
            if(listitem == 5)
            {
                SetPlayerColor(playerid, 0xB4B5B7FF);
                SendClientMessage(playerid,COLOR_WHITE,"You have set your name colour to Grad");
            }
            if(listitem == 6)
            {
                SetPlayerColor(playerid, 0x00F5FFFF);
                SendClientMessage(playerid,COLOR_WHITE,"You have set your name colour to Silver");
            }
        }
        return 0;
}
return 0;
}
Reply


Messages In This Thread
/color command - by RaptorX72 - 03.01.2013, 12:57
Re: /color command - by Affan - 03.01.2013, 13:31
Re: /color command - by Gamer_007 - 03.01.2013, 15:00
Re: /color command - by RaptorX72 - 03.01.2013, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)