flapjack3003 Posted August 8, 2014 Share Posted August 8, 2014 انا عايز كود يخلى يظهر اسم التيم الى الاعب فيه فى labe و كود عدد الاعبين الى فى التيم GUIEditor_Label = {} GUIEditor_Label[1] = guiCreateLabel(9,10,221,47,"Your Team is :",false,GUIEditor_Image[1]) Link to comment
hassan.k.s.a Posted August 8, 2014 Share Posted August 8, 2014 (edited) اسم التيم : getPlayerTeam getTeamName العدد : getPlayerTeam countPlayersInTeam اذا تبيه يتحدث ف اليبل : guiSetText https://wiki.multitheftauto.com/wiki/OnClientRender او guiSetText setTimer Edited August 8, 2014 by Guest Link to comment
flapjack3003 Posted August 8, 2014 Author Share Posted August 8, 2014 انا جربت ما اشتغلت ممكن تصحيح كود guiSetText(GUIEditor_Label[1],"Your team is: "..getPlayerTeam(getLocalPlayer())) Link to comment
hassan.k.s.a Posted August 8, 2014 Share Posted August 8, 2014 انا جربت ما اشتغلت ممكن تصحيح كود guiSetText(GUIEditor_Label[1],"Your team is: "..getPlayerTeam(getLocalPlayer())) انت استخدمت getPlayerTeam لحالها , استخدم : getTeamName وشوف المثال يمكن يسآعدك Link to comment
flapjack3003 Posted August 8, 2014 Author Share Posted August 8, 2014 ممكن تعملى الكود لانى مش عارف اعمله Link to comment
hassan.k.s.a Posted August 8, 2014 Share Posted August 8, 2014 local plrTeam = getPlayerTeam(getLocalPlayer()) -- فالبدآيه نجيب تيم الاعب if ( plrTeam ) then -- نتأكد اذا كآن معآه تيم او لا guiSetText(GUIEditor_Label[1],"Your team is: "..getTeamName(plrTeam)) -- نحط اسم التيم لاكن اي تيم ؟ التيم الي جلبآنه من الاعب 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