Raised This Month: $ Target: $400
 0% 

exec Mapname.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
diavolar
Member
Join Date: Nov 2009
Location: Paraguay
Old 11-01-2013 , 06:12   exec Mapname.cfg
Reply With Quote #1

Hy
can help me please

to mod nemesis (zp5.0)

I use and goes well
PHP Code:
public zp_fw_gamemodes_start()
{
    
server_cmd"zp_lighting a" )

to the end of the mod i want to execute "mapname".cfg (Each map has its config)

PHP Code:
public zp_fw_gamemodes_end()
{
    
server_cmdexec configs/maps/"mapname".cfg )

sorry for my bad english

Last edited by diavolar; 11-01-2013 at 06:13.
diavolar is offline
Send a message via ICQ to diavolar Send a message via AIM to diavolar Send a message via Yahoo to diavolar Send a message via Skype™ to diavolar
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-01-2013 , 06:36   Re: exec Mapname.cfg
Reply With Quote #2

PHP Code:
server_cmd"exec configs/maps/de_dust2.cfg" 
__________________
alan_el_more is offline
diavolar
Member
Join Date: Nov 2009
Location: Paraguay
Old 11-01-2013 , 06:45   Re: exec Mapname.cfg
Reply With Quote #3

must execut cfg named the map that runs

function get_mapname must be added
and do not know
diavolar is offline
Send a message via ICQ to diavolar Send a message via AIM to diavolar Send a message via Yahoo to diavolar Send a message via Skype™ to diavolar
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-01-2013 , 08:35   Re: exec Mapname.cfg
Reply With Quote #4

PHP Code:
new szMapName[64]
get_mapname(szMapNamecharsmax(szMapName))
server_cmd("exec configs/maps/%s.cfg"szMapName
__________________
alan_el_more is offline
Reply



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 09:52.


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