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

Map Teleportation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 09-17-2020 , 12:20   Map Teleportation
Reply With Quote #1

some maps have teleport thingys in them that the teleport you wherever the map developer designed them to teleport you,

i was wondering if there is a way to prevent that from happening or at least know whenever its happening just like hooking onto deathmsg only i want to gain information on who used the teleport and when he used it if i wasn't clear enough i can upload a video of what i am talking about

ty.
Ynet is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-17-2020 , 13:35   Re: Map Teleportation
Reply With Quote #2

I think so, if the distance a player moved within a second is only possible via teleportation, you know they didn't walk there.
__________________
Bugsy is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-17-2020 , 14:12   Re: Map Teleportation
Reply With Quote #3

Quote:
Originally Posted by Ynet View Post
or at least know whenever its happening.
Sounds like you've got some work to do. Here is something to get you started.
Code:
#include amxmodx public plugin_init() {     register_touch("trigger_teleport", "player", "tport"); } public tport() {     client_print(0,print_center,"Teleporter used!"); }
Code:
#include amxmodx #include engine #include fakemeta public plugin_init() {     register_touch("trigger_teleport", "player", "tport"); } public tport(teleporter) {     teleporter = engfunc(EngFunc_FindEntityByString, teleporter, "classname","trigger_teleport")     if(is_valid_ent(teleporter) && !is_user_alive(teleporter))         entity_set_int(teleporter, EV_INT_solid, SOLID_NOT); }
Spoiler
__________________

Last edited by DJEarthQuake; 09-20-2020 at 14:20. Reason: Lighter sound footprint.
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-17-2020 , 22:33   Re: Map Teleportation
Reply With Quote #4

You can probably disable them by either deleting the entity from the map in plugin_precache() (I think that was when you do that type of stuff) or maybe changing the parameters of the entity.
__________________
fysiks is offline
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 09-18-2020 , 07:55   Re: Map Teleportation
Reply With Quote #5

Quote:
Originally Posted by DJEarthQuake View Post
Sounds like you've got some work to do. Here is something to get you started.


Code:
#include amxmodx public plugin_init() {     register_touch("trigger_teleport", "player", "tport"); } public tport() {     client_print(0,print_center,"Teleporter used!"); }

I've a few plugins not all combined that do this. The other one makes the teleports breakable so we can destroy them.

that works perfectly , now i can automaticlly kill all the campers that use these teleports ;--) thanks mate


Quote:
Originally Posted by fysiks View Post
You can probably disable them by either deleting the entity from the map in plugin_precache() (I think that was when you do that type of stuff) or maybe changing the parameters of the entity.
the problem with doing that is that it stays forever and as far as i know once you delete something the only way to bring it back is by restarting the server or changing map ;d , i only want it to happen on a certain round not forever

Last edited by Ynet; 09-18-2020 at 07:57. Reason: added a quote
Ynet is offline
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 09-18-2020 , 08:05   Re: Map Teleportation
Reply With Quote #6

if anyone else is looking for this, your welcome.

PHP Code:
public plugin_init()

{
    
register_touch("trigger_teleport""player""tport");
}


public 
tport(teleporter,id)
{
    
    static 
pName32 ];
    
    
get_user_nameidpNamecharsmaxpName ) );
    
    
client_print(0,print_center,"%s Teleporter used!",pName);
    
    
user_silentkill(id)



Last edited by Ynet; 09-18-2020 at 08:05.
Ynet is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-18-2020 , 09:10   Re: Map Teleportation
Reply With Quote #7

Nice call them out!!

Updating my OP with some more code.
__________________

Last edited by DJEarthQuake; 09-18-2020 at 10:39.
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-18-2020 , 23:42   Re: Map Teleportation
Reply With Quote #8

Quote:
Originally Posted by Ynet View Post
the problem with doing that is that it stays forever and as far as i know once you delete something the only way to bring it back is by restarting the server or changing map ;d , i only want it to happen on a certain round not forever
Basically, yes. You could probably recreate the teleport entities but that's more work than necessary since you have a much better alternative.
__________________
fysiks 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 12:33.


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