17.03.2012, 12:20
You would use Hexadecimal colors wrap them in { } and add them in the ShowPlayerDialog
Example
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");
}
}