SA-MP Forums Archive
.:How to block players with Tags?:. - 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: .:How to block players with Tags?:. (/showthread.php?tid=415587)



.:How to block players with Tags?:. - Gonsalo14 - 13.02.2013

I need help with that, How i block player to connect in my server with my community Tag?

eg:
Community Tag: [FxF]

i wanna block player who don't have my permission to have the tag


Can someone help me with that?
Thanks.


Re: .:How to block players with Tags?:. - CROStalker - 13.02.2013

Just Ban him -.-


Re: .:How to block players with Tags?:. - Gonsalo14 - 13.02.2013

Thanks a lot -_-
and if i'm not in the server?


Re: .:How to block players with Tags?:. - CROStalker - 13.02.2013

If you ban him he wont be able to come in server.


Re: .:How to block players with Tags?:. - Roko_foko - 13.02.2013

pawn Код:
public OnPlayerConnect(playerid)
{
    new Name[MAX_PLAYER_NAME+1],str[128];
    GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
    if(strfind(Name,"[FxF]")!=-1){
        format(str,126,"Player with %d has [FxF] tag in their name.",playerid);
        for(new i=0;i<MAX_PLAYERS;i++)if(IsPlayerAdmin(i))SendClientMessage(playerid,0xFF0000FF,str);
    }
//rest of code
}
This will show all admins ( rcon ) message when someone enters the server and has tag. With them, later, you can do as you wish.


Re: .:How to block players with Tags?:. - Gonsalo14 - 13.02.2013

Thanks Roko