Raised This Month: $51 Target: $400
 12% 

Block teleporter to terorrist


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 03-03-2014 , 12:35   Block teleporter to terorrist
Reply With Quote #1

Hi everebody, well a friend create a map with some teleporters(trigger_teleport), well my question is how i can block this teleporter to terrorist only on this map with a code? i only want the antiterrorist can use it, can someone give and example pls?.. thx in advance
wicho is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 03-03-2014 , 13:46   Re: Block teleporter to terorrist
Reply With Quote #2

Try hooking Touch function and supercede;

Code:
register_touch("trigger_teleport", "player", "TeleportTouch");
......

public TeleportTouch(ent, id)
{
     if (cs_get_user_team(id) == CS_TEAM_T)
          return PLUGIN_HANDLED;

     return PLUGIN_CONTINUE;
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:13.


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