[DUVIDA]Como faзo para Getar...
#3

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.

pawn Код:
#define REPORTMENU 1341
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
Reply


Messages In This Thread
[DUVIDA]Como faзo para Getar... - by TiagoPS - 20.08.2010, 13:28
Re: [DUVIDA]Como faзo para Getar... - by DartakousLien - 20.08.2010, 13:40
Re: [DUVIDA]Como faзo para Getar... - by TiagoPS - 21.08.2010, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)