Quote:
Originally Posted by DJloko
sistema de relatorio do LSLRP
basei-se nisso, atraves disso eu fiz o sistema de colocar a idade ao registrar no meu server.
OnPlayerCommandText
pawn Код:
if(strcmp(cmd, "/report", true) == 0) { if(IsPlayerConnected(playerid)) { ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"Report"," What would you like to report?","Report","Nevermind"); } return 1; }
OnDialogResponse
pawn Код:
if(response) { if(dialogid == REPORTMENU) { new str[160]; GetPlayerName(playerid, str, MAX_PLAYER_NAME); for (new i = 0; i < MAX_PLAYER_NAME; i++) if (str[i] == '_') str[i] = ' '; format(str, sizeof(str), "[ID:%d]%s Report: %s",playerid, str, (inputtext)); ABroadCast(COLOR_LIGHTBLUE,str,1); SendClientMessage(playerid, COLOR_YELLOW, "Your Report Message was sent to the Admins."); } }
espero ter ajudado
|
Vlw cara consegui getar o que eu escrevo obrigado