Chromebore Posted August 5, 2014 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 12 Reputation: 0 Joined: 05/06/14 Last Seen: June 16, 2015 Share Posted August 5, 2014 Hello, I would like to ask for a request on how to remove all ADMINS (GM LVL 99) from the GM online list ?this is the script im using: prontera,164,182,4 script Online GMs 611,{ mes "Staffs Online Lists : ^FF0000"+getarraysize( .GM_Name$ )+"^000000 Staffs"; mes "^0000FF_____________________________^000000"; for( set .@i,0; .@i < getarraysize( .GM_Name$ ) ; set .@i,.@i + 1 ){ getmapxy( .Map$,.x,.y,0,.GM_Name$[.@i] ); mes "[ Lv ^63D1F4"+.GM_Level[.@i]+"^000000 ] ^FF0000@ ^0000FF"+.GM_Name$[.@i]+"^000000"; mes "Location : ^0000FF"+.Map$+"^000000"; mes "^0000FF_____________________________^000000"; } close; OnInit: set .MinGMLevel,1; // Min. GM Level to Show in Online Lists end; OnPCLoginEvent: if( getgmlevel() < .MinGMLevel ) end; set .GM_Name$[ getarraysize( .GM_Name$ ) ],strcharinfo(0); set .GM_Level[ getarraysize( .GM_Level ) ],getgmlevel(); end; OnPCLogoutEvent: if( getgmlevel() < .MinGMLevel ) end; for( set .@i,0; .@i < getarraysize( .GM_Name$ ) ; set .@i,.@i + 1 ){ if( strcharinfo(0) != .GM_Name$[.@i] ) continue; deletearray .GM_Name$[.@i],1; deletearray .GM_Level[.@i],1; end; } end; } thanks ! Quote Link to comment Share on other sites More sharing options...
Skorm Posted August 5, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted August 5, 2014 Change both instances of... if( getgmlevel() < .MinGMLevel ) end; To... if( getgmlevel() < .MinGMLevel || getgmlevel() >= 99 ) end; Quote Link to comment Share on other sites More sharing options...
Question
Chromebore
Hello, I would like to ask for a request on how to remove all ADMINS (GM LVL 99) from the GM online list ?
this is the script im using:
thanks !
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.