z24d Posted October 18, 2015 Share Posted October 18, 2015 وش المشكلة بالكود ذا setTeamFriendlyFire(zTeam,false) local zTeam = createTeam("Players",255,255,0) addEventHandler("onPlayerJoin", root, function() setPlayerTeam(source,zTeam) end ) ابي الفريق اذا طلقو علا بعض مايصير شيء شسالفهه Link to comment
TAPL Posted October 18, 2015 Share Posted October 18, 2015 غير مكان السطر الأول و الثاني بحيث السطر الثاني تحطه قبل الأول يفترض عندك خطأ واضح بالدي بق Link to comment
z24d Posted October 18, 2015 Author Share Posted October 18, 2015 مسكور خيو لكن ابي اخليهم مايركبون سيارات بعض ابي الفنكشات كلها وآبي احط عدد المتواجدين بالتيم بمكان معين مثلاً دي اكس Link to comment
TAPL Posted October 18, 2015 Share Posted October 18, 2015 Event: 'onVehicleStartEnter' getVehicleController getPlayerTeam cancelEvent Event: 'onClientRender' getTeamFromName getPlayersInTeam getElementPosition getDistanceBetweenPoints3D dxDrawText Link to comment
z24d Posted October 18, 2015 Author Share Posted October 18, 2015 (edited) addEventHandler('onClientRender',root, function() local nameTeam = getTeamFromName("Admin") local playersonTeam = getPlayersInTeam(nameTeam) local x, y, z = getPedBonePosition(sPed, 4) local sx, sy = getScreenFromWorldPosition(x, y, z+0.9) if sx and sy then dxDrawText(playersonTeam , sx + 1, sy + 1, sx + 1, sy + 3, tocolor(0, 0, 0, 255), 1.3, "bankgothic", "center") dxDrawText(playersonTeam , sx + 1, sy - 1, sx - 1, sy + 3, tocolor(0, 0, 0, 255), 1.3, "bankgothic", "center") dxDrawText(playersonTeam , sx - 1, sy - 1, sx - 1, sy - 3, tocolor(0, 0, 0, 255), 1.3, "bankgothic", "center") dxDrawText(playersonTeam , sx, sy, sx, sy, tocolor(r, g, b, 255), 1.3, "bankgothic", "center") end end ) تعديل## Edited October 18, 2015 by Guest Link to comment
' A F . Posted October 18, 2015 Share Posted October 18, 2015 table getPlayersInTeam ( team theTeam ) Link to comment
' A F . Posted October 18, 2015 Share Posted October 18, 2015 (edited) يقولك جدول .. يعني for i,v in ipairs ( getPlayersInTeam ( getTeamFromName ( 'Admin' ) ) ) do outputChatBox('* Testing ',v,0,255,0,true) end Edited October 18, 2015 by Guest Link to comment
Rockyz Posted October 18, 2015 Share Posted October 18, 2015 ياخي عدل أسامي مواضيعك الحين ماعرف وش ذة ووش ذة Link to comment
' A F . Posted October 18, 2015 Share Posted October 18, 2015 ياخي عدل أسامي مواضيعك الحين ماعرف وش ذة ووش ذة +1 Link to comment
z24d Posted October 18, 2015 Author Share Posted October 18, 2015 function EnterSpawn() if team == "Admin" then -- if not ( getPlayerTeam(localPlayer) == getTeamFromName("Admin") ) then return triggerServerEvent("cantJoin",localPlayer) end triggerServerEvent("spawnMe", localPlayer, skinID, sX, sY, sZ, sR, team) unbindKey("arrow_l", "down", sLeft) unbindKey("arrow_r", "down", sRight) unbindKey("enter", "down", EnterSpawn) showPlayerHudComponent("all", true) removeEventHandler("onClientPreRender", root, drawTeamName) destroyElement(sPed) triggerServerEvent("spawnMe", localPlayer, skinID, sX, sY, sZ, sR, team) لاهنت ياخوي شف الكود هذا حق مود اختيار الشخصية حق سعد حطيت شخصيةة مايدخلها الا الي بتيم الادمن كل شيء تمام لكن المشكلة التيمات الثانية ماقدر اختار منها شيء اضغط انتر مايقول شيء ولا يسوي شيء Link to comment
z24d Posted October 18, 2015 Author Share Posted October 18, 2015 حليتها بعد عناء طويل : ( كلها else 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