30.03.2010, 13:44
how i add id in the chat ?
mynam; id; and what i wirte ...
mynam; id; and what i wirte ...
Originally Posted by jamesbond007
yea like that helps alot to a newbie scripter
dont ask me i dont know |
public OnPlayerText(playerid, text[])
{
new
myArray[128];
GetPlayerName(playerid, myArray, MAX_PLAYER_NAME);
format(myArray, sizeof(myArray), "%s (%i): %s", myArray, playerid, text);
SendClientMessageToAll(0xFFFFFFFF, myArray);
return true;
}
Originally Posted by jamesbond007
dont ask me i dont know
|
Originally Posted by Don Correlli
pawn Код:
|
public OnPlayerText(playerid, text[])
{
new
myArray[128];
GetPlayerName(playerid, myArray, MAX_PLAYER_NAME);
format(myArray, sizeof(myArray), "%s (%i): %s", myArray, playerid, text);
SendClientMessageToAll(0xFFFFFFFF, myArray);
return false; //The original message will not be sent
}
SendClientMessageToAll(0xFFFFFFFF, myArray);
Originally Posted by mavtias
pawn Код:
The bold text defines the color. Use this ( http://www.gtavision.com/index.php?s...wnload&id=1974 ) to generate colors. |