Not showing Kick
#1

it's not showing the Kick, i have a 0.3x
not show dis
Код:
format(string, sizeof(string), "%s has been kicked (Failed Logins)",pname);
Here the code
Код:
if(FailLogin[playerid] == MAX_FAIL_LOGINS)
{
             new pname[MAX_PLAYER_NAME];
             SendClientMessage(playerid, 0xFFFFFFFF, TXT_WrongPassword);
             GetPlayerName(playerid, pname, sizeof(pname));
             new string[128];
	     format(string, sizeof(string), "%s has been kicked (Failed Logins)",pname);
             SendClientMessageToAll(-1, string);
             Kick(playerid);
}
Reply
#2

You need to make a timer because Kick processes before everything so you can't get the response when kicked.

Код:
if(FailLogin[playerid] == MAX_FAIL_LOGINS)
{
             new pname[MAX_PLAYER_NAME];
             SendClientMessage(playerid, 0xFFFFFFFF, TXT_WrongPassword);
             SetTimerEx("KickPlayer", 500, false, "i", playerid);
             GetPlayerName(playerid, pname, sizeof(pname));
             new string[128];
	     format(string, sizeof(string), "%s has been kicked (Failed Logins)",pname);
             SendClientMessageToAll(-1, string);
}
Then add a public somewhere in the script.
Код:
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
      Kick(playerid);
}
Reply
#3

God I hope you get banned. All you do is create a new topic for every single problem you have. You have 800+ posts and you can't even figure out why this piece of code would cause undesired results.

pawn Код:
while(a < 2) a-1;
You need to start SEARCHING before POSTING because every single one of your problems has been posted about several hundred times. You have 9 pages of new threads, each page shows 25 results, so 25*9 = 225. That's 225 threads that you've broken the forum rules on.

If it was up to me, you would of been gone by now.
Reply
#4

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
God I hope you get banned. All you do is create a new topic for every single problem you have. You have 800+ posts and you can't even figure out why this piece of code would cause undesired results.

pawn Код:
while(a < 2) a-1;
You need to start SEARCHING before POSTING because every single one of your problems has been posted about several hundred times. You have 9 pages of new threads, each page shows 25 results, so 25*9 = 225. That's 225 threads that you've broken the forum rules on.

If it was up to me, you would of been gone by now.
You sir, are a real cop
Reply
#5

pawn Код:
stock KickEx(playerid) { SetTimerEx("KickPlayer",1000,0,"d",playerid); }
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
   Kick(playerid);
}
now you can use KickEx(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)