Raised This Month: $ Target: $400
 0% 

Kill Self. Remove other things.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 07-10-2010 , 05:29   Kill Self. Remove other things.
Reply With Quote #1

PHP Code:
    else if(iVictim == iKiller)
    {
        new 
iPlayers[MAX_PLAYERS], iNum;
        
get_players(iPlayersiNum"a");
        
        for(new 
i<= iNumi++)
        {
            if(
g_bLRInProgress[i])
            {
                
g_bBeacon[i] = false;
                
g_bLRInProgress[i] = false;
                if(
is_user_alive(i))
                {
                    
strip_user_weapons(i);
                    
set_user_health(i100);
                    if(
cs_get_user_team(i) == CS_TEAM_CT)
                    {
                        
give_item(i"weapon_knife");
                        
give_item(i"weapon_m4a1");
                        
cs_set_user_bpammo(iCSW_M4A190);
                        
give_item(i"weapon_usp");
                        
cs_set_user_bpammo(iCSW_USP120);
                        
give_item(i"weapon_hegrenade");
                        
give_item(i,"item_assaultsuit");
                    }
                    
                    else if(
cs_get_user_team(i) == CS_TEAM_T)
                    {
                        
give_item(i"weapon_knife");
                    }
                }
            }
        }
        
g_bLRCountDownProgress false;
        
remove_task(TASK_COUNTDOWN);
        
remove_task(TASK_BOMB);
        
remove_task(TASK_HIDDEN);
        
remove_task(TASK_CRAZY);
        
Game LR_NONE;
    } 
that bit of my code doesnt seem to work.
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-10-2010 , 08:22   Re: Kill Self. Remove other things.
Reply With Quote #2

What exacly does not work ? Write some debug messages and see where the code stops... and check that part.
__________________
Hunter-Digital is offline
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 07-10-2010 , 09:16   Re: Kill Self. Remove other things.
Reply With Quote #3

that is code is suppose to do this. when someone is in lastrequest g_bLrInProgress and they kill them self it should switch the g_bLrInProgress[index] = false and remove the beacon g_bBeacon[index] = false and remove all task and give the alive players back there weapons
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 07-10-2010 , 09:17   Re: Kill Self. Remove other things.
Reply With Quote #4

but it doesnt work
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 07-11-2010 , 01:40   Re: Kill Self. Remove other things.
Reply With Quote #5

PROBLEM SOLVED
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
Reply



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 07:06.


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