Help with my Name Colour Script?
#3

I've made one for you, if the DIALOG ID number has conflicted, change the DIALOG ID number to 500 or number that you like.

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#define COLOR_BLUE 0x0000FFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_PURPLE 0x9900FFAA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIME 0x99FF00AA
#define COLOR_RED 0xEB000FFF
#define COLOR_WHITE 0xFFFFD5FF

#include <a_samp>
#include <zcmd>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Name Colour Script by CrystalMethod ");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print(" Name Colour Script by CrystalMethod has been unloaded!");
    print("--------------------------------------\n");
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Name Colour Script by CrystalMethod");
    print("----------------------------------\n");
}

#endif


CMD:nc(playerid,params[])
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Name colour selection", "Blue\nGrey\nGreen\nPurple\nCyan\nPink\nLime\nRed", "Choose", "Exit");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response)
    {
        switch(dialogid)
        {
            case 1:
            {
                switch(listitem)
                {
                    case 1: return SetPlayerColor(playerid, COLOR_BLUE), SendClientMessage(playerid, COLOR_BLUE, "Name colour has been changed. (The colour of this message is same with the name colour.");
                    case 2: return SetPlayerColor(playerid, COLOR_GREY), SendClientMessage(playerid, COLOR_GREY, "Name colour has been changed. (The colour of this message is same with the name colour.");
                    case 3: return SetPlayerColor(playerid, COLOR_GREEN), SendClientMessage(playerid, COLOR_GREEN, "Name colour has been changed. (The colour of this message is same with the name colour.");
                    case 4: return SetPlayerColor(playerid, COLOR_PURPLE), SendClientMessage(playerid, COLOR_PURPLE, "Name colour has been changed. (The colour of this message is same with the name colour.");
                    case 5: return SetPlayerColor(playerid, COLOR_CYAN), SendClientMessage(playerid, COLOR_CYAN, "Name colour has been changed. (The colour of this message is same with the name colour.");
                    case 6: return SetPlayerColor(playerid, COLOR_PINK), SendClientMessage(playerid, COLOR_PINK, "Name colour has been changed. (The colour of this message is same with the name colour.");
                    case 7: return SetPlayerColor(playerid, COLOR_LIME), SendClientMessage(playerid, COLOR_LIME, "Name colour has been changed. (The colour of this message is same with the name colour.");
                    case 8: return SetPlayerColor(playerid, COLOR_RED), SendClientMessage(playerid, COLOR_RED, "Name colour has been changed. (The colour of this message is same with the name colour.");
                }
            }
        }
    }
    return 1;
}
And download ZCMD here if you see this error.

Код:
C:\Documents and Settings\User\Desktop\0.3x script\filterscripts\color.pwn(16) : fatal error 100: cannot read from file: "zcmd"
Reply


Messages In This Thread
Help with my Name Colour Script? - by CrystalMethod - 21.04.2013, 04:47
AW: Help with my Name Colour Script? - by [AK]Nazgul - 21.04.2013, 05:06
Re: Help with my Name Colour Script? - by LeeXian99 - 21.04.2013, 05:45
Re: Help with my Name Colour Script? - by Pottus - 21.04.2013, 05:59
Re: Help with my Name Colour Script? - by kalanerik99 - 21.04.2013, 08:48
Re: Help with my Name Colour Script? - by Parker_Daley - 21.04.2013, 08:54
Re: Help with my Name Colour Script? - by LeeXian99 - 21.04.2013, 08:58
Re: Help with my Name Colour Script? - by Guest123 - 21.04.2013, 09:05
Re: Help with my Name Colour Script? - by Guest123 - 21.04.2013, 09:19
Re: Help with my Name Colour Script? - by CrystalMethod - 21.04.2013, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)