03.04.2015, 15:17
pawn Код:
else if(dialogid == DIALOG_TELLID)
{
if(response)
{
if(chatting[playerid] == 1) return SendClientMessage(playerid, -1, "{FF0000}You are already chatting with someone.");
if(!IsNumeric(inputtext)) return SendClientMessage(playerid, -1, "{FF0000}You entered an invalid playerid.");
new id = strval(inputtext);
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "{FF0000}Invalid player id.");
return 1;
}
}