14.08.2011, 06:31
Heres The Code
pawn Код:
public OnPlayerText(playerid, text[])
{
if(IsIp(text))
{
SendClientMessage(playerid, COLOR_RED, "Server Advertisement is Not Allowed!");
SendClientMessage(playerid, COLOR_RED, "You Have Been Banned Reason: Server Advertisement");
BanEx(playerid, "Server Advertisement");
return 0;
}
if(GetPVarInt(playerid, "Muted") == 1)
{
SendClientMessage(playerid,COLOR_RED, "You cant Talk While on Class Selection");
return 0;
}
else if(GetPVarInt(playerid, "Muted") == 0)
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
GetPlayerColor(playerid);
format(text, 1024, "%s : {FFFFFF}[%d] {FFFFFF}%s", PlayerName, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), text);
}
return 0;
}