28.01.2017, 08:48
I guess you have already done what you want. just send this message when he connects, like
If I am wrong, please explain more. or show errors if there is any.
pawn Код:
enum p_data
{
personalmsg[128]//make sure you've added this array which makes it a string later
};
new PlayerInfo[MAX_PLAYERS][p_data];
public OnPlayerConnect(playerid)
{
new
str[126];
format(str, sizeof(str), "Your personal message is: %s", PlayerInfo[playerid][personalmsg]);
SendClientMessage(playerid, -1, str);
//or show him a dialog if you want.
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Personal Message", str, "Close", "");
return true;
}