Raised This Month: $ Target: $400
 0% 

Plugin Help: Read From File and Do Var


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SSAW
Junior Member
Join Date: Dec 2005
Location: Toronto, Ontario, Canada
Old 12-26-2006 , 19:18   Plugin Help: Read From File and Do Var
Reply With Quote #1

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!
SSAW is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-26-2006 , 21:11   Re: Plugin Help: Read From File and Do Var
Reply With Quote #2

You realize when an admin enters now that amx_reloadadmins happens automatically right?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SSAW
Junior Member
Join Date: Dec 2005
Location: Toronto, Ontario, Canada
Old 12-26-2006 , 22:14   Re: Plugin Help: Read From File and Do Var
Reply With Quote #3

ITs not happening though. I go in and my admin doesnt load. So this is why i use 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!
SSAW 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 22:24.


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