Ahmed Abo-elezz Posted November 16, 2014 Share Posted November 16, 2014 i want code about dont show things to any player in game whan some player start job for example i made job taxi and whan i jon outputchatbox you are driver now my problem whan outputchabox show this show to me and to other player i want it show to me only and if other player get jop show to him only please help me fast Link to comment
Ahmed Abo-elezz Posted November 16, 2014 Author Share Posted November 16, 2014 like this i want chat show to player if he got jop dont show to all player function teamSet ( ) local team = getTeamFromName ( "Taxi Driver" ) if team then setPlayerTeam ( source, team ) setPlayerNametagColor ( source, 0, 255, 0 ) setElementModel(source, 57) createVehicle(420, 1777.3017578125, -1891.779296875, 13.157614707947) outputChatBox("you are now driver", thePlayer) else local teamw = getTeamFromName ( "Taxi Driver" ) if teamw then cancelEvent() outputChatBox("You are already driver!", source) end end end Link to comment
Perfect Posted November 17, 2014 Share Posted November 17, 2014 In your code, at line #8, 'thePlayer' isn't define, use Source. function teamSet ( ) local team = getTeamFromName ( "Taxi Driver" ) if team then setPlayerTeam ( source, team ) setPlayerNametagColor ( source, 0, 255, 0 ) setElementModel(source, 57) createVehicle(420, 1777.3017578125, -1891.779296875, 13.157614707947) outputChatBox("you are now driver", source) else local teamw = getTeamFromName ( "Taxi Driver" ) if teamw then cancelEvent() outputChatBox("You are already driver!", source) end end end Link to comment
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