Hi. for me this part doesnt work. Any idea how to get this work? I want to limit the number of player of each guild to enter to the map.
OnPCLoadMapEvent:
if( getcharid(2) == $App_Guilds[.@i] ){
.count = 0;
.@origin = getcharid(3);
addrid 3, 0, getcharid(2);
if ( strcharinfo(3) == .checkmap$ )
.count++;
if ( !.@origin ) end;
if ( .count > 5 ) { // 5 means only 5 players per guild allowed in a map.
message strcharinfo(0), "Your guild members are over the limit";
sleep2 2000;
warp "SavePoint", 0,0;
}
}
end;