AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plugin Help: Read From File and Do Var (https://forums.alliedmods.net/showthread.php?t=49064)

SSAW 12-26-2006 19:18

Plugin Help: Read From File and Do Var
 
Ok I have a plugin example I want to work on. I want it to read from a file such as: myfile.ini which contains
Code:

"[SD]Ace Of Spades"
"[SD]My Clan"

(it has more)
And if the persons name is in there it issues a command.
So far I have this:
Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>




public plugin_init() {
        register_plugin("Admin Connect","1.0", "da_ghost")
}
public client_putinserver(id) {       
        set_task(0.1,"rload")
        return PLUGIN_CONTINUE
}
public rload() {
        server_cmd("amx_reloadadmins")
        return PLUGIN_CONTINUE
}

how would I go about doing this?

SweatyBanana 12-26-2006 21:11

Re: Plugin Help: Read From File and Do Var
 
You realize when an admin enters now that amx_reloadadmins happens automatically right?

SSAW 12-26-2006 22:14

Re: Plugin Help: Read From File and Do Var
 
ITs not happening though. I go in and my admin doesnt load. So this is why i use this.


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

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