Raised This Month: $ Target: $400
 0% 

How to check if player is in teleporter?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 10-08-2009 , 16:02   How to check if player is in teleporter?
Reply With Quote #1

Is there a way to check if a player is in a teleporter (trigger_teleport) ? Maybe catch the player if the player touches the teleporter or something?
KadiR is offline
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-08-2009 , 16:05   Re: How to check if player is in teleporter?
Reply With Quote #2

You can probably check pev_classname at FM_Touch, although I'm not quite sure of it.
vitorrd is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2009 , 16:24   Re: How to check if player is in teleporter?
Reply With Quote #3

register_touch( "trigger_teleport", "player", "CPlayer_TeleporterTouch" );

public CPlayer_TeleporterTouch ( const Teleport, const Player )
{

}
__________________
Arkshine is offline
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 22:34.


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