//под инклуды
new To[MAX_PLAYERS]; new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
if(dialogid == 500)
{
if(response)
{
new str[1024];
format(str,1024,"Личное сообщение от %s /n%s",pName,inputtext);
ShowPlayerDialog(To[playerid],501,0,"ЛИЧНОЕ СООБЩЕНИЕ",str,"ок"," ");
}
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
To[playerid] = clickedplayerid;
new PlayerName[MAX_PLAYER_NAME];
new str[256];
GetPlayerName(clickedplayerid,PlayerName,sizeof(PlayerName));
format(str,256,"ЛИЧНОЕ СООБЩЕНИЕ ИГРОКУ %s",PlayerName);
ShowPlayerDialog(playerid,500,1,str,"Введите текст личного сообщения","send","отмена");
return 1;
}