Raised This Month: $ Target: $400
 0% 

having clitents write a .CFG on connection


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-12-2005 , 16:39  
Reply With Quote #3

Try this... Change "OmfGz0rZ.cfg" with your cfg file and "Help Im Stoned" with your plugin name...

Code:
#include <amxmodx> #include <engine> new bool:execfile[33] = false public plugin_init() {     register_plugin("Help Im Stoned", "1.0", "west")     register_event("ResetHUD", "ResetHUD", "b") } public plugin_precache() {     // People download the file with this cmd.     // Replace "OmfGz0rZ" with your cfg file and     // "File Location" to the location where you got the file.     precache_generic("File Location/OmfGz0rZ.cfg") } public client_connect(id) {     // Now the user will exec the cfg file on next round start     // I dont exec it here, because they gotta download     // it before they exec it.     execfile[id] = true } public ResetHUD(id) {     if(execfile[id] == true) {          client_cmd(id, "exec OmfGz0rZ.cfg") // Exec file          // Sets the *next round* exec off, so they wont exec the file          // every round. Remove this if you want the user to exec it          // on all round starts. (and deaths)          execfile[id] = false     }     return PLUGIN_HANDLED }
XunTric 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 14:15.


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