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

[TF2] Admin teleport Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 08-20-2008 , 11:56   Re: [TF2] Admin teleport Plugin
Reply With Quote #21

Quote:
Originally Posted by xomp View Post
I tried this plugin in the past and it was epic fail. Can anyone confirm it working with TF2?
This does work on our windows box TF2 server, before and after the Heavy update.
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT is offline
xomp
BANNED
Join Date: Jul 2008
Old 08-20-2008 , 18:27   Re: [TF2] Admin teleport Plugin
Reply With Quote #22

Awesome! Thanks!
xomp is offline
Send a message via Skype™ to xomp
skatelouis
Member
Join Date: Aug 2008
Old 09-06-2008 , 15:06   Re: [TF2] Admin teleport Plugin
Reply With Quote #23

Do you know how I can build a command that will teleport the players 10 units high with some velocity? So the person at position :
origin[0] = x
origin[1] = y
origin[2] = z

Will be at :
origin[0] = x
origin[1] = y +10
origin[2] = z

If origin[1] is the good one for the Y. Im noobie with SourceMod...
It will help me a lot to know that for the plugin I want to create.

Last edited by skatelouis; 09-06-2008 at 15:10.
skatelouis is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 09-06-2008 , 20:47   Re: [TF2] Admin teleport Plugin
Reply With Quote #24

No-one should still be using this plugin, all updates to it have been and will be done in (http://forums.alliedmods.net/showthread.php?t=75520)
__________________
Arg! is offline
Spazman0
Member
Join Date: Jul 2008
Old 09-18-2008 , 20:38   Re: [TF2] Admin teleport Plugin
Reply With Quote #25

Indeed, PLEASE use the version in FuncommandsX, it has updated features such as team targeting etc.
Spazman0 is offline
REDSCOUT
Member
Join Date: Sep 2009
Old 02-16-2010 , 01:40   Re: [TF2] Admin teleport Plugin
Reply With Quote #26

Is there like some ways or commands I can add so I can add it to the admin menu??? If so, PLEASE UPDATE IT!!!!!
REDSCOUT is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 02-16-2010 , 01:49   Re: [TF2] Admin teleport Plugin
Reply With Quote #27

please note this is an UNAPPROVED plugin and you need to read the post above yours.
__________________
Arg! is offline
iamf2p
Member
Join Date: Nov 2018
Old 11-23-2018 , 04:50   Re: [TF2] Admin teleport Plugin
Reply With Quote #28

wow
iamf2p is offline
iamf2p
Member
Join Date: Nov 2018
Old 11-25-2018 , 00:46   Re: [TF2] Admin teleport Plugin
Reply With Quote #29

public void OnPluginStart(){

LoadTranslations("common.phrases");
RegAdminCmd("tep", teleport, ADMFLAG_SLAY);
RegAdminCmd("zmc", zmcop_teleport, ADMFLAG_SLAY);
RegAdminCmd("xlm", xlm_teleport, ADMFLAG_SLAY); //NOT WORKING

}

public Action teleport(int client, int args){

char arg1[32], arg2[32], arg4[32];

int check = 0;
decl Float:angle[3];
decl Floatrigin[3];
GetCmdArg(1, arg1, sizeof(arg1));
GetCmdArg(3, arg4, sizeof(arg4));

if(args >= 2 && GetCmdArg(2, arg2, sizeof(arg2))){

check = StringToInt(arg2);

}

char target_name[MAX_TARGET_LENGTH];
int target_list[MAXPLAYERS], target_count, target_list_1[MAXPLAYERS];
bool tn_is_ml;

if ((target_count = ProcessTargetString(
arg1,
client,
target_list,
MAXPLAYERS,
COMMAND_FILTER_ALIVE,
target_name,
sizeof(target_name),
tn_is_ml)) <= 0)
{

ReplyToTargetError(client, target_count);
return Plugin_Handled;
}

if ((target_count = ProcessTargetString(
arg4,
client,
target_list_1,
MAXPLAYERS,
COMMAND_FILTER_ALIVE,
target_name,
sizeof(target_name),
tn_is_ml)) <= 0)
{

ReplyToTargetError(client, target_count);
return Plugin_Handled;
}



for (int i = 0; i < target_count; i++)
{

SetGlobalTransTarget(target_list[i]);
SetGlobalTransTarget(target_list_1[i]);
if(check >= 1){
GetClientAbsAngles(target_list_1[i], angle);
GetClientAbsOrigin(target_list_1[i], origin);
TeleportEntity(target_list[i], origin, angle, NULL_VECTOR);
TF2_AddCondition(target_list[i], TFCond_SpeedBuffAlly, 2.5, 0);
TF2_AddCondition(target_list[i], TFCond_TeleportedGlow, 5.0, 0);
TF2_AddCondition(target_list[i], TFCond_Teleporting, 2.0, 0);
TF2_AddCondition(target_list[i], TFCond_SmallBulletResist, 1.5, 0);
TF2_AddCondition(target_list[i], TFCond_SmallBlastResist, 1.5, 0);
TF2_AddCondition(target_list[i], TFCond_SmallFireResist, 1.5, 0);
TF2_AddCondition(target_list[i], TFCond_Gas, 1.5, 0);
}
if(check <= 0){
GetClientAbsAngles(target_list[i], angle);
GetClientAbsOrigin(target_list[i], origin);
TeleportEntity(target_list_1[i], origin, angle, NULL_VECTOR);
TF2_AddCondition(target_list_1[i], TFCond_SpeedBuffAlly, 2.5, 0);
TF2_AddCondition(target_list_1[i], TFCond_TeleportedGlow, 5.0, 0);
TF2_AddCondition(target_list_1[i], TFCond_Teleporting, 2.0, 0);
TF2_AddCondition(target_list_1[i], TFCond_SmallBulletResist, 1.5, 0);
TF2_AddCondition(target_list_1[i], TFCond_SmallBlastResist, 1.5, 0);
TF2_AddCondition(target_list_1[i], TFCond_SmallFireResist, 1.5, 0);
TF2_AddCondition(target_list_1[i], TFCond_Gas, 1.5, 0);
}

}


return Plugin_Handled;

}


public Action zmcop_teleport(int client, int args){

char arg1[32], arg2[32];

int check = 0;
decl Float:angle[3];
decl Floatrigin[3];
GetCmdArg(1, arg1, sizeof(arg1));

if(args >= 2 && GetCmdArg(2, arg2, sizeof(arg2))){

check = StringToInt(arg2);

}

char target_name[MAX_TARGET_LENGTH];
int target_list[MAXPLAYERS], target_count;
bool tn_is_ml;

if ((target_count = ProcessTargetString(
arg1,
client,
target_list,
MAXPLAYERS,
COMMAND_FILTER_ALIVE,
target_name,
sizeof(target_name),
tn_is_ml)) <= 0)
{
ReplyToTargetError(client, target_count);
return Plugin_Handled;
}

for (int i = 0; i < target_count; i++)
{

SetGlobalTransTarget(target_list[i]);
if(check >= 1){
GetClientAbsAngles(target_list[i], angle);
GetClientAbsOrigin(target_list[i], origin);
TeleportEntity(client, origin, angle, NULL_VECTOR);
TF2_AddCondition(client, TFCond_SpeedBuffAlly, 2.5, 0);
TF2_AddCondition(client, TFCond_TeleportedGlow, 5.0, 0);
TF2_AddCondition(client, TFCond_Teleporting, 2.0, 0);
TF2_AddCondition(client, TFCond_SmallBulletResist, 1.5, 0);
TF2_AddCondition(client, TFCond_SmallBlastResist, 1.5, 0);
TF2_AddCondition(client, TFCond_SmallFireResist, 1.5, 0);
TF2_AddCondition(client, TFCond_Gas, 1.5, 0);
}
if(check <= 0){
GetClientAbsAngles(client, angle);
GetClientAbsOrigin(client, origin);
TeleportEntity(target_list[i], origin, angle, NULL_VECTOR);
TF2_AddCondition(target_list[i], TFCond_TeleportedGlow, 5.0, 0);
TF2_AddCondition(target_list[i], TFCond_SpeedBuffAlly, 2.5, 0);
TF2_AddCondition(target_list[i], TFCond_Teleporting, 2.0, 0);
TF2_AddCondition(target_list[i], TFCond_SmallBulletResist, 1.5, 0);
TF2_AddCondition(target_list[i], TFCond_SmallBlastResist, 1.5, 0);
TF2_AddCondition(target_list[i], TFCond_SmallFireResist, 1.5, 0);
TF2_AddCondition(target_list[i], TFCond_Gas, 1.5, 0);
}

}


return Plugin_Handled;

}


how about double muti targeting?
iamf2p is offline
Reply


Thread Tools
Display Modes

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 21:08.


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