color help
#2

Код:
#include <a_samp>
#define Colours 4321


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" color by your nicoud");
    print("--------------------------------------\n");
    return 1;
}

forward Color();

public OnGameModeInit()
{
    SetTimer("Color",1000,false);
    return 1;
}

public Color()
{
    new playerid;
    ShowPlayerDialog(playerid, Colours, DIALOG_STYLE_LIST, "Choose your Color", "Red\nGreen\nBlue\nBlack\nAqua\nPink", "Pick", "Cancel");
    return 1;
}



public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == Colours)
    {
        switch(listitem)
        {
            case 0: SetPlayerColor(playerid, 0xFF0000FF);
            case 1: SetPlayerColor(playerid, 0x00FF00FF);
            case 2: SetPlayerColor(playerid, 0x0000FFFF);
            case 3: SetPlayerColor(playerid, 0xFFFFFFFF);
            case 4: SetPlayerColor(playerid, 0x00FFFFFF);
            case 5: SetPlayerColor(playerid, 0xFF00FFFF);
        }
    }
    return 1;
}
Reply


Messages In This Thread
color help - by nicoud - 13.10.2010, 22:02
Re: color help - by Hash [NL-RP] - 13.10.2010, 22:20
Re: color help - by [L3th4l] - 13.10.2010, 22:59
Re: color help - by nicoud - 13.10.2010, 23:31
Re: color help - by RenisiL - 14.10.2010, 11:30
Re: color help - by [UG]Scripter - 14.10.2010, 11:41

Forum Jump:


Users browsing this thread: 1 Guest(s)