Raised This Month: $ Target: $400
 0% 

[SOLVED] Server Exec Config file and map configs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-14-2015 , 11:47   Re: [HELP] Server Exec Config file and map configs
Reply With Quote #5

got it done, thanks, sorry for being a slowpoke, it's a little confusing using things you never used before =P
here is the code in case newbies would be interested in doing something like this

PHP Code:
public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /testme""function").
}

public function(
id)
{
    new 
cfgdir[32], mapname[32]
    
get_configsdir(cfgdircharsmax(cfgdir))
    
get_mapname(mapname31)
    
server_cmd("exec %s/maps/%s.cfg"cfgdirmapname)
    

Depresie 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:04.


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