SA-MP Client Bug [Kick before sending messages] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: SA-MP Client Bug [Kick before sending messages] (
/showthread.php?tid=416201)
SA-MP Client Bug [Kick before sending messages] -
Saw® - 16.02.2013
Hey , I have a problem when a player disconnect like I have /kick command , the problem is when I do /kick [ID] [Reason] the player get kicked without seeing messages like (you are kicked by..) , I tried in LVDM too but doesn't work , anyone to help me ?
NB : I updated SA-MP Client to 0.3X
thanks.
Re: SA-MP Client Bug [Kick before sending messages] -
dugi - 16.02.2013
This isn't a bug see
https://sampforum.blast.hk/showthread.php?tid=411763
Re: SA-MP Client Bug [Kick before sending messages] -
Saw® - 16.02.2013
Thank you , So it isn't a bug , should I try this code byt Kye :
pawn Код:
forward KickPublic(playerid);
public KickPublic(playerid) { Kick(playerid); }
stock KickWithMessage(playerid, message[])
{
SendClientMessage(playerid, 0xFF4444FF, message);
SetTimerEx("KickPublic", 1000, 0, "d", playerid); //Delay of 1 second before kicking the player so he recieves the message
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/kickme", true) == 0)
{
//Kicks the player who the executed this command
KickWithMessage(playerid, "You have been kicked.");
return 1;
}
return 0;
}
I took this from the link you gave me .