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?
__________________
http://www.blackfirehost.com Gameserver and Voice server hosting. Slots as cheap as $1 perslot! Good ping, no lag, fast service. Your best Idea is to come with us. We provide free support, full FTP access, full gamePanel access and more! Visit us now!