Here is what I got:
function GM:PlayerDisconnected( ply ) PrintMessage( HUD_PRINTTALK, ply:GetName() .. " has left the server.") local reason = "AVOIDING DEATH, 10 minute Ban." local plyer = ply:Nick() local command = "ulx ban " ..plyer.. " 10 " ..reason if ply:Team()== TEAM_DEATH then game.ConsoleCommand(command) end end
Error, bad server command ulx ban Swifty 10 AVOIDING DEATH, 10 minute Ban.
I think I need to get quotes around the player name and reason but I am not sure how. Or I may be taking a really bad approach I am not sure, either way time to go to bed, not making progress anymore!
Any help would be appreciated!