MrWardy

Players teleport themselves to to events [Admin console script]

7 posts in this topic

Posted (edited)

Quite simple and easy, used for the server i help maintain 

event = player addAction ["<t color='#FF0000'>Teleport to event</t>", {player setPos [x,y,0];}];

This line add the prompt for them to teleport to the desired co-ordinates.  (Run through "global")

 

player removeAction event;

This will remove the prompt for all players. 

 

Im still new, so if anyone could help me with the {hint "you have been teleported"} that would be great.

 

 

Edited by MrWardy
1 person likes this

Share this post


Link to post
Share on other sites

we need a way to make it so players don't kill each other when they teleport to the event. Maybe a

removeAllWeapons player;

idk but i will take a look

Share this post


Link to post
Share on other sites
Advertisement
4 hours ago, Metalman10 said:

we need a way to make it so players don't kill each other when they teleport to the event. Maybe a


removeAllWeapons player;

idk but i will take a look

i believe that would remove the weapons from every player, unless we set it in a radius.

Share this post


Link to post
Share on other sites
18 hours ago, MrWardy said:

i believe that would remove the weapons from every player, unless we set it in a radius.

hmmm i think I'm on to something

Share this post


Link to post
Share on other sites
20 hours ago, Metalman10 said:

hmmm i think I'm on to something

Im looking forward to this, post all updates if you can :)

1 person likes this

Share this post


Link to post
Share on other sites

Posted (edited)

This is something i got going on...

not something to be proud of BUT it works

//Admin Event Script
Diag_log "Initializing Admin Event Script";
systemChat "Admin Event Starting In 10 Minutes! SAVE YOUR GEAR BEFORE YOU JOIN!";
["InfoTitleAndText", ["EXP - Admin Event", "Admin Event starting in 10 mins! SAVE YOUR GEAR BEFORE YOU JOIN!"]] call ExileClient_gui_toaster_addTemplateToast;
sleep 5;
systemChat "Admin Event Starting In 10 Minutes! SAVE YOUR GEAR BEFORE YOU JOIN!";
["InfoTitleAndText", ["EXP - Admin Event", "Admin Event starting in 10 mins! SAVE YOUR GEAR BEFORE YOU JOIN!"]] call ExileClient_gui_toaster_addTemplateToast;
sleep 5;
systemChat "Admin Event Starting In 10 Minutes! SAVE YOUR GEAR BEFORE YOU JOIN!";
["InfoTitleAndText", ["EXP - Admin Event", "Admin Event starting in 10 mins! SAVE YOUR GEAR BEFORE YOU JOIN!"]] call ExileClient_gui_toaster_addTemplateToast;
sleep 300;
systemChat "Admin Event Starting In 5 Minutes! SAVE YOUR GEAR BEFORE YOU JOIN!";
["InfoTitleAndText", ["EXP - Admin Event", "Admin Event starting in 5 mins! SAVE YOUR GEAR BEFORE YOU JOIN!"]] call ExileClient_gui_toaster_addTemplateToast;
sleep 5;
systemChat "Admin Event Starting In 5 Minutes! SAVE YOUR GEAR BEFORE YOU JOIN!";
["InfoTitleAndText", ["EXP - Admin Event", "Admin Event starting in 5 mins! SAVE YOUR GEAR BEFORE YOU JOIN!"]] call ExileClient_gui_toaster_addTemplateToast;
sleep 300;
systemChat "Admin Event Starting In 2 Minutes! SAVE YOUR GEAR BEFORE YOU JOIN!";
["InfoTitleAndText", ["EXP - Admin Event", "Admin Event starting in 2 mins! SAVE YOUR GEAR BEFORE YOU JOIN!"]] call ExileClient_gui_toaster_addTemplateToast;
sleep 5;
systemChat "Admin Event Starting In 2 Minutes! SAVE YOUR GEAR BEFORE YOU JOIN!";
["InfoTitleAndText", ["EXP - Admin Event", "Admin Event starting in 2 mins! SAVE YOUR GEAR BEFORE YOU JOIN!"]] call ExileClient_gui_toaster_addTemplateToast;
sleep 95;
systemChat "Admin Event Starting NOW!! SAVE YOUR GEAR BEFORE YOU JOIN!";
["InfoTitleAndText", ["EXP - Admin Event", "Admin Event starting! SAVE YOUR GEAR BEFORE YOU JOIN!"]] call ExileClient_gui_toaster_addTemplateToast;
sleep 5;
systemChat "Admin Event Starting NOW!! SAVE YOUR GEAR BEFORE YOU JOIN!";
["InfoTitleAndText", ["EXP - Admin Event", "Admin Event starting! SAVE YOUR GEAR BEFORE YOU JOIN!"]] call ExileClient_gui_toaster_addTemplateToast;
sleep 5;
	event = player addAction ["<t color='#07F1DC'>Teleport to Admin Event</t>", 
		{player setPos [x,y,0]; 	// Set cords for the TP.
			_loadout = getUnitLoadout player;	
				{if((typeName _x) isEqualTo "STRING") then {[player,_x] call ExileClient_util_playerEquipment_remove;};
			if((typeName _x) isEqualTo "ARRAY") then{{if((typeName _x) isEqualTo "STRING") then{[player,_x] call ExileClient_util_playerEquipment_remove;};
				if((typeName _x) isEqualTo "ARRAY") then{{if((typeName _x) isEqualTo "STRING") then{[player,_x] call ExileClient_util_playerEquipment_remove;}
		else{hint "You have been teleported to the Admin Event! <br/> Have fun!";};} forEach _x;}} forEach _x;}} forEach _loadout;}];
sleep 55;
player removeAction event;
Diag_log "Admin Event Closed for joining.";
systemChat "Admin Event Closed for joining."

EDIT :

Added that hint that you asked for. it will tell the player that they have been teleported.

Edited by Metalman10
Updated for Hint instead of System Chat

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.