SA-MP Forums Archive
Anti Advertisement don't working on VIP Players - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anti Advertisement don't working on VIP Players (/showthread.php?tid=449330)



Anti Advertisement don't working on VIP Players - Blackazur - 08.07.2013

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;
	            }
	        }
	    }
	}



Re: Anti Advertisement don't working on VIP Players - DaRk_RaiN - 08.07.2013

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;
                }
        }



AW: Anti Advertisement don't working on VIP Players - Blackazur - 08.07.2013

it dont work.


Re: Anti Advertisement don't working on VIP Players - CaveDweller - 08.07.2013

What's wrong with it, Blackazur?


AW: Anti Advertisement don't working on VIP Players - Blackazur - 08.07.2013

"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?"


Re: Anti Advertisement don't working on VIP Players - CaveDweller - 08.07.2013

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?


AW: Anti Advertisement don't working on VIP Players - Blackazur - 08.07.2013

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


Re: Anti Advertisement don't working on VIP Players - CaveDweller - 08.07.2013

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.


AW: Anti Advertisement don't working on VIP Players - Blackazur - 08.07.2013

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;
        }



Re: Anti Advertisement don't working on VIP Players - CaveDweller - 08.07.2013

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