Simple Teams 1.0.1

   (4 reviews)
Sign in to follow this  

1 Screenshot

About This File

Prevents players of the same team shooting eachother.

 

Installing

Put teams into your server's client_packages directory, then add require('teams'); to client_packages/index.js.

 

Using

It's pretty simple, just set currentTeam shared variable of a player like this:

// both strings and numbers should work
playerEntity.data.currentTeam = whatever;
playerEntity.setVariable("currentTeam", whatever);

And set currentTeam to null if you want to reset someone's team.

 

Note

This resource doesn't prevent all kinds of friendly fire, for example projectile weapons like RPG can hurt teammates, you can still run teammates over with a vehicle etc. You can check if both killer and victim is on the same team and punish the killer, though.


What's New in Version 1.0.1   See changelog

Released

Replaced entityDataChange with addEventHandler.




User Feedback

Create an account or sign in to leave a review

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

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

rchl2

Report ·

  

good stuff

Share this review


Link to review
hubba

Report ·

  

beast team

Share this review


Link to review
GL1TCH1337

Report ·

  

rp gamemode when?

Share this review


Link to review
ragempdev

Report ·

  

hey vance ..... its team api ....

Share this review


Link to review