Jump to content

Basic script ????


Recommended Posts

Posted
createTeam 
addCommandHandler 
setPlayerTeam 

use these, then use playerSource from the handler to set the team.

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted

Ah is true, sry.

  
local unemployed = createTeam("Unemployed", 255, 255, 255) 
   function unemploy(source) 
    setPlayerTeam(source, unemployed) 
   end 
   addCommandHandler('leavejob', unemploy) 
  

"Keep making it simplex."

Posted
Ah is true, sry.
  
local unemployed = createTeam("Unemployed", 255, 255, 255) 
   function unemploy(source) 
    setPlayerTeam(source, unemployed) 
   end 
   addCommandHandler('leavejob', unemploy) 
  

He mean this:

  
function unemploy (source) 
setPlayerTeam(source, getTeamFromName("Unemployed")) 
end 
addCommandHandler("leavejob, unemploy) 
 

  • Moderators
Posted

Don't give immature - greedy - screaming baby's new toys will you!

He has to make his first steps on his own... and not driving cars yet.

I am new scripterrrrrrrrrrrrrrrrrrr

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

I don't see future for this kind of people in scripting... He said he's a new scripter just to remain as a poor man waiting for someone who would be humble to make scripts free for him.

"Keep making it simplex."

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