Not showing 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: Not showing Kick (
/showthread.php?tid=443397)
Not showing Kick -
DerickClark - 11.06.2013
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);
}
Re: Not showing Kick -
feartonyb - 11.06.2013
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);
}
Re: Not showing Kick -
Scenario - 11.06.2013
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.
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.
Re: Not showing Kick -
RALL0 - 11.06.2013
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.
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
Re: Not showing Kick -
DaTa[X] - 11.06.2013
pawn Код:
stock KickEx(playerid) { SetTimerEx("KickPlayer",1000,0,"d",playerid); }
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
Kick(playerid);
}
now you can use KickEx(playerid);