Jump to content

autoteam


jkub

Recommended Posts

I have recently made a script that makes 4 teams for the server... thats pretty much it but ive tryed making it to where the players were automaticly set to the right team based on either their ip, playername, and others. I have tryed all the ways i could find to make it to where players are automaticly set to a team rather it would be ip or name. but i couldent get them to work....lets say we did it by playername

local pname = getClientName ( source )

--this is where im not doing it right for sure

if (pname)++"Dr.PhillyBlunt" then

and also i have tryed other ways but couldent get any of them to work.

how would i do the if the name is "_" and make this work right?

Link to comment

About the "_", I had a namekicker somewhere... You could search for it on these forums.

About automatic teams: I don't really understand how you're planning to do it... You actually want it INSIDE your Lua file? In that case, 'if (pname)++"Dr.PhillyBlunt" then' should be somewhat correct. But I guess you want it to be saved and automatically read from an external file?

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