- เครดิต
- 254
- ความรู้
-
- เงิน $
-
- ความดี
-
|
if(strcmp(cmd, "/premium", true) == 0 || strcmp(cmd, "/p", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " ¤Ø³ÂѧäÁèä´éÅçͤÍÔ¹ !");
return 1;
}
if(PlayerInfo[playerid][pDonateRank] < 4)
{
SendClientMessage(playerid, 0xF6498AAA, "*¤ÓÊÑ觹ÕéÊÓËÃѺ Premium à·èÒ¹Ñé¹ !");
return 1;
}
if(PlayerInfo[playerid][pDonateRank] <= 0)
{
SendClientMessage(playerid, COLOR_GREY, " *¤Ø³äÁèÊÒÁÒöãªè ¤ÓÊÑè§ÃдѺ¹Õéä´é");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, 0x33CCFFAA, " ¤Ø³äÁèÊÒÁÒö¾Ù´¤ØÂä´é, à¾ÃÒФسà»ç¹ãºé !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[150];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/p)don [don chat]");
return 1;
}
for(new word=0; word < sizeof(BadWords); word++)
{
DisableWord(BadWords[word][0], result);
}
if(strfind(result,"1",true)!= -1 && strfind(result,"2",true)!= -1 && strfind(result,"2",true)!= -1 && strfind(result,".",true)!= -1
&& strfind(result,"1",true)!= -1 && strfind(result,"5",true)!= -1
|| strfind(result,"2",true)!= -1 && strfind(result,"0",true)!= -1 && strfind(result,"3",true)!= -1 && strfind(result,".",true)!= -1
&& strfind(result,"1",true)!= -1 && strfind(result,"4",true)!= -1
|| strfind(result,"2",true)!= -1 && strfind(result,"0",true)!= -1 && strfind(result,"2",true)!= -1 && strfind(result,".",true)!= -1
&& strfind(result,"1",true)!= -1 && strfind(result,"7",true)!= -1
|| strfind(result,"2",true)!= -1 && strfind(result,"1",true)!= -1 && strfind(result,"0",true)!= -1 && strfind(result,".",true)!= -1
&& strfind(result,"1",true)!= -1)
{
SendClientMessage(playerid,COLOR_GRAD1," ¨Ð¾Ù´ÇèÒäÃÍèÐ !");
PlayerInfo[playerid][pMuted] = 1;
format(string, 256, "AdmWarning: %s ä´é·Ó¡ÒÃâ¾Ê IP à«Ô¿àÇÍÃìáµè¶Ù¡Ãкº¡Ñ¹äÇé¨Ö§äÁèÊÒÁÒöâ¾Êä´é", sendername);
SendAdminMessage(COLOR_YELLOW, string);
return 1;
}
if(strfind(result,"122.155",true)!= -1 || strfind(result,"203.146",true)!= -1 || strfind(result,"202.172",true)!= -1)
{
SendClientMessage(playerid,COLOR_GRAD1," ¨Ð¾Ù´ÇèÒäÃÍèÐ !");
PlayerInfo[playerid][pMuted] = 1;
format(string, 256, "AdmWarning: %s ä´é·Ó¡ÒÃâ¾Ê IP à«Ô¿àÇÍÃì áµè¶Ù¡Ãкº¡Ñ¹äÇé¨Ö§äÁèÊÒÁÒöâ¾Êä´é", sendername);
SendAdminMessage(COLOR_YELLOW, string);
return 1;
}
if(strfind(result,"122 155",true)!= -1 || strfind(result,"203 146",true)!= -1 || strfind(result,"202 172",true)!= -1)
{
SendClientMessage(playerid,COLOR_GRAD1," ¨Ð¾Ù´ÇèÒäÃÍèÐ !");
PlayerInfo[playerid][pMuted] = 1;
format(string, 256, "AdmWarning: %s ä´é·Ó¡ÒÃâ¾Ê IP à«Ô¿àÇÍÃì áµè¶Ù¡Ãкº¡Ñ¹äÇé¨Ö§äÁèÊÒÁÒöâ¾Êä´é", sendername);
SendAdminMessage(COLOR_YELLOW, string);
return 1;
}
SpamStrings[playerid] += 3;
format(string, sizeof(string), "[~äÎ⫤ÃÒÊÃдѺ Premium~] %s (%d) ä´é¾Ù´ÇèÒ : %s", sendername, playerid, result);
SendClientMessageToAll(0x00F6F6AA, string);
}
return 1;
}
|
|