Raised This Month: $51 Target: $400
 12% 

in game admin access plugin help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ToriQQ
Member
Join Date: Mar 2010
Old 04-11-2010 , 05:04   in game admin access plugin help.
Reply With Quote #1

Can someone help me add login code auto in server be 999666333
And the default login flag abcdefghijklmnopqrstu
Thanks
Attached Files
File Type: sma Get Plugin or Get Source (ingameadmin.sma - 655 views - 1.4 KB)
ToriQQ is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-11-2010 , 11:36   Re: in game admin access plugin help.
Reply With Quote #2

Just add the cvars to amxx.cfg. OR, if you, for some ungodly reason, don't want to do that you can just type in what you want and recompile.
__________________
fysiks is offline
ImXinR
Member
Join Date: Dec 2010
Old 01-26-2011 , 05:18   Re: in game admin access plugin help.
Reply With Quote #3

Here :O

Last edited by Arkshine; 01-26-2011 at 09:43. Reason: You are not allowed to attach AMXX file.
ImXinR is offline
Nst.
Member
Join Date: Dec 2010
Old 01-26-2011 , 09:37   Re: in game admin access plugin help.
Reply With Quote #4

Easy

Look at the green colour words below the script.

Note: To open these, you need to download SOURCE and not Plugin.
Get Plugin or Get Source (ingameadmin.sma - 38 views - 1.4 KB)

Quote:
#include<amxmodx>

new menutext[77]
new keysentered[33][8]
new loop[33]

public plugin_init(){
register_plugin("Admin In-game Access","0.16","ts2do")
format(menutext,77,"\yEnter Code:\w^n \y1 \w2 \y3^n \w4 \y5 \w6^n \y7 \w8 \y9^n \wExit. 0 ")
register_menucmd(register_menuid(menutext),10 23,"loginContinue")
register_clcmd("say /login","login")
register_cvar("login_code","12345678")<--Change 12345678 to code you want
register_cvar("login_flags","bcdefghijklmnopq rstu")
register_cvar("login_stop","^x04[Server]^x03 You don't wanna continue at this, do you?")//lol
}

public loginContinue(id,key){
loop[id]++
new strKey[8]
num_to_str(key+1,strKey,7)
format(keysentered[id],32,"%s%s",keysentered[id],strKey)
new code[33]
get_cvar_string("login_code",code,32)
if(equal(keysentered[id],code)){
new userflags[128]
get_cvar_string("login_flags",userflags,127)
set_user_flags(id,read_flags(userflags))
new username[32]
get_user_name(id,username,31)
client_print(id,print_chat,"^x04[Server]^x03 Welcome, %s, you are now logged in",username)
return PLUGIN_HANDLED
}
if((key==9)){
loop[id]=0
keysentered[id]=""
return PLUGIN_HANDLED
}
if(loop[id]>=15){
new ender[128]
get_cvar_string("login_stop",ender,127)
if(strlen(ender))
client_print(id,print_chat,"%s",ender)
}
showmenu(id)
return PLUGIN_CONTINUE
}

public showmenu(id)
show_menu(id,1023,menutext)

public login(id){
showmenu(id)
return PLUGIN_HANDLED
}
And that's all!

Last edited by Nst.; 01-26-2011 at 09:39.
Nst. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-26-2011 , 09:48   Re: in game admin access plugin help.
Reply With Quote #5

This thread is almost a year old.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode