Raised This Month: $ Target: $400
 0% 

Server Shutdown....


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 07-28-2013 , 10:38   Re: Server Shutdown....
Reply With Quote #7

Well the problem is really related to this plugin. I removed all 3rd party plugins and still same problem.
It has more few things in code but i dont think they are the problem.
Here is what was missing:
PHP Code:
public Check_Rings(id)
{
    new 
rings_for_ss get_pcvar_num(Rings_Amount)
    
    if(
Rings[id] < rings_for_ss)
        
// Client Print
    
    
else
    {
        
Sonic[id] = false
        Shadow
[id] = false
        Silver
[id] = false
        Knuckles
[id] = false
        Tails
[id] = false
        Rose
[id] = false
        Eggman
[id] = false
        SuperSonic
[id] = true
        
        strip_user_weapons
(id)
        
character_stuff(id)
        
set_user_rendering(idkRenderFxGlowShell2552550kRenderNormal25)
        
        
Rings[id] -= rings_for_ss
    
}
}

public 
character_stuff(id)
{
    if(
is_user_alive(id))
    {
        if(
Sonic[id] == true)
        {
            
set_user_health(idget_pcvar_num(HP_Sonic))
            
set_user_gravity(idget_pcvar_float(Gravity_Sonic)/800.0)
        }
    
        else if(
Shadow[id] == true)
        {
            
set_user_health(idget_pcvar_num(HP_Shadow))
            
set_user_gravity(idget_pcvar_float(Gravity_Shadow)/800.0)
        }
        
        else if(
Silver[id] == true)
        {
            
set_user_health(idget_pcvar_num(HP_Silver))
            
set_user_gravity(idget_pcvar_float(Gravity_Silver)/800.0)
        }
    
        else if(
Knuckles[id] == true)
        {
            
set_user_health(idget_pcvar_num(HP_Knuckles))
            
set_user_gravity(idget_pcvar_float(Gravity_Knuckles)/800.0)
        }
    
        else if(
Tails[id] == true)
        {
            
set_user_health(idget_pcvar_num(HP_Tails))
            
set_user_gravity(idget_pcvar_float(Gravity_Tails)/800.0)
        }
    
        else if(
Rose[id] == true)
        {
            
set_user_health(idget_pcvar_num(HP_Rose))
            
set_user_gravity(idget_pcvar_float(Gravity_Rose)/800.0)
        }
    
        else if(
Eggman[id] == true)
        {
            
set_user_health(idget_pcvar_num(HP_Eggman))
            
set_user_gravity(idget_pcvar_float(Gravity_Eggman)/800.0)
        }
        
        else if(
SuperSonic[id] == true)
        {
            
set_user_health(idget_pcvar_num(HP_SSonic))
            
set_user_gravity(idget_pcvar_float(Gravity_SSonic)/800.0)
        }
    }

PS: On spawn i do:
PHP Code:
public Player_Spawn_Post(id)
{
    if(
is_user_alive(id))
    {
        
strip_user_weapons(id)
        
        if(
SuperSonic[id] == true)
            
character_stuff(id)
        
        else
        {
            
Sonic[id] = false
            Shadow
[id] = false
            Silver
[id] = false
            Knuckles
[id] = false
            Tails
[id] = false
            Rose
[id] = false
            Eggman
[id] = false
            set_user_rendering
(idkRenderFxNone000kRenderNormal0)
        }
    }

__________________
Jhob94 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 15:54.


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