TAG Kick!
#1

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!
Reply
#2

Bumb
Reply
#3

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;
}
Reply
#4

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
Reply
#5

Read this & This!
Reply
#6

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);
}
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)