SA-MP Forums Archive
[Ajuda]ID - 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 (/showthread.php?tid=355942)



[Ajuda]ID - [BcSTotty_Munson - 01.07.2012

Quando o player escreve aparece o ID dele


Re: [Ajuda]ID - .FuneraL. - 01.07.2012

pawn Код:
//OnPlayerText

new String[256];
format(String, sizeof(String), "[ID:%d]: %s", playerid, text);
SendClientMessageToAll(-1, String);
return 0;
Tenta aн =)


Re: [Ajuda]ID - [BcSTotty_Munson - 01.07.2012

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
pawn Код:
//OnPlayerText

new String[256];
format(String, sizeof(String), "[ID:%d]: %s", playerid, text);
SendClientMessageToAll(-1, String);
return 0;
Tenta aн =)
Vlw =) funfou aqui..


Re: [Ajuda]ID - [BcSTotty_Munson - 01.07.2012

Funfou beleza, mas nгo aparece o nome do player D:


Re: [Ajuda]ID - Diogo123 - 01.07.2012

edit
pawn Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0;
}
tenta se nгo funfar me fala


Re: [Ajuda]ID - Ricop522 - 01.07.2012

pawn Код:
new string[80];
GetPlayerName(playerid, string, 80);
format(string, sizeof(string), "[ID:%d] %s: %s", playerid, string, text);
SendClientMessageToAll(-1, string);
Quote:

[ID:0] Ricop522: eae tudo blz?



Espero ter sido util ;*


Re: [Ajuda]ID - [BcSTotty_Munson - 01.07.2012

Galera vlw ajuda ai mais o meu foi assim descobrir sosinho D: >>

pawn Код:
new String[256];
    format(String, sizeof(String), "%s [ID:%d]: %s",PlayerName(playerid),playerid, text);
    SendClientMessageToAll(-1, String);
    return 0;