07.08.2014, 18:02
Код:
//==============================================================================
// Player Text
//==============================================================================
public OnPlayerText(playerid, text[])
{
new pChat[128], string[128], ctime, PText[256];
//--------------------------------------------------------------------------
//Anti Advertising
//--------------------------------------------------------------------------
if(GoIP(text) && !IsPlayerAdmin(playerid))
{
//----------------------------------------------------------------------
SendClientMessage(playerid, orange, "You have been {11FF00}Banned{FF9900} for advertising an IP Address!");
SendClientMessage(playerid, orange, "If you think it was an mistake, visit {11FF00}http://ufs.createaforum.com/unban-requests/{FF9900} for Unban!");
//----------------------------------------------------------------------
return BanEx(playerid, "(IP Ads)");
}
//--------------------------------------------------------------------------
// Block CapsLock
//--------------------------------------------------------------------------
if(AccInfo[playerid][Caps] == 1)
{
UpperToLower(text);
}
//--------------------------------------------------------------------------
// Vip Chat
//--------------------------------------------------------------------------
if(text[0] == '!' && AccInfo[playerid][pVip] >= 3)
{
//----------------------------------------------------------------------
format(pChat, 128, "VIP{00FF00} %s: {00FF00}%s", PlayerName2(playerid),text[1]);
MessageToPlayerVIP(orange, pChat);
//----------------------------------------------------------------------
//SaveIn("ChatVipLog",pChat);
return 0;
}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
if(text[0] == '!' && AccInfo[playerid][pVip] >= 3)
{
//----------------------------------------------------------------------
format(pChat, 128, "VIP{00FF00} %s: {00FF00}%s", PlayerName2(playerid),text[1]);
MessageToPlayerVIP(orange, pChat);
//----------------------------------------------------------------------
//SaveIn("ChatVipLog",pChat);
return 0;
}
//--------------------------------------------------------------------------
// Administration Chat
//--------------------------------------------------------------------------
if(text[0] == '@' && AccInfo[playerid][Level] >= 1)
{
//----------------------------------------------------------------------
format(pChat, 128, "Admin {00FF00} %s: {00FF00}%s", PlayerName2(playerid),text[1]);
MessageToAdmins(orange, pChat);
//----------------------------------------------------------------------
SaveIn("AdmChatLog", pChat);
return 0;
}
//--------------------------------------------------------------------------
//Clan's Chat
/*/--------------------------------------------------------------------------
if(text[0] == '$')
{
//----------------------------------------------------------------------
format(pChat, 128, "Clan Chat: {FF4400} %s: {15FF00}%s",PlayerName2(playerid), text[1]);
SendMessageToClanMembers(playerid, orange, pChat);
//----------------------------------------------------------------------
return 0;
}
*///--------------------------------------------------------------------------
//BRB/AFK System
//--------------------------------------------------------------------------
if(AccInfo[playerid][BRBSts] == 1)
{
GameTextForPlayer(playerid, "~w~Use ~g~/Back~w~ to return", 6000, 4);
return 0;
}
//--------------------------------------------------------------------------
//Anti-Spam
//------------------------------------------------------------------------

