#define DIALOG_REP 3333
CMD:report(playerid, params[])
{
if(reportletilt[playerid] > 0) return Malibu(playerid, \"Le vagy tiltva reportolásról!\");
ShowPlayerDialog(playerid,DIALOG_REP,DIALOG_STYLE_INPUT,\"Report\",\"írd be a problémád\",\"OK\",\"Mégse\");
return 1;
}
Dialog
If(dialogid == DIALOG_REP)
{
If(strlen(inputtext) <1)
{
SendClientMessage(playerid,-1,\"valami nem stimmel\");
return 1;
}
new str[256];
format(rep[playerid], 128, inputtext);
format(str, 256, \"%s[%i] panasza: %s\", pName(playerid), playerid, rep[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo > 0 || as > 0)
{
if(reportki == 0) SendClientMessage(i, COLOR_YELLOW, str);
}
}
}
return 1;
}
Bocsi tabról vagyok...
Naplózva