E-mail Posted September 7, 2011 Share Posted September 7, 2011 Hi i have start the script and start assult gamemode and choose Team But No Msg show to me and i but it client in meta.xml see addEvent ( "onPlayerChooseTeam" , true ) addEventHandler ( "onPlayerChooseTeam" , root , function ( teamName ) local team = getTeamFromName ( teamName ) setPlayerTeam ( source , team ) outputChatBox("You have successfully choosed "..getTeamName(team).." team.", resPlayer, root, 255, 255, 0) end ) Link to comment
JR10 Posted September 7, 2011 Share Posted September 7, 2011 What is this? onPlayerChooseTeam doesn't exist, so you added, but you really expect it to work like that? You must use: triggerEvent, triggerClientEvent, triggerServerEvent To trigger a custom event. 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