yuhsing

Untitled

Apr 4th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. - script Sample -1,{
  2.  
  3. OnInit:
  4. // GM Level X and below will be Restricted
  5. set .GMLevel,80;
  6. // Map Names
  7. setarray .MapList$[0],"hugel","payon","prontera","izlude";
  8.  
  9. for( set .i,0; .i < getarraysize( .MapList$ ); set .i,.i + 1 )
  10. setmapflag .MapList$[.i],mf_loadevent;
  11. end;
  12.  
  13. OnPCLoginEvent:
  14. OnPCLoadMapEvent:
  15. for( set .@i,0; .@i < getarraysize( .MapList$ ); set .@i,.@i + 1 )
  16. if( strcharinfo(3) == .MapList$[.@i] && getgmlevel() && getgmlevel() <= .GMLevel ){
  17. mes "You are not allow to stay at here.";
  18. close2;
  19. warp "SavePoint",0,0;
  20. break;
  21. }
  22. end;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment