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

[REQ] Module


Post New Thread Reply   
 
Thread Tools Display Modes
-B1ng0-
Member
Join Date: Nov 2009
Old 05-09-2010 , 10:38   Re: [REQ] Module
Reply With Quote #21

Quote:
Originally Posted by Arkshine View Post
Try to replace all the signature [0x55, etc, .. ] by : 0x50050
now it work but he dont execute my sql update when server close
-B1ng0- is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 05-09-2010 , 10:50   Re: [REQ] Module
Reply With Quote #22

Quote:
Originally Posted by -B1ng0- View Post
now it work but he dont execute my sql update when server close
Please post your full code.
Seta00 is offline
-B1ng0-
Member
Join Date: Nov 2009
Old 05-09-2010 , 11:17   Re: [REQ] Module
Reply With Quote #23

Host_ShutdownServer
Code:
{
    "name"        : "Host_ShutdownServer",
    "library"     : "engine",
    "identifiers" :
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : 0x50050
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "Host_ShutdownServer"
        }
    ]
}
Plugin
Code:
public OrpheuHookReturn:OnShutdownServer() {
    
    new owner[ 32 ];
    get_pcvar_string( xRd_gowner, owner, charsmax( owner ) );
    
    formatex( xRdQuery, charsmax( xRdQuery ), "UPDATE `xrd_redirected` SET `redirectati`='0' WHERE `proprietar`='%s'", owner);
    SQL_ThreadQuery( xRdSqlTuple, "SaveClient_QueryHandler", xRdQuery )
    
    return OrpheuIgnored;
}
-B1ng0- is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 05-09-2010 , 13:45   Re: [REQ] Module
Reply With Quote #24

It can't be threaded, the server is shutting down, all child threads are killed.
Seta00 is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 05-09-2010 , 18:06   Re: [REQ] Module
Reply With Quote #25

You will have to make, an external tool. To check hlds.exe is killed.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-09-2010 , 18:14   Re: [REQ] Module
Reply With Quote #26

Quote:
Originally Posted by Seta00 View Post
It can't be threaded, the server is shutting down, all child threads are killed.
I guess the safest way is to save the data in text file and at next server start insert that into database.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 05-09-2010 , 18:34   Re: [REQ] Module
Reply With Quote #27

Quote:
Originally Posted by AntiBots View Post
You will have to make, an external tool. To check hlds.exe is killed.
No need, just use PrepareQuery and then Execute, they're both block functions.
Seta00 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 04:31.


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