Jump to content
  • 0

About last mac/hwid (harmony/hashield)


Anime s2

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   6
  • Joined:  11/29/13
  • Last Seen:  

Can someone tells me what is the best way to compare last macs ?

OnPCLoginEvent:
 
setarray .@mac_list$[0],"bc:ee:7b:57:b4:2","bc:ee:7b:58:b4:2";
query_sql("SELECT `last_mac` FROM `login` WHERE `account_id` = '" + getcharid(3) + "'", .@mac_ip$); 
 
for (set .@i,0; .@i < getarraysize( .@mac_list$ ); set .@i , .@i + 1 ) {
 
if (.@mac_ip$ == .@mac_list$[.@i]) {
set .@jailok,1;
 
} 
}
if(.@jailok) 
atcommand "@jail " + strcharinfo(0);

Problem:

multiple messages : "player jailed"

 

is there another way?

 

 

sorry for my bad english.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   599
  • Joined:  11/25/11
  • Last Seen:  

I could not understand the point on your request.
When It is needed to compare MACs? It is to block Dual Account?
And what is supposed to happens when two MACs are equal?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   6
  • Joined:  11/29/13
  • Last Seen:  

I did this script to compare the mac address of players with defined in array. If the result works, the player will be sent for the jail


up

Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   599
  • Joined:  11/25/11
  • Last Seen:  

Hmm, try this:

OnPCLoginEvent:
	setarray .@mac_list$[0],"bc:ee:7b:57:b4:2","bc:ee:7b:58:b4:2";
	query_sql("SELECT `last_mac` FROM `login` WHERE `account_id` = '" + getcharid(3) + "'", .@mac_ip$); 
 
	for (set .@i, 0; .@i < getarraysize(.@mac_list$); set .@i, .@i + 1){
		if (.@mac_ip$ == .@mac_list$[.@i]){
			atcommand "@jail " + strcharinfo(0); 
			break;
		}
	}
	end;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   6
  • Joined:  11/29/13
  • Last Seen:  

 

Hmm, try this:

OnPCLoginEvent:
	setarray .@mac_list$[0],"bc:ee:7b:57:b4:2","bc:ee:7b:58:b4:2";
	query_sql("SELECT `last_mac` FROM `login` WHERE `account_id` = '" + getcharid(3) + "'", .@mac_ip$); 
 
	for (set .@i, 0; .@i < getarraysize(.@mac_list$); set .@i, .@i + 1){
		if (.@mac_ip$ == .@mac_list$[.@i]){
			atcommand "@jail " + strcharinfo(0); 
			break;
		}
	}
	end;

http://postimg.org/image/srrv7q4nd/

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

your probably loaded/duplicate the same script multiple time ?

Link to comment
Share on other sites

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.

×
×
  • Create New...