Raised This Month: $ Target: $400
 0% 

client_disconnected() <-> plugin_end()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-22-2019 , 08:13   Re: client_disconnected() <-> plugin_end()
Reply With Quote #1

Can something happen between server_changelevel() and plugin_end() that you would want to save to the database? If so you can simply mark that map is changing, but do the big query on plugin_end().

Code:
new bool:ChangingLevel = false; public server_changelevel() {     ChangingLevel = true; } public plugin_end() {     // Big query } public client_disconnected(client) {     if (ChangingLevel)         return;     // Normal query }
__________________
hleV 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 01:11.


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