Budots Posted November 29, 2013 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 200 Reputation: 1 Joined: 09/25/13 Last Seen: January 6, 2014 Share Posted November 29, 2013 I have tried this script and its pretty working, But my problem is, even my own ADMIN ACCOUNT will be jailed if i log in.Can you help me that this script will take effect only on those normal accounts? not on gm accounts. ban_gm_name.txt Quote Link to comment Share on other sites More sharing options...
Yoga Posted November 29, 2013 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 66 Reputation: 1 Joined: 06/06/12 Last Seen: November 8, 2016 Share Posted November 29, 2013 try this. - script ban_gm_name -1,{ OnPCLoginEvent: if(getgmlevel() >=99) end; .@name$ = strcharinfo(0); if( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ){ mes "You will be jailed for using 'GM'/'Admin' within your name"; sleep2 3500; atcommand "@jail "+.@name$; globalmes .@name$+" has been jailed for having 'GM'/'Admin' in their name."; } end; } Quote Link to comment Share on other sites More sharing options...
Patskie Posted November 29, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 10 minutes ago Share Posted November 29, 2013 - if( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ){ + if( !getgmlevel() && ( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ) ) { Quote Link to comment Share on other sites More sharing options...
Budots Posted November 29, 2013 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 200 Reputation: 1 Joined: 09/25/13 Last Seen: January 6, 2014 Author Share Posted November 29, 2013 - if( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ){ + if( !getgmlevel() && ( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ) ) { Lemme try this sir, Quote Link to comment Share on other sites More sharing options...
Question
Budots
I have tried this script and its pretty working,
But my problem is, even my own ADMIN ACCOUNT will be jailed if i log in.
Can you help me that this script will take effect only on those normal accounts? not on gm accounts.
ban_gm_name.txt
Link to comment
Share on other sites
3 answers 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.