Dialog
#1

How can i add a player name

and a colour to a dialog
Reply
#2

pawn Код:
new giveplayer[MAX_PLAYER_NAME];
new string[152];

GetPlayerName(playerid, giveplayer, MAX_PLAYER_NAME);
format(string, 152, "{FFFFFF}Welcome\n{FF0000}%s\n{FFFFFF}to\n{FFFFFF}our\n{FFFFFF}Server\n{00FF00}Click on the {FFFFFF}'OK' {00FF00}Button to continue", giveplayer);

ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Welcome", string,"OK", "Cancel")

Example colour embedded.

Your Code for a code 0xFFFFFFFF
From this code you will use the 6 characs behind the 0x

So in this case FFFFFF (is for a White color)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)