Jump to content
  • 0

unlegit stats detector


Question

Posted

A script that will detect a player if one of his stats exceeds 255, it will announce the player's name, it will tell the player that he have stats that go over the limit of 255 and will be DC-ed in 5 seconds. thank you in advance :D

4 answers to this question

Recommended Posts

Posted

try add this code for your script to check

for( set .@i,13; .@i <= 18; set .@i,.@i + 1 )
if( readparam(.@i) > 255 ){
 announce strcharinfo(0)+" have Exceeded Max Stats Limits.",0;
 message strcharinfo(0),"Disconnecting within 5 Seconds.";
 sleep2 5000;
 // resetstatus;
 atcommand "@kick "+strcharinfo(0);
 break;
}
end;

Posted

umm, Sir Emistry, thank you for your quick reply, but can you add that it will look for unlegit characters every 30minutes or 1hour perhaps, I just thought of it because if someone exceeds the 255 stats, that script will only work on login right? so they might return the stats of the character to normal if they'll logout?

Posted

uhhh, so sir, it'll look like this,

- script statlimiter -1,{

for( set .@i,13; .@i <= 18; set .@i,.@i + 1 )

if( readparam(.@i) > 255 ){

announce strcharinfo(0)+" have Exceeded Max Stats Limits.",0;

message strcharinfo(0),"Disconnecting within 5 Seconds.";

sleep2 5000;

// resetstatus;

atcommand "@kick "+strcharinfo(0);

break;OnPCLoginEvent:

while( 1 ){

//code..........

sleep2 ( 30 * 60000 );

}

end;

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...