SA-MP Forums Archive
question about 0.0x - 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: question about 0.0x (/showthread.php?tid=484407)



question about 0.0x - ic3cr3am - 30.12.2013

Guys, why did samp, when you kick a player and want to send message, in 0.0x, it does not, but in 0.3e and lowwer, it does?


Re: question about 0.0x - Stereotype - 30.12.2013

noone understanded you.. about what 0.0x version are you talking samp 0.0x client never existed?


Respuesta: question about 0.0x - Xabi - 30.12.2013

You have to send the message and use a timer (like 250ms timer) to kick the player.


Re: question about 0.0x - kN1GhT - 30.12.2013

v 0.0x really??


Re: question about 0.0x - Konstantinos - 30.12.2013

pawn Код:
forward KickPlayer(playerid);
public KickPlayer(playerid) Kick(playerid);

stock KickEx(playerid, interval = 500) SetTimerEx("KickPlayer", interval, false, "i", playerid);
Use KickEx instead.


Re: question about 0.0x - SilentSoul - 30.12.2013

Set a timer on your kick command to make the player be able to receive message before Server Closed Connection thing , here's an example
pawn Код:
CMD:kick(playerid, params[])
{
    new id;
    if(sscanf.......);
    SendClientMessage(playerid,-1,"Admin %s has kicked you Reason %s....");
    SetTimer(id,300,"Kickmessage");//so he'll be able to see the message we made above^
}
forward kick(playerid);
public kick(playerid)
{
    Kick(playerid);
}
EDIT: Sorry guys i was typing


Re: question about 0.0x - Kyance - 30.12.2013

You need to set a timer for a kick.
For an example -

pawn Код:
forward KickTimer(playerid);
public KickTimer(playerid)
{
    Kick(playerid);
    return 1;
}
pawn Код:
//command kick
SetTimerEx("KickTimer", 1000, false, "i", id); //1 second, When the 1 second passes, the id(target) gets kicked, seeing the messages
EDIT: Ah, SilentSoul was faster


Re: Respuesta: question about 0.0x - iDuckling - 30.12.2013

Quote:
Originally Posted by Xabi
Посмотреть сообщение
You have to send the message and use a timer (like 250ms timer) to kick the player.
Exactly. Send the message and kick the player like 100ms after.


Re: question about 0.0x - ic3cr3am - 30.12.2013

yes, i know about using timer, but why, why could they not have leave it like 0.3e and lower?


Re: question about 0.0x - tyler12 - 30.12.2013

Quote:
Originally Posted by ic3cr3am
Посмотреть сообщение
yes, i know about using timer, but why, why could they not have leave it like 0.3e and lower?
Security issue.