Getting the 2nd argument, and the following arguments after.

Eyy, so I’v been stuck on this for about nearly an hour now. And I was hoping I could get some assistance with this. I’m trying to get the 2nd Argument and the following (3rd,4th,5th,ect)
And I just can’t seem to get it to work. Any help would be highly appreciated.


	if ( IsValid( _match ) && _match:IsPlayer( ) ) then
		for k,v in pairs(player.GetAll()) do
			v:PlayerMsg(Color(0,200,200),_match:Nick() .. ' has been kicked by ' ..ply:Nick().. ' for ' ..table.concat(args,' ')) -- Right here 
		end
		--_match:Kick( table.concat(args[2],' ') )
	else
		ply:PlayerMsg(Color(200,0,0),'No player found!!')
	end

Right now, it shows "D3NNYM41C01M has kicked Bot02 for ‘Bot02 testing args again’

[lua]table.concat(args, ’ ', 2)[/lua]

table.concat (3rd argument: startPos)

[editline]26th April 2016[/editline]

Oh yeah, if you care about performance, declare the message contents once instead of for every player connected:

[lua]
if ( IsValid( _match ) && _match:IsPlayer( ) ) then
local packed = {
Color(0, 200, 200),
_match:Nick() … ’ has been kicked by ’ … ply:Nick() … ’ for ’ … table.concat(args, ’ ', 2)
}

for k,v in pairs (player.GetAll()) do
	v:PlayerMsg(unpack(packed)) -- Right here 
end

else
ply:PlayerMsg(Color(200, 0, 0), ‘No player found!!’)
end
[/lua]

Not like it’ll make much of a difference, but still good to do

Worked out great, thanks for the help.