Jump to content

Why it's doesn't work!(


Vladimir5

Recommended Posts

This script doesn't work,it's from wiki.

function createTeamsOnStart () 
    teamAdmmin = createTeam ( "Admin", 0, 255, 0 ) --change the 3 numbers(0,255,0), the first number is ColourR, the second is ColourG, and the last one is ColourB 
    teamFreeroamers = createTeam ( "Freeroamer", 200, 0, 100 ) 
end 
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) --we attach the function to this resource's root element 

Link to comment

Create the teams OUTSIDE the function

 teamAdmmin = createTeam ( "Admin", 0, 255, 0 ) --change the 3 numbers(0,255,0), the first number is ColourR, the second is ColourG, and the last one is ColourB 
    teamFreeroamers = createTeam ( "Freeroamer", 200, 0, 100 ) 

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...