24.03.2013, 21:56
Quote:
|
Код:
public OnPlayerText(playerid, text[])
{
if(GetPVarInt(playerid, "SPS Muted") == 0)
{
SetPVarInt(playerid, "SPS Messages Sent", GetPVarInt(playerid, "SPS Messages Sent") + 1);
SetTimerEx("SPS_Remove_Messages_Limit", 1500, 0, "i", playerid);
if(GetPVarInt(playerid, "SPS Messages Sent") >= 4)
{
if(!(((GetPVarInt(playerid, "SPS Spam Warnings") + 2) == 3)))
{
SendClientMessage(playerid, -1, ""chat""COL_LIGHTBLUE" Please, dont spam/flood the server!");
}
SetPVarInt(playerid, "SPS Spam Warnings", GetPVarInt(playerid, "SPS Spam Warnings") + 1);
}
if(pInfo[playerid][pVipLevel] >= 1)
{
new string[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "[VIP]%s: {FFFFFF}(%d): %s ",playername, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}
if(pInfo[playerid][pLogged] == 1)
{
new stringbig[356];
if(pInfo[playerid][IsPlayerMuted] == 1) {
SendClientMessage(playerid,-1,""chat""COL_LIGHTGREEN" You are muted");
return 0;
}
format(stringbig,sizeof(stringbig),"(%d): %s",playerid, text);
SendPlayerMessageToAll(playerid,stringbig);
if(strfind(text, ":", true) != -1) {
new i_numcount, i_period, i_pos;
while(text[i_pos]) {
if('0' <= text[i_pos] <= '9') i_numcount ++;
else if(text[i_pos] == '.') i_period ++;
i_pos++;
}
if(i_numcount >= 8 && i_period >= 3) {
new reason[128], str[560];
new Admin[24] = "Anti-Cheat";
format(reason,sizeof(reason),"Advertisement %s",text);
format(str,sizeof(str),"» {F81414}%s has been banned for Advertising.",PlayerName(playerid));
SendClientMessageToAll(-1,str);
SendClientMessage(playerid,-1,""chat"""«| You're banned from Zombie Escape [ZE]! |»");
SendClientMessage(playerid,-1,""chat"""«| You Want To Get Unbanned? Post An Unban-Appeal On Our Website: www.Zombie-Opr.tk |»");
SendClientMessage(playerid,-1,""chat"""«| Press F8 To Take An Picture! |»");
new busted[18];
format(busted, sizeof(busted), "~r~BUSTED!");
GameTextForPlayer(playerid, busted, 10000000, 3);
BanPlayer(playerid,reason,Admin);
return 0;
}
}
}
}
else
{
SendClientMessage(playerid, -1, ""chat""COL_LIGHTBLUE" You are muted, you can't talk.");
return 0;
}
return 0;
}
|
Any sorry if I offended you I did not mean it, I will try reading it and reply here if I know how to help you or not.
( I will edit this message )
EDIT: I really don't know what I'm doing here but try closing a bracket before this line: if(pInfo[playerid][pVipLevel] >= 1)


