Kick is dominant
#1

Hello guys
I am new here and quite a beginner in pawn.
I am trying to create a kick command and BEFORE the player gets kicked I want him to see a message.
The problem is that the message which SHOULD be shown, doesn't show up, BUT gets kicked.
And YES I did pay attention to put the line which shows the person the message ABOVE the kick-function.

Here is my code:
Код:
dcmd_kick(playerid, params[])
{
	new pid, reason[128], name[MAX_PLAYER_NAME], done[128];
	if(sscanf(params, "uz", pid, reason)) return SendClientMessage(playerid, rot, "ERROR: /kick [ID/Name] [Grund]");
	GetPlayerName(pid, name, sizeof(name));
	format(done, sizeof(done), "%s wurde gekickt. Grund: %s", name, reason);
	SendClientMessage(pid, rot, done);
	Kick(pid);
	return 1;
}
And yes I am aware, that i can kick myself. This is wanted because I have no test-subject.
Reply


Messages In This Thread
Kick is dominant - by eSPeZet - 02.08.2017, 19:51
Re: Kick is dominant - by grymtn - 02.08.2017, 19:57
Re: Kick is dominant - by eSPeZet - 02.08.2017, 20:04
Re: Kick is dominant - by grymtn - 02.08.2017, 20:13
Re: Kick is dominant - by eSPeZet - 02.08.2017, 20:21
Re: Kick is dominant - by Crystallize - 02.08.2017, 20:24
Re: Kick is dominant - by grymtn - 02.08.2017, 20:26
Re: Kick is dominant - by TopShooter2 - 02.08.2017, 20:28
Re: Kick is dominant - by eSPeZet - 02.08.2017, 20:41
Re: Kick is dominant - by Vince - 02.08.2017, 20:55

Forum Jump:


Users browsing this thread: 1 Guest(s)