z24d Posted October 18, 2015 Posted October 18, 2015 وش المشكلة بالكود ذا setTeamFriendlyFire(zTeam,false) local zTeam = createTeam("Players",255,255,0) addEventHandler("onPlayerJoin", root, function() setPlayerTeam(source,zTeam) end ) ابي الفريق اذا طلقو علا بعض مايصير شيء شسالفهه لا اله الا انت سبحانك اني كنت من الظالمين..# Name: #Monster , #Master Skype : fcbmjnon
TAPL Posted October 18, 2015 Posted October 18, 2015 غير مكان السطر الأول و الثاني بحيث السطر الثاني تحطه قبل الأول يفترض عندك خطأ واضح بالدي بق
z24d Posted October 18, 2015 Author Posted October 18, 2015 مسكور خيو لكن ابي اخليهم مايركبون سيارات بعض ابي الفنكشات كلها وآبي احط عدد المتواجدين بالتيم بمكان معين مثلاً دي اكس لا اله الا انت سبحانك اني كنت من الظالمين..# Name: #Monster , #Master Skype : fcbmjnon
TAPL Posted October 18, 2015 Posted October 18, 2015 Event: 'onVehicleStartEnter' getVehicleController getPlayerTeam cancelEvent Event: 'onClientRender' getTeamFromName getPlayersInTeam getElementPosition getDistanceBetweenPoints3D dxDrawText
z24d Posted October 18, 2015 Author 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 لا اله الا انت سبحانك اني كنت من الظالمين..# Name: #Monster , #Master Skype : fcbmjnon
' A F . Posted October 18, 2015 Posted October 18, 2015 table getPlayersInTeam ( team theTeam ) Dis ; AF.#0941
z24d Posted October 18, 2015 Author Posted October 18, 2015 يصير كذآ؟ لا اله الا انت سبحانك اني كنت من الظالمين..# Name: #Monster , #Master Skype : fcbmjnon
' A F . Posted October 18, 2015 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 Dis ; AF.#0941
Rockyz Posted October 18, 2015 Posted October 18, 2015 ياخي عدل أسامي مواضيعك الحين ماعرف وش ذة ووش ذة
' A F . Posted October 18, 2015 Posted October 18, 2015 ياخي عدل أسامي مواضيعك الحين ماعرف وش ذة ووش ذة +1 Dis ; AF.#0941
z24d Posted October 18, 2015 Author 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) لاهنت ياخوي شف الكود هذا حق مود اختيار الشخصية حق سعد حطيت شخصيةة مايدخلها الا الي بتيم الادمن كل شيء تمام لكن المشكلة التيمات الثانية ماقدر اختار منها شيء اضغط انتر مايقول شيء ولا يسوي شيء لا اله الا انت سبحانك اني كنت من الظالمين..# Name: #Monster , #Master Skype : fcbmjnon
z24d Posted October 18, 2015 Author Posted October 18, 2015 حليتها بعد عناء طويل : ( كلها else لا اله الا انت سبحانك اني كنت من الظالمين..# Name: #Monster , #Master Skype : fcbmjnon
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