Not displaying - 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 displaying (
/showthread.php?tid=575935)
Not displaying -
suni - 31.05.2015
today we were testing the /kick and /ban command. when a player got kicked/ban it does not send a message to the player who have been kick/ban. all it say "server closed the connection". i want it to send to the player before it say "server closed the connection". but im failing. anyone can solve this?
Re: Not displaying - justice96 - 31.05.2015
EDIT: There is two way to displaying message to the player.
Код:
SetTimerEx("balablabla", limit, false, "d", playerid);
Код:
forward balablabla(playerid);
public balablabla(playerid)
{
Kick(playerid);
return 1;
}
just an example
Re: Not displaying -
suni - 31.05.2015
it not working and, it kicked the player who used the /kick command.
Re: Not displaying -
Konstantinos - 31.05.2015
justice96 meant to say, you'll have to delay the kick in order for the messages/dialogs etc to be shown to the player.
Add the interval to about 500-1000 milliseconds and replace "playerid" with the variable you store the player's ID you want to kick/ban.
Re: Not displaying -
M0HAMMAD - 31.05.2015
you must create a Timer. like this:
pawn Код:
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
Kick(playerid);
return 1;
}
// In Your Code, Repalce Kick(playerid):
SetTimerEx("KickPlayer",500, false, "i", playerid);
you can use this command for Ban. but chagne Kick(playerid) to Ban(playerid) !
Re: Not displaying -
suni - 04.06.2015
working. thanks rep