1LoL1 Posted November 9, 2015 Posted November 9, 2015 Hello, i created script /police, /trucker, /nothing but how i can to: /TEAM /police = setPlayerTeam to Police /trucker = setPlayerTeam to Trucker /nil= setPlayerTeam to Nil please can anyone help me or get me functions? function w (source) setPlayerTeam(source, team) end addCommandHandler("trucker", w) function ww (source) setPlayerTeam(source, team2) end addCommandHandler("police", ww) function www (source) setPlayerTeam(source, nil) end addCommandHandler("nil", www)
Noki Posted November 9, 2015 Posted November 9, 2015 function setTeam(plr, _, team) if team == "nil" then setPlayerTeam(plr, nil) return end setPlayerTeam(plr, getTeamFromName(team)) end
1LoL1 Posted November 9, 2015 Author Posted November 9, 2015 function setTeam(plr, _, team) if team == "nil" then setPlayerTeam(plr, nil) return end setPlayerTeam(plr, getTeamFromName(team)) end Thanks works.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now