Raised This Month: $109 Target: $400
 27% 

Admininfo (v1.2.1)


Post New Thread Reply   
 
Thread Tools Display Modes
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 08-07-2005 , 09:59  
Reply With Quote #11

i corrected the description
__________________
alias White Panther
karlos is offline
Tupla
Junior Member
Join Date: Aug 2005
Old 08-07-2005 , 10:38  
Reply With Quote #12

realy great job !!!
Tupla is offline
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 08-07-2005 , 13:22  
Reply With Quote #13

Great idea. I know tons of my admins are amxx illerate so this helps them a lot.
CubicVirtuoso is offline
Send a message via ICQ to CubicVirtuoso Send a message via AIM to CubicVirtuoso Send a message via MSN to CubicVirtuoso Send a message via Yahoo to CubicVirtuoso
bobbyjohn
Junior Member
Join Date: Dec 2005
Old 12-18-2005 , 21:00  
Reply With Quote #14

OK, first thing that came to mind while I entered:The Name of plugin is:
Quote:
Plugin - Admininfo (v1.2.1)
, and i think u should like make this like somthing like a list with the names of all adminss and a list of some of the people that come here often. Also say they're name they register for it (What they usually have as their name) and They're real first name(and if wanted last name) and then it says who they are now on *GAME*, and they have a command where they can say something like amx_reghideme as a command to take of the list and then a amx_regshowme.Just an idea if someone wants they can make this plugin but these are just what i thought this might be as it is called Plugin - Admininfo (v1.2.1) lol


Bye, The witch of the house next door(I'm currently single )[/u]

If you want you may, BUT YOZU MUST GIVE ME CREDIT =D
bobbyjohn is offline
MrXtramean
Senior Member
Join Date: Jun 2005
Old 11-04-2009 , 20:09   Re: Admininfo (v1.2.1)
Reply With Quote #15

Can someone edit the code so that it's NOT for admins and ALL players can use it. Alter code to remove admin_level_e

Is it possible?

I'm trying to use this of menus in MultiMod and I'd like to change the /admininfo<x> to /mod<x> for all players.



/*
* Put personal infos in admininfo<x>.txt and displays them in Motd
*
* type in console "admin_info <x>" (<x> is a number) and the content of admininfo<x>.txt
* will be writen in console window
*
* by White Panther
*
* v1.0:
* - shows information stored in admininfo<x>.txt
*
* v1.1:
* - there can be now as much admininfo<x>.txt's as u want
* just make a new admininfo<x>.txt in "mod directory/addons" folder
* and write your info into it.
* recomended maximum 120 chars and max 20 lines
* (can be more but then the output looks bad)
*
* v1.2: (port from adminmod to amxx)
* - txt's are now located in "addons/amxx"
* - messages are now shown in motd window
* - type in chat "/admininfo <x>" and info of admininfo<x>.txt will be shown
*
* v1.2.1:
* - minor changes
*/

#include <amxmodx>
#include <amxmisc>

public plugin_init() {
register_plugin("Admin info","1.2.1","White Panther")
register_concmd("admin_info","admin_info",ADM IN_LEVEL_E,"<x> : Shows personal admin infos stored in admininfo<x>.txt")
register_clcmd("say","HandleSay",ADMIN_LEVEL_ E,"<x> : Shows personal admin infos stored in admininfo<x>.txt")
register_clcmd("say_team","HandleSay",ADMIN_L EVEL_E,"<x> : Shows personal admin infos stored in admininfo<x>.txt")
}


public HandleSay(id,level,cid) {
if ( cmd_access(id,level,cid,2) ){
new Speech[30]
read_args(Speech,30)
remove_quotes(Speech)
if ( containi(Speech, "/admininfo") == 0 ){
new filenumber = 0
for ( new i = 0; Speech[i]; i++ ){
if ( isdigit(Speech[i]) ){
filenumber = str_to_num(Speech[i])
break
}
}
new file[48]
new configpath[60]
get_configsdir(configpath,60)
format(file,47,"%s/admininfo%d.txt", configpath, filenumber)
if ( file_exists(file) )
show_motd(id, file)
else
client_print(id,print_chat, "[AMX] No such file found")

return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}

public admin_info(id,level,cid){
if ( !cmd_access(id,level,cid,2) )
return PLUGIN_HANDLED

new file[48]
new filenumber[5]
read_argv(1,filenumber,4)
new configpath[60]
get_configsdir(configpath,60)
format(file,47,"%s/admininfo%s.txt", configpath, filenumber)
if ( file_exists(file) )
show_motd(id, file)
else
client_print(id,print_console, "[AMX] No such file found")

return PLUGIN_HANDLED
}
__________________
[NdN] Dust-Zone! Dust/Dust2 - 63.208.142.186:27015 Seattle
MrXtramean is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 11-06-2009 , 13:16   Re: Admininfo (v1.2.1)
Reply With Quote #16

why are you posting the complete code ? everyone can download it here

change ADMIN_LEVEL_E to 0
__________________
alias White Panther
karlos is offline
MrXtramean
Senior Member
Join Date: Jun 2005
Old 11-11-2009 , 18:27   Re: Admininfo (v1.2.1)
Reply With Quote #17

So this ?

public plugin_init() {
register_plugin("Admin info","1.2.1","White Panther")
register_concmd("admin_info","admin_info",0," <x> : Shows personal admin infos stored in admininfo<x>.txt")
register_clcmd("say","HandleSay",0,"<x> : Shows personal admin infos stored in admininfo<x>.txt")
register_clcmd("say_team","HandleSay",0,"<x> : Shows personal admin infos stored in admininfo<x>.txt")
}
__________________
[NdN] Dust-Zone! Dust/Dust2 - 63.208.142.186:27015 Seattle
MrXtramean is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 11-15-2009 , 14:19   Re: Admininfo (v1.2.1)
Reply With Quote #18

if you would have tested it (which is not much work) you would know the answer

but, yes that is it
__________________
alias White Panther
karlos is offline
Reply


Thread Tools
Display Modes

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 03:42.


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