Budots Posted November 29, 2013 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
Yoga Posted November 29, 2013 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
Patskie Posted November 29, 2013 Posted November 29, 2013 - if( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ){ + if( !getgmlevel() && ( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ) ) { Quote
Budots Posted November 29, 2013 Author Posted November 29, 2013 - if( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ){ + if( !getgmlevel() && ( compare( .@name$,"GM " ) || compare( .@name$,"Admin " ) ) ) { Lemme try this sir, Quote
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
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.