Aegiskore 0 Posted May 21, 2014 (edited) hi Guys, Just want to know if its possible to limit account IP login in all maps except prontera? Example: If 4 accounts will login in different maps (except pront) the 5th account will be kick-out or/and if 4 accounts will login in different maps and the 5th account will not be kick-out if he login in prontera and vice-versa. basically, I want the server to restrict IP log-in to 4 accounts only, except prontera which will be free of IP limit. appreciate you help and inputs Edited May 21, 2014 by Freezer Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted May 21, 2014 - script check_ip -1,{OnPCLoginEvent: if (strcharinfo(3) == "prontera") end; query_sql "SELECT `last_ip` FROM `login` WHERE `account_id` = " + getcharid(3), .@last_ip$; set .@size, query_sql("SELECT `account_id` FROM `login` WHERE `last_ip` = '"+ .@last_ip$ +"'",.@aid); if (.@size < 4) end; set .@self, getcharid(3); for(.@i = 0; .@i < .@size; .@i++) { if (.@aid[.@i] == .@self) continue; if (attachrid(.@aid[.@i])) { set .@name$, strcharinfo(0); attachrid(.@self); message strcharinfo(0), "Too many accounts."; sleep2 5000; atcommand "@kick "+strcharinfo(0); end; } } end;} Quote Share this post Link to post Share on other sites
0 Aegiskore 0 Posted May 22, 2014 thanks but is not working properly.. IP in prontera is still counting when other accounts login in other maps. Quote Share this post Link to post Share on other sites
hi Guys,
Just want to know if its possible to limit account IP login in all maps except prontera?
Example:
If 4 accounts will login in different maps (except pront) the 5th account will be kick-out
or/and if 4 accounts will login in different maps and the 5th account will not be kick-out if he login in prontera
and vice-versa.
basically, I want the server to restrict IP log-in to 4 accounts only, except prontera which will be free of IP limit.
appreciate you help and inputs
Edited by FreezerShare this post
Link to post
Share on other sites