AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   amx_reloadadmins plugin help! (https://forums.alliedmods.net/showthread.php?t=46958)

Shultszzz 11-06-2006 03:38

amx_reloadadmins plugin help!
 
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.

[ --<-@ ] Black Rose 11-06-2006 10:32

Re: amx_reloadadmins plugin help!
 
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")

The Specialist 11-16-2006 05:19

Re: amx_reloadadmins plugin help!
 
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):wink:

organizedKaoS 11-16-2006 12:56

Re: amx_reloadadmins plugin help!
 
@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. :up:

The Specialist 11-16-2006 16:57

Re: amx_reloadadmins plugin help!
 
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.


All times are GMT -4. The time now is 06:57.

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