SRCDS Steam group


Half Life 2 DM weapons
#1
Hello everybody!

I want to setup a HL2DM server for a LAN-party but i want to chance the weapon config. The gravity gun must be the only weapon available for the players. Is it possible to create such a server? Or do i need any extra mods?

Thanks!
Tux
Reply
#2
Try es_tools for eventscripts..
Code:
event player_spawn
{
if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_rpg

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_357

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_crowbar

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_stunstick

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_pistol

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_frag

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_smg1

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_crossbow

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_shotgun

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_ar2

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_slam

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_rpg

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_357

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_crowbar

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_stunstick

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_pistol

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_frag

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_smg1

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_crossbow

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_shotgun

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_ar2

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_slam
}

Just edit the map so it fits.
Reply
#3
realchamp Wrote:Try es_tools for eventscripts..
Code:
event player_spawn
{
if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_rpg

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_357

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_crowbar

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_stunstick

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_pistol

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_frag

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_smg1

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_crossbow

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_shotgun

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_ar2

if (server_var(eventscripts_currentmap) equalto dm_OTD_gravgun) then est_remove weapon_slam

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_rpg

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_357

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_crowbar

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_stunstick

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_pistol

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_frag

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_smg1

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_crossbow

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_shotgun

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_ar2

if (server_var(eventscripts_currentmap) equalto dm_killbox911_gravgun) then est_remove weapon_slam
}

Just edit the map so it fits.

Ok gonna try it, thx Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)