Raised This Month: $ Target: $400
 0% 

Count Player Loop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MokeN
Senior Member
Join Date: Jan 2012
Location: Vaasa, Finland
Old 07-07-2012 , 09:02   Count Player Loop
Reply With Quote #1

Hello,

I'll need some help of you guys, 3 things.

1. I need a loop, then it's only 1 Terrorist left this action should be executed:

PHP Code:
        set_hudmessage 2556464, -1.00.3500.15.00.10.1, -
        
show_hudmessage 0"[SG]: Game Over!")
       
        
strip_user_weaponsid )
       
        if (
cs_get_user_team(id) == CS_TEAM_CT)
        {
    
give_item(id"weapon_knife")
    
give_item(id"weapon_m4a1"
    
give_item(id"weapon_deagle")
    
cs_set_user_bpammoidCSW_M4A190 )
    
cs_set_user_bpammoidCSW_DEAGLE35 )
    
set_user_noclip(id)
       
      } else if (
cs_get_user_team(id) == CS_TEAM_T)
        {
            
give_item(id"weapon_knife")
        
server_cmd"sv_gravity 800" )
        
server_cmd"sv_airaccelerate 10" )
        }
    }

2. I need a function that's preventing the HE grenade to explode & they'll just dissapear, i've used grenade think for the explode prob but it isn't working.


3. The world models aren't working, they have been before but not now :s
It's like when i throw etc. a Snowball, there's a HE in the air instead of aw snowball.

PHP Code:
public fwdSetModel(ent,const model[])
{    
    if(!
pev_valid(ent) || !equal(model,"models/w_hegrenade.mdl")) 
        return 
FMRES_IGNORED
        
    
switch(g_iCurrentGame)
    {
        case 
GAME_DGBALLengfunc(EngFunc_SetModelentg_szDodgeball_World)
        case 
GAME_ZMBOMBSengfunc(EngFunc_SetModelentg_szZombiebomb_World)
        case 
GAME_SNOWBALLengfunc(EngFunc_SetModelentg_szSnowball_World)
        case 
GAME_ANGRYBIRDSengfunc(EngFunc_SetModelentg_szAngryBirds_World)
        default: return 
FMRES_IGNORED
    
}
    
    return 
FMRES_SUPERCEDE

Thanks in advance!
__________________
Private Works:
- Achievements, HNS & JB Menus, HNS & JB Shops

mY BlockMaker - mY Steam - mY Game Menu
MokeN is offline
Send a message via Skype™ to MokeN
 



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:08.


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