Garry's Mod

Garry's Mod

Zombie Survival
Configuration of SWEP of default Zombie.
I want to configure default zombie and give player SWEP consisting of some items (weapons). I write this (in gamemode/zombieclasses/zombie.lua):
if( player:IsAdmin() ) then //for admin CLASS.SWEP = {"weapon_physgun", "weapon_zs_zombie"} end if( !player:IsAdmin() ) then //for player CLASS.SWEP = "weapon_zs_zombie" end
. But it doesn't work and player has not SWEP at all. Who knows how configure it correctly? Thanks in advance.