Anti Advertisement don't working on VIP Players
#1

Hello, i have an problem the normal anti advertisement system working on normal players, but when an player have the vip tag the anti advertisement system will not work, how can i fix that?

Код:
	            if(i_numcount >= 8 && i_period >= 3) {
                    					if(pInfo[playerid][pVipLevel] >= 1)
    {
    	            ClearChat();
		            new reason[128], str[560];
		            new Admin[24] = "Katie";
					format(reason,sizeof(reason),"Advertisement %s",text);
					format(str,sizeof(str),"» {F81414}%s has been banned for Advertising.",PlayerName(playerid));
                    SendClientMessageToAll(-1,str);
					BanPlayer(playerid,reason,Admin);
					return 0;
			 }
	            
                    ClearChat();
		            new reason[128], str[560];
		            new Admin[24] = "Katie";
					format(reason,sizeof(reason),"Advertisement %s",text);
					format(str,sizeof(str),"» {F81414}%s has been banned for Advertising.",PlayerName(playerid));
                    SendClientMessageToAll(-1,str);
					BanPlayer(playerid,reason,Admin);
	                return 0;
	            }
	        }
	    }
	}
Reply
#2

pawn Код:
if(i_numcount >= 8 && i_period >= 3) {
                    ClearChat();
                    new reason[128], str[560];
                    new Admin[24] = "Katie";
                    format(reason,sizeof(reason),"Advertisement %s",text);
                    format(str,sizeof(str),"» {F81414}%s has been banned for Advertising.",PlayerName(playerid));
                    SendClientMessageToAll(-1,str);
                    BanPlayer(playerid,reason,Admin);
                    return 0;
             }
               
                    ClearChat();
                    new reason[128], str[560];
                    new Admin[24] = "Katie";
                    format(reason,sizeof(reason),"Advertisement %s",text);
                    format(str,sizeof(str),"» {F81414}%s has been banned for Advertising.",PlayerName(playerid));
                    SendClientMessageToAll(-1,str);
                    BanPlayer(playerid,reason,Admin);
                    return 0;
                }
        }
Reply
#3

it dont work.
Reply
#4

What's wrong with it, Blackazur?
Reply
#5

"Hello, i have an problem the normal anti advertisement system working on normal players, but when an player have the vip tag the anti advertisement system will not work, how can i fix that?"
Reply
#6

If you're going to be unhelpful, don't expect people to help you. What is the problem that is occurring? Does it simply have no effect on VIP players?
Reply
#7

It doenst work on vip players, they didnt get banned if they post an ip..
Reply
#8

pawn Код:
if(i_numcount >= 8 && i_period >= 3)
{
    ClearChat();
    new reason[128], str[560];
    new Admin[24] = "Katie";
    format(reason,sizeof(reason),"Advertisement %s",text);
    format(str,sizeof(str),"» {F81414}%s has been banned for Advertising.",PlayerName(playerid));
    SendClientMessageToAll(-1,str);
    BanPlayer(playerid,reason,Admin);
    return 0;
}
That will work fine. You don't need that if-statement.
Reply
#9

But i think because the VIP Tag it wont work:

Код:
			if(pInfo[playerid][pVipLevel] == 1)
			{
    	        if(pInfo[playerid][IsPlayerMuted] == 1) {
	            SendClientMessage(playerid,-1,""chat""COL_ADMINCMD" {8DD7FF}You Are Muted!");
			 }
			 			 	new string[128], playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "%s {FFFF00}(VIP){FFFFFF}: {FFF507}(%d) {FFFFFF}%s ",playername, playerid, text);
    SendClientMessageToAll(GetPlayerColor(playerid), string);
    return 0;
        }
Reply
#10

It'd be useful if you showed how your anti-advertisement system actually works in the first place
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)