Jump to content
  • 0

can you make me an anti dual ip


Question

2 answers to this question

Recommended Posts

Posted (edited)
-	script	Only1perIP	-1,{
OnPCLoadMapEvent:
// Which maps to check? (remember to add 'loadevent' mapflag at the bottom)
set .@maps$, "schg_cas06,schg_cas07,schg_cas08";

if (!compare(","+.@maps$+"," , ","+strcharinfo(3)+",")) end;
// check for other online characters from their IP
if (query_sql("SELECT `char`.`name` FROM login LEFT JOIN `char` ON login.account_id=`char`.account_id " + 
			  "WHERE login.last_ip=(SELECT last_ip FROM login WHERE account_id="+getcharid(3)+") AND `char`.online AND login.account_id!="+getcharid(3), .@name$) > 0)
{
	// check if they are on the same map
	for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) {
		getmapxy .@map$, .@x,.@y,0, .@name$[.@i];
		if (.@map$ == strcharinfo(3)) {
			announce "Sorry, only 1 character per IP is allowed on this map.", bc_blue|bc_self;
			sleep2 1000;
			warp "SavePoint",0,0;
		}
	}
}
end;
}

schg_cas06	mapflag	loadevent
schg_cas07	mapflag	loadevent
schg_cas08	mapflag	loadevent

Edited by Brian
: sleep2 - thanks Annie <3
Posted

    announce "Sorry, only 1 character per IP is allowed on this map.", bc_blue|bc_self;
   sleep 1000;
   warp "SavePoint",0,0;

[Error]: script_rid2sd: fatal error ! player not attached!

lol... xD

damn ... bumping old topics ! so cheating >.<

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...