26.06.2012, 19:30
How can i add id number after my name??
It clearly explains all.
It clearly explains all.
public OnPlayerText(playerid, text[])
{
if(IsPlayerConnected(playerid))
{
new msg[256];
format(msg,sizeof(msg),"(%d){FFFFFF} %s",playerid,text);
SendPlayerMessageToAll(playerid,msg);
return 0;
}
return 1;
}
public OnPlayerText(playerid, text[])
{
new szChatString[ 150 ];
format( szChatString, sizeof( szChatString ), "(%d) %s: %s", playerid, PlayerName( playerid ), text );
SendClientMessageToAll( GetPlayerColor( playerid ), szChatString );
return 0;
}
stock PlayerName( playerid )
{
new pName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, pName, sizeof( pName ) );
return pName;
}
I believe you want something like this:-
pawn Код:
Regards, FalconX |