Okay, so basically to prevent some net messages I made from being abused via lua_run_cl, how would I check if a player has run a certain console command with a certain string?
Basically I want to do something like this(if a function HasRunCommandWithString existed)
--net message stuff util.AddNetworkString( "givewepon" ); net.Receive( "givewepon", function( len, ply ) if ply:HasRunCommandWithString( "lua_run_cl", "givewepon" ) then print("Cheater! You can't use that command.") return end ply:Give( "weapon_sg552test" ); end );