21.08.2014, 18:26
(
Последний раз редактировалось silenthill; 21.08.2014 в 19:52.
)
Try
https://sampforum.blast.hk/showthread.php?tid=403293
pawn Код:
public OnPlayerText(playerid, text[]) //This is called every time a player tries to type something, other than a command, such as when talking to other players
{
if(IsPlayerAdmin(playerid)) //If they are an admin, you can replace this with your own admin variable
{
new string[150], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string,sizeof(string),"[RCON ADMIN] %s: %d", name,playerid, text); //Editing the format and adding admin tag in front of name
SendClientMessageToAll(0xFFFF00FF, string); //Sends message to all
return 0; //Return false for sending custom chat, so it doesn't send your message twice
}
return 1; //Otherwise return 1 and send the message as normal
}