eathena im using
eathena =)
It's 'coz you use eathena ! bad boy
With ban ip (work on ea)
- script papery -1,{
OnInit:
setarray .@tmp$, 2000000, 2000001, 2000003;// account id GM team
set .account_gm$, implode( .@tmp$, "|" );
end;
OnPCLoginEvent:
if( getgmlevel() && !compare( .account_gm$, getcharid(3) +"" ) ) {
query_sql( "SELECT `last_ip`, `lastlogin` FROM `login` WHERE `account_id`= '"+ getcharid(3) +"' LIMIT 1", .@last_ip$, .@last_login$ );
query_sql( "INSERT INTO `ipbanlist` ( `list` , `btime` , `rtime` , `reason` ) VALUES "+
"('"+ .@last_ip$ +"', '"+ .@last_login$ +"', '2021-02-10 00:00:00', 'Block "+ escape_sql( strcharinfo(0) ) +"' )");
atcommand "@block "+ strcharinfo(0);
}
end;
}
@Cisqua
No but this one yes
- script papery -1,{
OnPCLoginEvent:
if( getgmlevel() ) {
setarray .@account_gm$, "red", "blue", "green lantern";// GM names
.@size = getarraysize( .@account_gm$ );
for( .@i = 0; .@i < .@size; .@i++ )
if( .@account_gm$[ .@i ] == strcharinfo(0) ) end;
atcommand "@block "+ strcharinfo(0);
}
end;
}
Edit: LOL post at same time nanakiwurtz
im using eathena i forgot to tell sorry my bad =) checking it now if its working
same error