How Can i change the Color
#2

You would use Hexadecimal colors wrap them in { } and add them in the ShowPlayerDialog

Example
pawn Код:
public OnPlayerLogin(playerid)
{
    new westring[124];
    if(fexist(UserPath(playerid)))
    {
        format(westring,sizeof(westring),"{FDC502}Welcome back, {FFFFFF}%s",GetName(playerid));
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,westring,"Type your password\r\n below to login.","Login","Quit");
    }
    else
    {
        format(westring,sizeof(westring),"{FDC502}Welcome, {FFFFFF}%s",GetName(playerid));
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,westring,"Type your password below\r\n to register an account.","Register","Quit");
    }
}
Reply


Messages In This Thread
How Can i change the Color - by thesocialworld - 17.03.2012, 12:15
Re: How Can i change the Color - by ReneG - 17.03.2012, 12:20
Re: How Can i change the Color - by thesocialworld - 17.03.2012, 12:22
Re: How Can i change the Color - by ReneG - 17.03.2012, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)