Raised This Month: $ Target: $400
 0% 

amx_reloadadmins plugin help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shultszzz
Junior Member
Join Date: Mar 2004
Old 11-06-2006 , 03:38   amx_reloadadmins plugin help!
Reply With Quote #1

Plz can anybody write plugin for me. This plugin must run about 20 30s after map change and run command amx_reloadadmins.
P.S. don`t ask me what for and don`t post helps, if you can just make plugin and add here THANX.
Shultszzz is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-06-2006 , 10:32   Re: amx_reloadadmins plugin help!
Reply With Quote #2

just add this into any plugin ( admin.amxx for example )
Code:
//  add inside plugin_init() :     set_task(20.0, "reload_admins")     //  add anywhere outside a func public reload_admins()     server_cmd("amx_reloadadmins")
[ --<-@ ] Black Rose is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-16-2006 , 05:19   Re: amx_reloadadmins plugin help!
Reply With Quote #3

here you go this will work for you
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "Reset" #define VERSION "1.0" #define AUTHOR "The Specialist" public plugin_init() {  register_plugin(PLUGIN, VERSION, AUTHOR)  set_task(20.0,"amx_reset");  register_srvcmd("amx_reloadadmins","amx_reset"); } public amx_reset() {  server_cmd("amx_reloadadmins");  server_exec(); }
hope this helped . alo make sure i spelt the command right lol (havnt slept yet)
The Specialist is offline
Send a message via AIM to The Specialist
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 11-16-2006 , 12:56   Re: amx_reloadadmins plugin help!
Reply With Quote #4

@The Specialists: Your way adds a srvcmd which isn't needed and server_exec which again isn't needed.

He asked for the plugin to do it automatically.

Black Rose's way is fine.
organizedKaoS is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-16-2006 , 16:57   Re: amx_reloadadmins plugin help!
Reply With Quote #5

well since he PM'd me last night and asked me for help . i did this . if he didnt pm me and ask me for help i wouldnt have posted my code over black roses.
The Specialist is offline
Send a message via AIM to The Specialist
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 06:57.


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