SA-MP Forums Archive
TAG Kick! - 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: TAG Kick! (/showthread.php?tid=547504)



TAG Kick! - KingPersona - 23.11.2014

Hello

i need help ,please!


can any tell me any idea, i want make if player is conect get kick , if he have Like This name , [TS]name or [NT]Niase

can't connect if he have TAG [OnPlayerConnect] : [..]

Thanks!


Re: TAG Kick! - KingPersona - 23.11.2014

Bumb


Re: TAG Kick! - M4D - 23.11.2014

i think it will be help you
(Using sscanf , By ******)
pawn Код:
public OnPlayerConnect(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(!sscanf(pname, "p<[>P<]>")) return Kick(playerid);
return 1;
}



Re: TAG Kick! - KingPersona - 23.11.2014

Quote:
Originally Posted by M4D
Посмотреть сообщение
i think it will be help you
(Using sscanf , By ******)
pawn Код:
public OnPlayerConnect(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(!sscanf(pname, "p<[>P<]>")) return Kick(playerid);
return 1;
}
Thanks bro, can u give me[ when he get kick [SendClientMessage , why kicked]
Like it : http://i.imgur.com/xVlPn0J.png , thx


Re: TAG Kick! - Beckett - 23.11.2014

Read this & This!


Re: TAG Kick! - M0HAMMAD - 23.11.2014

pawn Код:
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
    Kick(playerid);
    return 1;
}
//==================
if(!sscanf(pname, "p<[>P<]>"))
{
SendClientMessage(playerid,-1,"Don't Use This Name");
SetTimerEx("KickPlayer",500, false, "i", playerid);
}



Re: TAG Kick! - KingPersona - 25.11.2014

Quote:
Originally Posted by M0HAMMAD
Посмотреть сообщение
pawn Код:
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
    Kick(playerid);
    return 1;
}
//==================
if(!sscanf(pname, "p<[>P<]>"))
{
SendClientMessage(playerid,-1,"Don't Use This Name");
SetTimerEx("KickPlayer",500, false, "i", playerid);
}
thanks , +rep.