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; // ignore the default text and send the custom one }
Ola Td Bem, Gostaria de saber como faзo para o player quando for registrar poder usar letras e numeros
por que so esta para usar numeros e coisa simples E se poderem me ajudar tbm estou usando o seguinte Code:
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; // ignore the default text and send the custom one } |
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(-1, textv2);
return 0; // ignore the default text and send the custom one
}
new textv2[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof (name)); format(textv2, sizeof (textv2), "{696969}%s: {BEBEBE}[%d] {BEBEBE}%s", name, playerid, text); SendPlayerMessageToAll(playerid, textv2); return 0; }
BOM QUERO DEIXAR O NICK O ID E O TEXT DE CORES FIXAS FICARIA ASSIM
Code:
new textv2[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof (name)); format(textv2, sizeof (textv2), "{696969}%s: {BEBEBE}[%d] {BEBEBE}%s", name, playerid, text); SendPlayerMessageToAll(playerid, textv2); return 0; } |
new textv2[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(textv2, sizeof (textv2), "{696969}%s: {BEBEBE}[%d] {BEBEBE}%s", name, playerid, text);
SendPlayerMessageToAll(-1, textv2);
return 0;
}
SendPlayerMessageToAll(-1, textv2);
Code:
SendPlayerMessageToAll(-1, textv2); |
public OnPlayerText(playerid, text[])
{
if(strlen(text) <= 60)
{
format(corda[playerid], 128, "%s diz: %s", gNome(playerid), text);
ProxDetector(playerid, texto[playerid], COR_BRANCO, 20.0);
SetPlayerChatBubble(playerid, texto[playerid], 0xAFC7FFFF, 20.0, 5000);
}
else
{
new Aux[60];
strmid(Aux, text, 0, 59);
format(texto[playerid], 86, "%s diz: %s", gNome(playerid), Aux);
ProxDetector(playerid, texto[playerid], COR_BRANCO, 20.0);
SetPlayerChatBubble(playerid, texto[playerid], 0xAFC7FFFF, 20.0, 5000);
format(texto[playerid], 62, ""CINZA" (( ... )) "BRANCO2"%s",text[60]);
ProxDetector(playerid, texto[playerid], COR_BRANCO, 20.0);
}
return 0;
}
public OnPlayerText(playerid, text[])
{
new textv2[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(textv2, sizeof (textv2), "{696969}%s: {BEBEBE}[%d] {BEBEBE}%s", name, playerid, text);
SendPlayerMessageToAll(playerid, textv2);
return 0;
}