Raised This Month: $ Target: $400
 0% 

[BIO] Respawn plugin crashes server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 09-05-2020 , 11:09   Re: [BIO] Respawn plugin crashes server
Reply With Quote #5

Quote:
Originally Posted by Supremache View Post
There's somethings wrong in this plugin like:
1. in this faction
PHP Code:
public enfeksiyon_tipi(id)
{
    if(
is_user_connected(id))
    {
        switch(
get_pcvar_num(cvar_enf_sec))
        {
            case 
1insan(id)
            case 
2zombie(id)
            case 
3:
            {
                switch(
random_num(1,2))
                {
                    case 
1insan(id)
                    case 
2zombie(id)
                }
            }
        }
        
        if(
get_pcvar_num(cvar_godmode))
        {
            
fm_set_user_godmode(id1)
            
set_task(get_pcvar_float(cvar_godmode_timer), "stop_god"id)
        }
    }

This mod have zombie and human system so the problem in this plugin
PHP Code:
case 1insan(id)
                    case 
2zombie(id
The errors in those factions
Change those codes from:

PHP Code:
public zombie(id)
{
    if(!
is_user_zombie(id))
    {
        
infect_user(id0)
        
cs_set_user_team(idCS_TEAM_T)
    }
}

public 
insan(id)
{
    if(
is_user_zombie(id))
    {
        
cure_user(id)
        
cs_set_user_team(idCS_TEAM_CT)
    }
            
    
fm_give_item(id"weapon_m4a1")
    
fm_give_item(id"weapon_deagle")
    
fm_give_item(id"weapon_hegrenade")
    
fm_give_item(id"weapon_smokegrenade")
    
fm_give_item(id"weapon_flashbang")
    
cs_set_user_bpammo(idCSW_M4A1200)
    
cs_set_user_bpammo(idCSW_DEAGLE200)
    
cs_set_user_bpammo(idCSW_HEGRENADE1)
    
cs_set_user_bpammo(idCSW_SMOKEGRENADE1)
    
cs_set_user_bpammo(idCSW_FLASHBANG1)

To:

PHP Code:
public zombie(id)
{
    if(
is_user_zombie(id))
    {
        
infect_user(id0)
        
cs_set_user_team(idCS_TEAM_T)
    }
}

public 
insan(id)
{
    if(!
is_user_zombie(id))
    {
        
cure_user(id)
        
cs_set_user_team(idCS_TEAM_CT)
    }
            
    
fm_give_item(id"weapon_m4a1")
    
fm_give_item(id"weapon_deagle")
    
fm_give_item(id"weapon_hegrenade")
    
fm_give_item(id"weapon_smokegrenade")
    
fm_give_item(id"weapon_flashbang")
    
cs_set_user_bpammo(idCSW_M4A1200)
    
cs_set_user_bpammo(idCSW_DEAGLE200)
    
cs_set_user_bpammo(idCSW_HEGRENADE1)
    
cs_set_user_bpammo(idCSW_SMOKEGRENADE1)
    
cs_set_user_bpammo(idCSW_FLASHBANG1)

Well thanks for the help but looks like it didnt help me, still crashing :/
HowToRuski 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 13:51.


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