OnPlayerText
#2

pawn Код:
public OnPlayerText( playerid, text[] )
{
     new string[ 128 ], player_name[MAX_PLAYER_NAME];
     GetPlayerName(playerid, player_name, MAX_PLAYER_NAME);
     format(string, sizeof string, "%s (%d): %s", player_name, playerid, text);
     return SendClientMessageToAll( GetPlayerColor( playerid ), string );
}
This should work. You can change the "%s (%d): %s" to whatever you feel like! Also, change GetPlayerColor( playerid ) to -1 if you want the message to always be sent in white. Cheers!
Reply


Messages In This Thread
OnPlayerText - by Blackazur - 22.11.2013, 16:09
Re: OnPlayerText - by RajatPawar - 22.11.2013, 16:12
Re: OnPlayerText - by Konstantinos - 22.11.2013, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)