SA-MP Forums Archive
[AJUDA] Id na frente do nome - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Id na frente do nome (/showthread.php?tid=339243)



[AJUDA] Id na frente do nome - jonathan_agv - 02.05.2012

Qual й a linha que se escreve? exemplo
The.JHow: (ID 0): Oi gente
Gabriel: (ID 1): Oi


entenderam


Re: [AJUDA] Id na frente do nome - Lуs - 02.05.2012

OnPlayerText


Re: [AJUDA] Id na frente do nome - Trigo - 02.05.2012

pawn Код:
// coloca no OnPlayerText

    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%s: (ID %d): %s", name, playerid, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // nгo esquece de colocar return 0...
Fonte: https://sampwiki.blast.hk/wiki/OnPlayerText