I need a little lua who allow the player not to join the server 2 times with the same ip.
I need something like that because they can make money in roleplay server.
I will not explain how.
Can someone help me pls.
mp_maxclientsip 1
addhook("join", "usgnJoinCheck"); function usgnJoinCheck(id) 	local usgn = player(id, "usgn"); 	if usgn <= 0 then return 0 end; 	 	local _, i, iusgn; 	for _, i in pairs(player(0, "table")) do 		iusgn = player(i, "usgn"); 		if iusgn == usgn then 			parse('kick '.. id); 			parse('kick '.. i); 			msg("Kicking ".. player(id, "name") .. " and ".. player(i, "name") .." Reason: Double usgn detected!"); 			return 0; 		end 	end end