Jump to content

[HELP]How Do for team not shoot ?


Recommended Posts

I was wondering how to do some teams not shoot.Thanks in advance

If I get you, you're looking for this?

teamList = { -- you must add some teams here. 
["SWAT"] = true, 
["Police"] = true, 
["Civil"] = true 
function checkPlayerInTeam( ) 
    local team = getPlayerTeam( getLocalPlayer() ) 
    if team then 
        if ( teamList[getTeamName( team )] ) then 
        toggleControl("fire", false); 
    toggleControl("fire", true); 
setTimer(checkPlayerInTeam, 1000, 0 ) -- every second it will check if you are in team. 

Link to comment

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.
  • Create New...