AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   T Should not be able to takedmg/kill CT (https://forums.alliedmods.net/showthread.php?t=222853)

MrKiller2010 08-07-2013 09:23

T Should not be able to takedmg/kill CT
 
When there is a game playing Ts should now be able to kill or take damage of CT.
Only kill Ts..

And How can i make that it plays a sound when it displays the hud?
A small .wav sound.

PHP Code:

public DGL()
{
    
g_iCurrentGame GAME_DGL
    
    
new iPlayers[32]
    new 
iNum
    
new id
    
    set_cvar_num
("mp_friendlyfire",1)
    
    
get_playersiPlayersiNum"a" )
    
    for( new 
0iNumi++ )
    {
        
id iPlayers[i]
        
set_hudmessage 20400, -1.00.3500.15.00.10.1, -
        
show_hudmessage 0"[DGL]: DodgeBall Game Started!")
        
        
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 )
            
fm_reset_user_model(id)
        }
        
        
        else if (
cs_get_user_team(id) == CS_TEAM_T)
        {
            
give_item(id"weapon_hegrenade")
            
cs_set_user_bpammoidCSW_HEGRENADE200 )
        }
    }



Black Rose 08-07-2013 16:18

Re: T Should not be able to takedmg/kill CT
 
https://forums.alliedmods.net/showth...t=block+damage
https://forums.alliedmods.net/showth...t=block+damage


All times are GMT -4. The time now is 15:59.

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