Hi guys im in the works of creating a swep, The idea is when you are hit with it you are instantly perma banned with ulx.
I have been trying for about 3 hours now to try and work a solution and can simply not get it.
If anyone could give me a hand i would be so grateful and would teach me! i simply can’t get ( victim, inflictor, attacker ) to work at all for me tried loads of examples with it.
Here is my code below.
function PlayerDeath( victim, inflictor, attacker ) if inflictor:GetClass() =="spartan_kick" then ply:ConCommand( 'ulx ban "' victim '" ); end end