About Kick(playerid)
#8

1. Took me only 15 minutes to figure out what you did ...whay?... in your code var. "kickedby" - is the person you trying to kick... when i read "kickedby" i think is the admin not the player...
2. I hope that when you test the function alone "responsiblePlayer & kickedPlayer" they will have the same id (responsiblePlayer == kickedPlayer)

Код:
/*
 * KickPlayer
 * responsiblePlayer	The player that is responsible for the event
 * kickedPlayer		The player that will be kicked from the server
 * reason		The reason for the kick
 */
stock KickPlayer(responsiblePlayer, kickedPlayer, reason[])
{
	new string[256];
	format(string, sizeof(string), "You've been kicked by %s. Reason: %s\n", GetName(responsiblePlayer), reason);
	SendClientMessage(kickedPlayer, COLOR_RED, string);
	
	return Kick(kickedPlayer);
}
Reply


Messages In This Thread
About Kick(playerid) - by Gilmar - 16.03.2014, 16:01
Re: About Kick(playerid) - by Calabresi - 16.03.2014, 16:02
Re: About Kick(playerid) - by CuervO - 16.03.2014, 16:03
Re: About Kick(playerid) - by Abagail - 16.03.2014, 16:05
Re: About Kick(playerid) - by Gilmar - 16.03.2014, 16:18
Re: About Kick(playerid) - by Abagail - 16.03.2014, 16:19
Re: About Kick(playerid) - by Gilmar - 16.03.2014, 16:22
Re: About Kick(playerid) - by Jessyy - 16.03.2014, 16:28
Re: About Kick(playerid) - by Calabresi - 16.03.2014, 16:28

Forum Jump:


Users browsing this thread: 3 Guest(s)