12.01.2012, 09:33
pawn Код:
public OnPlayerText(playerid, text[])
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(GetPVarInt(playerid, "Muted") == 1)
{
SendClientMessage(playerid,COLOR_RED, "You cant talk while on Class Selection");
return 0;
}
else if(GetPVarInt(playerid, "Muted") == 0)
{
format(text, 1024, "%s: {FFFFFF}[%d] {FFFFFF}%s", PlayerName, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), text);
return 0;
}
ChatLog(playerid, text);
CreateBadword("Bitch");
return 0;
}