Psyche Posted April 22, 2016 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 123 Reputation: 6 Joined: 03/12/13 Last Seen: June 7, 2023 Share Posted April 22, 2016 if (getmapusers("bat_room") >=26){ warp "SavePoint",0,0; } the problem is, when someone come in, that script randomly kick one of 26 player. what if i want to make last char will be kicked, so the other player who stay inside bat_room cannot disturbed? Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted April 23, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted April 23, 2016 add the checking condition to your warper npc. Quote Link to comment Share on other sites More sharing options...
0 Psyche Posted May 2, 2016 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 123 Reputation: 6 Joined: 03/12/13 Last Seen: June 7, 2023 Author Share Posted May 2, 2016 (edited) add the checking condition to your warper npc. already but, it can be bypassed. so i want to make script that kick player 25th instead of max players are 24. something like Euphy script // callfunc "Check_IP","<map_name>"; function script Check_IP { // Get list of accounts with attached character's IP address. set .@size, query_sql("SELECT `account_id` FROM `login` WHERE `last_ip` = '"+getcharip()+"'",.@aid); // Passed check if only the attached player is returned. if (.@size < 2) return; // Check all online characters using the IP address if they're on the given map. set .@self, getcharid(3); for(set .@i,0; .@i<.@size; set .@i,.@i+1) { if (attachrid(.@aid[.@i])) { if (strcharinfo(3) == getarg(0)) { set .@name$, strcharinfo(0); attachrid(.@self); mes "Character "+.@name$+" is already logged into Battlegrounds with your IP."; close; } } } attachrid(.@self); // Passed check. return; } but it read of max player, not ip address. Edited May 2, 2016 by Psyche Quote Link to comment Share on other sites More sharing options...
Question
Psyche
the problem is, when someone come in, that script randomly kick one of 26 player.
what if i want to make last char will be kicked, so the other player who stay inside bat_room cannot disturbed?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.