11.09.2011, 16:26
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
ShowPlayerDialog(playerid,9999,DIALOG_STYLE_INPUT,"MP","Digite seu texto abaixo.","Ok","Fechar");
SetPVarInt(playerid, "ID", clickedplayerid);
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 9999)
{
new string[128];
format(string,sizeof(string),"%s diz: %s",PlayerName(playerid),strlen(inputtext));
SendClientMessage(GetPVarInt(playerid, "ID"),VERDE,string);
return 1;
}
return 1;
}