Raised This Month: $12 Target: $400
 3% 

Solved OnMapEnd() with "sm plugins unload"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 07-18-2018 , 16:52   OnMapEnd() with "sm plugins unload"
Reply With Quote #1

Hi,

OnMapStart() is always called, even if the map has already started (Late loading).

Is there a reason why its counterpart OnMapEnd() isn't called when a plugin is unloaded by an admin (sm plugins unload), even if the map hasn't still ended ?

https://wiki.alliedmods.net/Introduc...lugins#Pairing :
HTML Code:
OnMapEnd() cannot be called without an OnMapStart(), and if OnMapStart() is called, it cannot be called again without an OnMapEnd().
Thanks.
__________________

Last edited by micapat; 07-18-2018 at 17:50. Reason: Solved
micapat is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-18-2018 , 17:33   Re: OnMapEnd() with "sm plugins unload"
Reply With Quote #2

You can use OnPluginEnd if you want to perform some action when a plugin is unloaded.
__________________
asherkin is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 07-18-2018 , 17:50   Re: OnMapEnd() with "sm plugins unload"
Reply With Quote #3

Indeed. I was wondering if it was the normal behavior, thanks.
__________________
micapat 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 09:33.


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