chkang

Player's tent respawn

3 posts in this topic

Hello guys

I'm making a spawn point based on the user's tent.

To make this, Getting a tent's position infomation(x-y) based on the player's UID.

I'm searching this on this forum but I didn't find any solution

anyone please give me some advice?

Concept of the tent spawn is below.

if(get player UID && tent))
{
 
 Add tent respawn to the spawn array

}else{

normal spawn

}

Also I want to force players to disconnect only at near pkayer's tent or wipe player's data off database


_radius = center of the tent

if(player in _radius)
{

  can disconnect
  
}else{

 "you are not near your tent!"

}

Is this concept possible?

 

thanks for reading me

Share this post


Link to post
Share on other sites

The disconnecting part would be a pain and wouldn't stop people from force closing arma. You could try and detect when they disconnect and punish them somehow if they were not near their tent. As far as the spawning, just parse the sql database for a matching tent class and UID then pull the location from there. You could probably run into trouble with multiple tents/territories. 

Share this post


Link to post
Share on other sites
On Thursday, May 12, 2016 at 1:55 PM, Andr3w said:

The disconnecting part would be a pain and wouldn't stop people from force closing arma. You could try and detect when they disconnect and punish them somehow if they were not near their tent. As far as the spawning, just parse the sql database for a matching tent class and UID then pull the location from there. You could probably run into trouble with multiple tents/territories. 

I restricted the tent number of each player as 1. ppl can respawn at their tent. 

Now I'm making some script that if a tent destroyed the owner would die when he is not ingame. Also giving a reward to the tent killer.

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.