TroyBoy Posted February 16, 2012 Share Posted February 16, 2012 how can i do the when a player enter the game it will send to all this message playername has connected to the game Link to comment
Kenix Posted February 16, 2012 Share Posted February 16, 2012 (edited) Use resource joinquit.( have in resources ) If not download latest resources http://code.google.com/p/mtasa-resources/downloads/list Edited February 16, 2012 by Guest Link to comment
GTX Posted February 16, 2012 Share Posted February 16, 2012 function playerConnect(playerNick, playerIP, playerUsername, playerSerial, playerVersionNumber) outputChatBox("* " .. playerNick .. " has connected the game", getRootElement(), 255, 100, 100, false) end addEventHandler("onPlayerConnect", getRootElement(), playerConnect) Link to comment
TroyBoy Posted February 16, 2012 Author Share Posted February 16, 2012 HOW CAN I do that when i assaign player to team when he will quit he will be save in the team and when he will connect again he still will be in the team Link to comment
GTX Posted February 16, 2012 Share Posted February 16, 2012 You can do that with these: createTeam setPlayerTeam getElementData setElementData Link to comment
TroyBoy Posted February 16, 2012 Author Share Posted February 16, 2012 i did a command to put player in team but when i disconnect and connect i am not in this team 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