Not displaying
#1

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?
Reply
#2

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
Reply
#3

it not working and, it kicked the player who used the /kick command.
Reply
#4

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.
Reply
#5

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) !
Reply
#6

working. thanks rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)