18.03.2010, 12:16
How to Make [playerid] before the name on the chatbox
Thank You
Thank You
public OnPlayerText(playerid,text[]){
new msg[150];
format(msg,sizeof(msg),"[%d] %s",playerid,text);
SentPlayerMessageToAll(playerid,msg);
return 0;
}
Originally Posted by Kurence
pawn Код:
|
public OnPlayerText(playerid,text[]){
new msg[150];
format(msg,sizeof(msg),"[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,msg);
return 0;
}
public OnPlayerText(playerid,text[]){
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
new msg[128];
format(msg,sizeof(msg),"[%d] %s: %s",playerid,name,text);
SendPlayerMessageToAll(0xFFFFFF,msg);
return 0;
}
Originally Posted by Noredine
I'll test
|
if( text[ 0 ] ) { new idtext[ 128 ]; format( idtext, 128, "(%d) %s", playerid, text ); SendPlayerMessageToAll( playerid, idtext ); return 0; }