25.06.2012, 19:30
Example:
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128], name[MAX_PLAYER_NAME];
if(Adminvariable[playerid] >= 1)
{
format(string, sizeof(string), "[Admin] %s: %s", GetPlayerName(playerid, name, sizeof(name)), text);
SendClientMessageToAll(playerid, -1, string);
return 0;
}
return 1;
}