| 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_players( iPlayers, iNum, "a" ) for( new i = 0; i < iNum; i++ ) { id = iPlayers[i] set_hudmessage ( 204, 0, 0, -1.0, 0.35, 0, 0.1, 5.0, 0.1, 0.1, -1 ) show_hudmessage ( 0, "[DGL]: DodgeBall Game Started!") strip_user_weapons( id ) 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_bpammo( id, CSW_M4A1, 90 ) cs_set_user_bpammo( id, CSW_DEAGLE, 35 ) fm_reset_user_model(id) } else if (cs_get_user_team(id) == CS_TEAM_T) { give_item(id, "weapon_hegrenade") cs_set_user_bpammo( id, CSW_HEGRENADE, 200 ) } } }
|