Raised This Month: $ Target: $400
 0% 

[orpheu] Set airaccelerate


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kostov
Member
Join Date: Jan 2010
Location: Bulgaria, Sofia
Old 09-05-2011 , 10:33   [orpheu] Set airaccelerate
Reply With Quote #1

Hello,

Use this code:
PHP Code:
#include <amxmodx>
#include <orpheu>
#include <orpheu_stocks>

new OrpheuStruct:g_ppmove;
new 
Float:g_iSetaa[33];

public 
plugin_init()
{
    
OrpheuRegisterHook(OrpheuGetDLLFunction("pfnPM_Move""PM_Move"), "PM_Move"); 
    
OrpheuRegisterHook(OrpheuGetFunction("PM_AirMove"), "PM_AirMove");
    
    
register_clcmd("say /setaa""SetAA");
    
register_clcmd("say /rmaa""RmAA");
}

public 
SetAA(id)
{
    
g_iSetaa[id] = 50.0;
}

public 
RmAA(id)
{
    
g_iSetaa[id] = 10.0;
}

public 
OrpheuHookReturn:PM_Move(OrpheuStruct:ppmoveserver)
{
    
g_ppmove ppmove;
}

public 
OrpheuHookReturn:PM_AirMove( )
{
    new 
id OrpheuGetStructMember(g_ppmove"player_index") + 1;
    
    if(!
is_user_alive(id) && !is_user_connected(id)) 
        return 
OrpheuIgnored;
    
    new 
OrpheuStruct:movevars OrpheuStruct:OrpheuGetStructMemberg_ppmove"movevars" );
    
OrpheuSetStructMember(movevars"airaccelerate"g_iSetaa[id]);
    
    return 
OrpheuIgnored;

With more than 4-5 users in the server begins to remove players from the server with the error:

WARNING: reliable overflow for NickName
Dropped NickName from server
Reason: Reliable channel overflowed

The same errors occurs with this: http://forums.alliedmods.net/showthread.php?t=138792

I forgot to say:Server running on Linux

Regards,
Kostov

Last edited by kostov; 09-05-2011 at 11:08.
kostov is offline
 



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 18:53.


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