Raised This Month: $7 Target: $400
 1% 

Amxx equavalent of OnMapStart?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 05-10-2019 , 18:16   Amxx equavalent of OnMapStart?
Reply With Quote #1

I need to check something on each map start. I know on sourcemod you have OnMapStart, but is there anything for amx? I only found OnConfigsExecuted, but it didn't really work.
__________________
Spirit_12 is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 05-10-2019 , 18:45   Re: Amxx equavalent of OnMapStart?
Reply With Quote #2

plugin_native()
plugin_precache()
plugin_init()
plugin_cfg()
__________________
My English is A0
E1_531G is offline
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 05-10-2019 , 18:47   Re: Amxx equavalent of OnMapStart?
Reply With Quote #3

Quote:
Originally Posted by Spirit_12 View Post
I need to check something on each map start. I know on sourcemod you have OnMapStart, but is there anything for amx? I only found OnConfigsExecuted, but it didn't really work.
What exactly do you need to check on map start? plugin_init() is ran when the plugin is loaded for the first time on a map, however if there is something you need to modify or add to a map, you may want to look at plugin_precache so you can modify resources before they are sent to clients.

You may find it useful to go through some of the include files to learn the forwards they provide.
http://amxmodx.org/api/amxmodx/__raw
__________________
+|- KARMA Respectively

HLM is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 05-10-2019 , 21:14   Re: Amxx equavalent of OnMapStart?
Reply With Quote #4

Nah, I just need it for a day specific event. Pretty much on Friday after this time and then change some cvars. Just trying to figure out what would be the best place to do it. I was thinking performing these checks on map start.
__________________
Spirit_12 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-10-2019 , 22:13   Re: Amxx equavalent of OnMapStart?
Reply With Quote #5

I would use plugin_cfg() for setting cvars.
__________________
Bugsy 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 00:48.


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