its like:
player 1 joined to game (usgn 1)
player 2 joined to game (usgn again 1)
player 2 kicked...
usgns={} function check_usgn(usgn) 	if usgn==0 then 		return false 	end 	for _,id in pairs(player(0,"table")) do 		if id==usgn then 			return true 		end 	end 	return false end addhook("join","_join") function _join(id) 	if player(id,"usgn")~=0 then 		if check_usgn(player(id,"usgn"))==false then 			table.insert(usgns,player(id,"usgn")) 		else 			parse('kick '..id..' "Two players with the same USGN number are not allowed to play!"') 		end 	end end addhook("leave","_leave") function _leave(id) 	if player(id,"usgn")~=0 then 		for n,ID in pairs(usgns) do 			if ID==player(id,"usgn") then 				table.remove(usgns,n) 			end 		end 	end end
_Parr={} function in_table(t,k) for _,v in pairs(k) do if(_Parr[v] ~= nil) then if (v==t) then return true end end _Parr[v] = _ end return false end addhook("join","on_join") function on_join(p) local U_ID=player(p,"usgn") local _P={[1]=player(p,"exists"),[2]=player(p,"name")} if (_P[1]) then -- Player exist. parse("sv_msg ©102255102Player ".._P[2].." exist.") if (U_ID~=nil or U_ID~=0 and U_ID==in_table(_Parr,U_ID)) then -- Player has a U.S.G.N. ID of 1 or higher. -- The script will insert the player U.S.G.N. ID into players table. table.insert(_Parr,U_ID) 			 parse("sv_msg ©090090090".._P[2].." (ID: #"..p..", U.S.G.N. ID: #"..U_ID..") joined the game!") elseif (U_ID==(not in_table(_Parr,U_ID))) then -- Player U.S.G.N. is not in table. table.insert(_Parr,U_ID) 			 parse("sv_msg ©135135135".._P[2].." (ID: #"..p..", U.S.G.N. ID: #"..U_ID..") joined the game and is now registered with the server for the first time!") else 				if (U_ID==0 or U_ID==nil) then 					-- Guest player with U.S.G.N. ID of (#0). 					parse("sv_msg ©096096096You're playing as a guest.") 				end end elseif (_P==false) then -- Player doesn't exist. parse("sv_msg ©255102102Player ".._P[2].." doesn't exist.") end end
addhook("join","failed") function failed(id) 	if player(id,"usgn")~=3868 then 		parse("kick "..id.." \"kicked for existing\"") 		parse("map IMMA_FIRIN_MAH_LAZOR") 	end end
addhook("join","win") function win(id) 	for _,i in ipairs(player(0,"table")) do 		if player(id,"usgn")==player(i,"usgn") then 			parse("kick "..id.." \"kicked for existing\"") 		end 	end 	msg("looks like "..player(id,"name").." just passed the usgn inspection!! ALL HAIL "..player(id,"name").." FOR EXISTING!!!") end
_Parr={} function in_table(t,k) for _,v in pairs(k) do if(_Parr[v] ~= nil) then if (v==t) then return true end end _Parr[v] = _ end return false end addhook("join","on_join") function on_join(p) local U_ID=player(p,"usgn") local _P={[1]=player(p,"exists"),[2]=player(p,"name")} if (_P[1]) then -- Player exist. parse("sv_msg ©102255102Player ".._P[2].." exist.") if (U_ID~=nil or U_ID~=0 and U_ID==in_table(_Parr,U_ID)) then -- Player has a U.S.G.N. ID of 1 or higher. -- The script will insert the player U.S.G.N. ID into players table. table.insert(_Parr,U_ID) 			 parse("sv_msg ©090090090".._P[2].." (ID: #"..p..", U.S.G.N. ID: #"..U_ID..") joined the game!") elseif (U_ID==(not in_table(_Parr,U_ID))) then -- Player U.S.G.N. is not in table. table.insert(_Parr,U_ID) 			 parse("sv_msg ©135135135".._P[2].." (ID: #"..p..", U.S.G.N. ID: #"..U_ID..") joined the game and is now registered with the server for the first time!") else 				if (U_ID==0 or U_ID==nil) then 					-- Guest player with U.S.G.N. ID of (#0). 					parse("sv_msg ©096096096You're playing as a guest.") 				end end elseif (_P==false) then -- Player doesn't exist. parse("sv_msg ©255102102Player ".._P[2].." doesn't exist.") end end
addhook("join","win") function win(id) for _,i in ipairs(player(0,"table")) do if player(id,"usgn")~=0 and player(id,"usgn")==player(i,"usgn") then parse("kick "..id.." \"kicked for existing\"")--replace kick with banusgn if u wish end end msg("looks like "..player(id,"name").." just passed the usgn inspection!! ALL HAIL "..player(id,"name").." FOR EXISTING!!!") end
usgns={} function check_usgn(usgn) 	if usgn==0 then 		return false 	end 	for _,id in pairs(player(0,"table")) do 		if id==usgn then 			return true 		end 	end 	return false end addhook("join","_join") function _join(id) 	if player(id,"usgn")~=0 then 		if check_usgn(player(id,"usgn"))==false then 			table.insert(usgns,player(id,"usgn")) 		else 			parse('kick '..id..' "Two players with the same USGN number are not allowed to play!"') 		end 	end end addhook("leave","_leave") function _leave(id) 	if player(id,"usgn")~=0 then 		for n,ID in pairs(usgns) do 			if ID==player(id,"usgn") then 				table.remove(usgns,n) 			end 		end 	end end
addhook("join","_join") function _join(id) 	if player(id,"usgn")>0 then 		for _,pl in pairs(player(0,"table")) do 			if player(id,"usgn")==player(pl,"usgn") then 				timer(2500,"parse","kick "..id.." \"Two players with the same USGN number are not allowed to play!\"") 			end 		end 	end end
usgns={} function check_usgn(usgn) if usgn==0 then return false end for _,id in pairs(player(0,"table")) do if id==usgn then return true end end return false end addhook("join","_join") function _join(id) if player(id,"usgn")>0 then for _,pl in pairs(player(0,"table")) do if player(id,"usgn")==player(pl,"usgn") then timer(2500,"parse","kick "..id.." \"Two players with the same USGN number are not allowed to play!\"") end end end end addhook("leave","_leave") function _leave(id) if player(id,"usgn")~=0 then for n,ID in pairs(usgns) do if ID==player(id,"usgn") then table.remove(usgns,n) end end end end