[Ajuda]ID
#1

Quando o player escreve aparece o ID dele
Reply
#2

pawn Код:
//OnPlayerText

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

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..
Reply
#4

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

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
Reply
#6

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 ;*
Reply
#7

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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)