View Single Post
Old 03-01-2008, 10:58 PM   #31
DD`
 
Join Date: Mar 2007
Posts Rated Helpful 0 Times
Code:
specific_tele = info_ff_script:new({})

function specific_tele:allowed( touch_entity ) 
   if IsPlayer( touch_entity ) then 
             local player = CastToPlayer( touch_entity ) 
             return player:GetTeamId() == self.team
   end
   return EVENT_DISALLOWED 
end

blue_tele = specific_tele:new({ team = Team.kBlue })
red_tele = specific_tele:new({ team = Team.kRed })
tiny edit of squeeks code and I got it working for him the way he wanted it (team specific).
DD` is offline   Reply With Quote