Raised This Month: $ Target: $400
 0% 

Plugin Help: Read From File and Do Var


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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