OnplayerText..
#1

How can I achieve this format in the chat ?.
pawn Код:
0 SnoopyTheKill: Hello Forum Samp!.   //[ID] [Name] [Text]
I tried as well but does not come out as i want, what someone can help me ?
pawn Код:
public OnPlayerText(playerid, text[])
{
if(IsPlayerConnected(playerid))
{
new chat[ 128 ], Nombre[ 24 ];
GetPlayerName(playerid, Nombre, sizeof(Nombre));

format(chat, sizeof(chat), "{FFFFFF}%d %s: {FFFFFF}%s",playerid,Nombre,text);
SendClientMessageToAll(GetPlayerColor(playerid), chat);
SetPlayerChatBubble(playerid, text, GetPlayerColor(playerid), 30.0, 50000);
return 0;
}
return 1;
}
Someone help me ? Thanks
Reply


Messages In This Thread
OnplayerText.. - by Snoopythekill - 24.04.2014, 08:31
Re: OnplayerText.. - by RajatPawar - 24.04.2014, 08:33
Respuesta: Re: OnplayerText.. - by Snoopythekill - 24.04.2014, 08:39
Re: Respuesta: Re: OnplayerText.. - by RajatPawar - 24.04.2014, 08:40
Respuesta: Re: Respuesta: Re: OnplayerText.. - by Snoopythekill - 24.04.2014, 08:57
Re: OnplayerText.. - by Konstantinos - 24.04.2014, 10:22
Respuesta: Re: OnplayerText.. - by Snoopythekill - 24.04.2014, 23:08

Forum Jump:


Users browsing this thread: 2 Guest(s)