LxnxFree

Kick Players

Recommended Posts

I need a script with which I can teleport to a player with / tp (player id) who could help me?
Edited by LxnxFree

Share this post


Link to post
Share on other sites
mp.events.addCommand('kick', (player, target) => {
	let newTarget = mp.players.at(target);
	if(!target || isNaN(target)) return player.outputChatBox("Syntax: /kick [playerID]");
	if(newTarget === null) return player.outputChatBox("There is no player online with the ID given.")
	newTarget.outputChatBox("You have been kicked from the server.");
	newTarget.kick('Kicked.');
});

https://wiki.rage.mp/index.php?title=Player::kick

Share this post


Link to post
Share on other sites

Thanks

 

I need a script with which I can teleport to a player with / tp (player id) who could help me?

 

Share this post


Link to post
Share on other sites
On 1/19/2020 at 10:50 AM, LxnxFree said:

Thanks

 

I need a script with which I can teleport to a player with / tp (player id) who could help me?

 

Should try a smaller font my dude. 

Share this post


Link to post
Share on other sites

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.