20.01.2013, 12:24
Example:
Try that, it's untested but should work. You need SSCANF + ZCMD
pawn Код:
new id;
#define DIALOG_TALK 69
CMD:talk(playerid,params[])
{
if(sscanf(params,"u",id)) return SendClientMessage(playerid,-2,"USAGE: /talk [playerid]");
{
ShowPlayerDialog(playerid, DIALOG_TALK, DIALOG_INPUT, "Talk here","Enter your text below!","Send","Cancel");
}
return 1;
}
// Dialog response:
if(dialogid == DIALOG_TALK)
{
if(response)
{
SendClientMessage(id,-2,inputtext);
}
}