DKick Error. - 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: DKick Error. (
/showthread.php?tid=618091)
DKick Error. -
CannonBolt - 01.10.2016
I've a problem while using DelayKick well i don't see any messages before i kick the player
PHP код:
case LDialog:
{
new string[120];
if(!response) {
format(string,sizeof(string),"[SERVER]: %s(%d) has been kicked from the server.",GetName(playerid));
SendClientMessageToAll(-1,string);
DelayedKick(playerid);
return 1;
}
Should i send the client the message then sendclientmessagetoall next,because i'm sure sending it to all the player should see it too
Re: DKick Error. -
SyS - 01.10.2016
did take use of timers?
Re: DKick Error. -
JaKe Elite - 01.10.2016
What intervals did you used on the DelayedKick function?, Intervals like 500 or 950 is fine.
Re: DKick Error. -
CannonBolt - 01.10.2016
Ooooooooh,that's what i forget,thanks guys. all i did was
Код:
forward DelayedKick(playerid);
public DelayedKick(playerid)
{
Kick(playerid);
return 1;
}
forgot to set the timer where it happens/should i put it in the delaykick callback?
And why'd they change it? it should of just be the normal kick and it sends the message.
Re: DKick Error. -
JaKe Elite - 01.10.2016
I have researched this before and I think it is for "security reasons" to prevent the player to receive the server client updates or smh.
And yes, you should put the timer inside the callback (SetTimerEx)