All pastes #425778 Raw Edit

Something

public cpp v1 · immutable
·published 2007-04-05 18:23 UTC
rendered paste body
dcmd_kick(playerid, params[]){	if (IsPlayerAdmin(playerid))	{		new			pos;		if (!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos])		{			SendClientMessage(playerid, COLOR_WHITE, "USAGE: /kick [ID] [reason]");		}		else		{			new				kickid = strval(params),				str[64];			if (IsPlayerConnected(kickid))			{				Kick(kickid);				GetPlayerName(kickid, str, sizeof (str));				format(str, sizeof (str), "%s has been kicked for %s", str, params[pos]);				SendClientMessageToAll(COLOR_WHITE, str);			}		}	}	return 1;}