Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 Skins = {140,228,227,189} function checkPlayerModel(player) for i,v in ipairs(Skins) do if getElementModel(player) == v then return true end end return false end addEventHandler("onElementModelChange",root, function(oldSkin) local accName = getAccountName ( getPlayerAccount ( source ) ) if getElementType(source) == "player" and checkPlayerModel(source) then if not isGuestAccount( getPlayerAccount ( source ) ) then if not isObjectInACLGroup ('user.'..accName, aclGetGroup ( "VIP" ) ) then setTimer(function(source) outputChatBox("This Skin only for VIP.", source, 255, 0, 0, true) setElementModel(source,oldSkin) end,500,1,source) end end end end) No
YourMind Posted June 30, 2016 Posted June 30, 2016 جربته حالياً شغال عندي اتأكد انك مش معاك رتبة الفي اي بي
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 جربته حالياً شغال عندياتأكد انك مش معاك رتبة الفي اي بي مانها معي ,,, يمكن مشان السكنات والتيمات موجودين بالكلينت ما ضبط ؟
YourMind Posted June 30, 2016 Posted June 30, 2016 ايه اللي دخل الاسكنات و التيمات بالموضوع ? D: اطرحلي الكلينت اشوفه
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 ايه اللي دخل الاسكنات و التيمات بالموضوع ? D:اطرحلي الكلينت اشوفه الحين شوف انا عملت تيم وفيه سكنات للفيب وحاليا اي لاعب بيقدر يختارهم انا بدي اذا كان اللاعب موجود في جروب الاسل الفيب فقط بيقدر يختارهم وإذا مانه موجود ما يقدر والسكنات موجودة بالكلينت مدري يمكن إذا كان الكود كلينت يضبط
YourMind Posted July 1, 2016 Posted July 1, 2016 لو كانت الاكواد كلينت يبقي انت اللي هاتشوف الاسكن اتغيرت انما باقي الاعبين هايشوفوك بنفس الاسكن اللي انت كنت بيها قبل ماتغيرها يعني الاسكن تعتبر مش محطوطالك triggerServerEvent استخدم
Abo-Al3ZaB Posted July 1, 2016 Author Posted July 1, 2016 لو كانت الاكواد كلينت يبقي انت اللي هاتشوف الاسكن اتغيرت انما باقي الاعبين هايشوفوك بنفس الاسكن اللي انت كنت بيها قبل ماتغيرها يعني الاسكن تعتبر مش محطوطالك triggerServerEvent استخدم خلاص تم حل المشكلة ,,, : ] + يعطيكم العافية ما قصرتو
Abo-Al3ZaB Posted July 1, 2016 Author Posted July 1, 2016 الله يعافيك , وحياك الله معلش غلبتكم معي بس في كود صغير بدي اعرف وين الخطأ فيه addEventHandler("onPlayerLogin", root, function (_ ,accName ) if isObjectInACLGroup("user." .. accName, aclGetGroup("VIP")) then setElementData(source,"VIP", true) end end )
!#NssoR_) Posted July 1, 2016 Posted July 1, 2016 addEventHandler("onPlayerLogin", root, function (_ ,accName ) if isObjectInACLGroup("user." .. getAccountName(accName), aclGetGroup("VIP")) then setElementData(source,"VIP", true) end end)
Abo-Al3ZaB Posted July 1, 2016 Author Posted July 1, 2016 addEventHandler("onPlayerLogin", root, function (_ ,accName ) if isObjectInACLGroup("user." .. getAccountName(accName), aclGetGroup("VIP")) then setElementData(source,"VIP", true) end end) ما زبط ,,, التحقق كلينت elseif ( getElementData(player,"VIP") ~= 1 ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then exports["guimessages"]:outputClient(viptext, 255, 0, 0) سيرفر addEventHandler("onPlayerLogin", root, function (_ ,accName ) if isObjectInACLGroup("user." .. getAccountName(accName), aclGetGroup("VIP")) then setElementData(source,"VIP", true) end end)
Abo-Al3ZaB Posted July 2, 2016 Author Posted July 2, 2016 ممكن تطرح كود التحقق كامل ؟ و ايه هي فكرته ؟ الفنكشن طويل فيه شغلات ثانية + هاد كود التحقق اللي بالفنكشن الفكرة انه ما حد يقدر يختار الشخصيات غير اللي الالمنت داتا تاعه VIP وبدي اعمل اللي اسم حسابه موجود باسل الفيب يصير الالمنت داتا تاعه فيب مشان يقدر يختار الشخصية
YourMind Posted July 2, 2016 Posted July 2, 2016 ممكن تطرح كود التحقق كامل ؟ و ايه هي فكرته ؟ الفنكشن طويل فيه شغلات ثانية + هاد كود التحقق اللي بالفنكشن الفكرة انه ما حد يقدر يختار الشخصيات غير اللي الالمنت داتا تاعه VIP وبدي اعمل اللي اسم حسابه موجود باسل الفيب يصير الالمنت داتا تاعه فيب مشان يقدر يختار الشخصية لو شخص متسجل في رتبة الفي اي بي دخل السيرفر و سجل دخوله هاياخد داتا فعلاً اطرح كود التحقق مش مهمطويل او لأ لأن المشكلة منه
Abo-Al3ZaB Posted July 2, 2016 Author Posted July 2, 2016 ممكن تطرح كود التحقق كامل ؟ و ايه هي فكرته ؟ الفنكشن طويل فيه شغلات ثانية + هاد كود التحقق اللي بالفنكشن الفكرة انه ما حد يقدر يختار الشخصيات غير اللي الالمنت داتا تاعه VIP وبدي اعمل اللي اسم حسابه موجود باسل الفيب يصير الالمنت داتا تاعه فيب مشان يقدر يختار الشخصية لو شخص متسجل في رتبة الفي اي بي دخل السيرفر و سجل دخوله هاياخد داتا فعلاً اطرح كود التحقق مش مهمطويل او لأ لأن المشكلة منه if key == "enter" then if model > 279 and model < 289 or model == 71 or model > 162 and model < 167 or model > 264 and model < 268 or model == 312 or model == 189 or model == 240 or model == 227 or model == 228 then ctb = countPlayersInTeam(getTeamFromName("Ballas")) ctg = countPlayersInTeam(getTeamFromName("Grove Street")) ctv = countPlayersInTeam(getTeamFromName("Vagos")) cta = countPlayersInTeam(getTeamFromName("Aztec")) ctp = countPlayersInTeam(getTeamFromName("Police")) ctm = countPlayersInTeam(getTeamFromName("Medic")) ctn = countPlayersInTeam(getTeamFromName("Criminals")) ctr = countPlayersInTeam(getTeamFromName("Rifa")) ctt = countPlayersInTeam(getTeamFromName("Triads")) ctd = countPlayersInTeam(getTeamFromName("Da Nang")) ctma = countPlayersInTeam(getTeamFromName("Mafia")) ctru = countPlayersInTeam(getTeamFromName("Russians")) ctVIP = countPlayersInTeam(getTeamFromName("VIP")) -- cat = (ctb+ctg+ctv+cta+ctm+ctn+ctVIP)/1.9 if getElementData(player, "TBan") > 0 then exports["guimessages"]:outputClient(TBtext, 255, 0, 0) elseif getElementData(player, "WantLvl") > 0 then exports["guimessages"]:outputClient(wltext, 255, 0, 0) elseif getElementData(player, "Stats") == 3 then exports["guimessages"]:outputClient(jltext, 255, 0, 0) elseif ( getElementData(player,"[ARMY]") ~= 1 ) and ( model == 287 ) then exports["guimessages"]:outputClient(ArmyText, 255, 0, 0) elseif ( getElementData(player,"[sWAT]") ~= 1 ) and ( model == 285 ) then exports["guimessages"]:outputClient(swattext, 255, 0, 0) elseif ( getElementData(player,"[FBI]") ~= 1 ) and ( model == 286 ) then exports["guimessages"]:outputClient(fbitext, 255, 0, 0) elseif ( getElementData(player,"VIP") ~= 1 ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then exports["guimessages"]:outputClient(viptext, 255, 0, 0) end
YourMind Posted July 2, 2016 Posted July 2, 2016 كود التحقق كلينت؟ و هو يعتبر جزء من اختيار الشخصيات لما شخص يدخل السيرفر و يختار التيم وكدة ؟
Abo-Al3ZaB Posted July 2, 2016 Author Posted July 2, 2016 كود التحقق كلينت؟ و هو يعتبر جزء من اختيار الشخصيات لما شخص يدخل السيرفر و يختار التيم وكدة ؟ ايوا كدا أخيرا فهمتني ,,, : ]
YourMind Posted July 2, 2016 Posted July 2, 2016 يبقي مكان كود التحقق غلط يامعلم D: Enter لازم تحطه في البايند كي بتاع زرار الانتر
Abo-Al3ZaB Posted July 2, 2016 Author Posted July 2, 2016 يبقي مكان كود التحقق غلط يامعلم D:Enter لازم تحطه في البايند كي بتاع زرار الانتر يصير هيك يعني ؟؟ if key == "enter" then if model > 279 and model < 289 or model == 71 or model > 162 and model < 167 or model > 264 and model < 268 or model == 312 or model == 189 or model == 240 or model == 227 or model == 228 then if ( getElementData(player,"VIP") ~= 1 ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then exports["guimessages"]:outputClient(viptext, 255, 0, 0) end ctb = countPlayersInTeam(getTeamFromName("Ballas")) ctg = countPlayersInTeam(getTeamFromName("Grove Street")) ctv = countPlayersInTeam(getTeamFromName("Vagos")) cta = countPlayersInTeam(getTeamFromName("Aztec")) ctp = countPlayersInTeam(getTeamFromName("Police")) ctm = countPlayersInTeam(getTeamFromName("Medic")) ctn = countPlayersInTeam(getTeamFromName("Criminals")) ctr = countPlayersInTeam(getTeamFromName("Rifa")) ctt = countPlayersInTeam(getTeamFromName("Triads")) ctd = countPlayersInTeam(getTeamFromName("Da Nang")) ctma = countPlayersInTeam(getTeamFromName("Mafia")) ctru = countPlayersInTeam(getTeamFromName("Russians")) ctVIP = countPlayersInTeam(getTeamFromName("VIP")) -- cat = (ctb+ctg+ctv+cta+ctm+ctn+ctVIP)/1.9 if getElementData(player, "TBan") > 0 then exports["guimessages"]:outputClient(TBtext, 255, 0, 0) elseif getElementData(player, "WantLvl") > 0 then exports["guimessages"]:outputClient(wltext, 255, 0, 0) elseif getElementData(player, "Stats") == 3 then exports["guimessages"]:outputClient(jltext, 255, 0, 0) elseif ( getElementData(player,"[ARMY]") ~= 1 ) and ( model == 287 ) then exports["guimessages"]:outputClient(ArmyText, 255, 0, 0) elseif ( getElementData(player,"[sWAT]") ~= 1 ) and ( model == 285 ) then exports["guimessages"]:outputClient(swattext, 255, 0, 0) elseif ( getElementData(player,"[FBI]") ~= 1 ) and ( model == 286 ) then exports["guimessages"]:outputClient(fbitext, 255, 0, 0) end
YourMind Posted July 2, 2016 Posted July 2, 2016 ججرب كدة if key == "enter" then if model > 279 and model < 289 or model == 71 or model > 162 and model < 167 or model > 264 and model < 268 or model == 312 or model == 189 or model == 240 or model == 227 or model == 228 then if not ( getElementData(player,"VIP") ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then exports["guimessages"]:outputClient(viptext, 255, 0, 0) return end ctb = countPlayersInTeam(getTeamFromName("Ballas")) ctg = countPlayersInTeam(getTeamFromName("Grove Street")) ctv = countPlayersInTeam(getTeamFromName("Vagos")) cta = countPlayersInTeam(getTeamFromName("Aztec")) ctp = countPlayersInTeam(getTeamFromName("Police")) ctm = countPlayersInTeam(getTeamFromName("Medic")) ctn = countPlayersInTeam(getTeamFromName("Criminals")) ctr = countPlayersInTeam(getTeamFromName("Rifa")) ctt = countPlayersInTeam(getTeamFromName("Triads")) ctd = countPlayersInTeam(getTeamFromName("Da Nang")) ctma = countPlayersInTeam(getTeamFromName("Mafia")) ctru = countPlayersInTeam(getTeamFromName("Russians")) ctVIP = countPlayersInTeam(getTeamFromName("VIP")) -- cat = (ctb+ctg+ctv+cta+ctm+ctn+ctVIP)/1.9 if getElementData(player, "TBan") > 0 then exports["guimessages"]:outputClient(TBtext, 255, 0, 0) elseif getElementData(player, "WantLvl") > 0 then exports["guimessages"]:outputClient(wltext, 255, 0, 0) elseif getElementData(player, "Stats") == 3 then exports["guimessages"]:outputClient(jltext, 255, 0, 0) elseif ( getElementData(player,"[ARMY]") ~= 1 ) and ( model == 287 ) then exports["guimessages"]:outputClient(ArmyText, 255, 0, 0) elseif ( getElementData(player,"[sWAT]") ~= 1 ) and ( model == 285 ) then exports["guimessages"]:outputClient(swattext, 255, 0, 0) elseif ( getElementData(player,"[FBI]") ~= 1 ) and ( model == 286 ) then exports["guimessages"]:outputClient(fbitext, 255, 0, 0) end
Abo-Al3ZaB Posted July 2, 2016 Author Posted July 2, 2016 ججرب كدة if key == "enter" then if model > 279 and model < 289 or model == 71 or model > 162 and model < 167 or model > 264 and model < 268 or model == 312 or model == 189 or model == 240 or model == 227 or model == 228 then if not ( getElementData(player,"VIP") ) and ( model == 189 or model == 240 or model == 227 or model == 228 ) then exports["guimessages"]:outputClient(viptext, 255, 0, 0) return end ctb = countPlayersInTeam(getTeamFromName("Ballas")) ctg = countPlayersInTeam(getTeamFromName("Grove Street")) ctv = countPlayersInTeam(getTeamFromName("Vagos")) cta = countPlayersInTeam(getTeamFromName("Aztec")) ctp = countPlayersInTeam(getTeamFromName("Police")) ctm = countPlayersInTeam(getTeamFromName("Medic")) ctn = countPlayersInTeam(getTeamFromName("Criminals")) ctr = countPlayersInTeam(getTeamFromName("Rifa")) ctt = countPlayersInTeam(getTeamFromName("Triads")) ctd = countPlayersInTeam(getTeamFromName("Da Nang")) ctma = countPlayersInTeam(getTeamFromName("Mafia")) ctru = countPlayersInTeam(getTeamFromName("Russians")) ctVIP = countPlayersInTeam(getTeamFromName("VIP")) -- cat = (ctb+ctg+ctv+cta+ctm+ctn+ctVIP)/1.9 if getElementData(player, "TBan") > 0 then exports["guimessages"]:outputClient(TBtext, 255, 0, 0) elseif getElementData(player, "WantLvl") > 0 then exports["guimessages"]:outputClient(wltext, 255, 0, 0) elseif getElementData(player, "Stats") == 3 then exports["guimessages"]:outputClient(jltext, 255, 0, 0) elseif ( getElementData(player,"[ARMY]") ~= 1 ) and ( model == 287 ) then exports["guimessages"]:outputClient(ArmyText, 255, 0, 0) elseif ( getElementData(player,"[sWAT]") ~= 1 ) and ( model == 285 ) then exports["guimessages"]:outputClient(swattext, 255, 0, 0) elseif ( getElementData(player,"[FBI]") ~= 1 ) and ( model == 286 ) then exports["guimessages"]:outputClient(fbitext, 255, 0, 0) end ما ضبط ,,,
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