02.02.2012, 14:50
SOLVED.
COMMAND:kick(playerid, params[]) { new string[127]; new targetid,String[156]; if(sscanf(params,"us", targetid,String)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /kick [playerid] [REASON]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "Invalide PlayerID"RED"(Player Is Not Connected)!"); if(targetid == playerid) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You Can't kick Yourself!"); if(String[0] <= 5) return SendClientMessage(playerid, COLOR_YELLOW, "Your Reason Must Be More Than 5 Characters"); new OtherN[MAX_PLAYER_NAME], PlayerN[MAX_PLAYER_NAME]; GetPlayerName(targetid, OtherN, sizeof(OtherN)); GetPlayerName(playerid, PlayerN, sizeof(PlayerN)); Kick(targetid); format(string, sizeof(string), "%s Was kicked By Admin %sReason: %s",PlayerN, OtherN,String); SendClientMessageToAll(COLOR_BRIGHTRED, string); printf("\"%s\"Was kicked By Admin \"%s\" Reason %s",PlayerN, OtherN,String); return 1; }