09.10.2011, 20:51
Topo GM
Em OnPlayerCommandText
Em OnDialogResponse:
Ta ae fei por min MSM
PHP код:
#define relatoMB 156
PHP код:
if(strcmp(cmd, "/relato", true) == 0)
{
ShowPlayerDialog(playerid, relatoMB, DIALOG_STYLE_INPUT, "Sistema de Relatorio by MatriXBorn", "Vocк abriu o Sistema de Relatorio em Dialog do MatriXBorn", "Enviar", "Cancelar");
return 1;
}
PHP код:
new string[128];
new result[128];
new sendername[MAX_PLAYER_NAME];
if(dialogid == relatoMB)
{
SendClientMessage(playerid, COLOR_YELLOW, "Sistema de relatorio Feiot por MatriXBorn Relato funfando);
format(string, sizeof(string), "sistema relato MatriXBorn [Relato] %s(%d) relatou: %s", sendername,playeri(result));
ABroadCast(-1,string,1);
format(string, sizeof(string), "Sistema de relato MatriXBorn [Relato] %s(%d) relatou: %s", sendername,playerid,(result));
SendClientMessage(playerid,-1, string);
}
return 1;
}