The reson why i have this code is because players gets their console spammed with errors when the server strips weapons that they havn't got. (I got an for-statement earlier in my code where it strips weapons from 1-88.) And i couldn't find anything that i could use to check if the player had a specific item.
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("parse","OnParse") function OnParse(text) 	for a = 1, 88, 1 do							--a = item id 		for b = 1, game("sv_maxplayers"), 1 do		 --b = player id 			if text = ("strip "..b.." "..a) then 				return 1						 --normal parsing, ignore unknown cmds 			end 		end 	end end