Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 حليتها لك ورسلت لك الكود سكايب جاهز ما وصلني شي
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 الكود ناقص وفيه اشياء مو معرفه, اطرح كودك كامل؟ ايش الناقص فيه ؟؟
SycroX Posted June 30, 2016 Posted June 30, 2016 (edited) الكود ناقص وفيه اشياء مو معرفه, اطرح كودك كامل؟ ايش الناقص فيه ؟؟ ض1 انتا معطينا فانكشن فقط لا نعرف حتي الحدث شو او هاد ايفنت : - + ما في اي شي يتعلق باختيار الشخصية + ده ملف سيرفر وش جاب outputClient ؟؟ Skins = {SkinID1, SkinID2, SkinID3} function CheakPlayerModel(player) for i,v in ipairs(Skins) do if getElementModel(player) == v then return true else return false end end end + انصحك تتحق من الشخصيات هيك احسن Edited June 30, 2016 by Guest
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 (edited) Deleted Edited July 7, 2016 by Guest
فاّرس Posted June 30, 2016 Posted June 30, 2016 (edited) 'onElementModelChange' isObjectInACLGroup getPlayerAccount getAccountName aclGetGroup isGuestAccount setElementModel getElementModel Edited June 30, 2016 by Guest
SycroX Posted June 30, 2016 Posted June 30, 2016 Skins = {SkinID1, SkinID2, SkinID3} function CheakPlayerModel(player) for i,v in ipairs(Skins) do if getElementModel(player) == v then return true else return false end end end addEventHandler("onElementModelChange", root, function() if isGuestAccount ( getPlayerAccount(source) ) then return end if CheakPlayerModel(source) == true and getElementType(source) == "player" then if not isObjectInACLGroup ('user.'..getAccountName ( getPlayerAccount ( source ) ) aclGetGroup ( "VIP" ) ) then setElementModel(source, 0) outputChatBox("This Skins is only for V.I.P Members !", source, 255, 0, 0, true) end end end)
فاّرس Posted June 30, 2016 Posted June 30, 2016 ^ كودك خطأ للمعلوميه, وياليت لو خليته يحاول اصلاً, يعني حنا نعطيه الوظائف ونتعب وتجي تعطيه كامل وش الفايده .
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 Skins = {SkinID1, SkinID2, SkinID3} function CheakPlayerModel(player) for i,v in ipairs(Skins) do if getElementModel(player) == v then return true else return false end end end addEventHandler("onElementModelChange", root, function() if isGuestAccount ( getPlayerAccount(source) ) then return end if CheakPlayerModel(source) == true and getElementType(source) == "player" then if not isObjectInACLGroup ('user.'..getAccountName ( getPlayerAccount ( source ) ) aclGetGroup ( "VIP" ) ) then setElementModel(source, 0) outputChatBox("This Skins is only for V.I.P Members !", source, 255, 0, 0, true) end end end) ما ضبط
N3xT Posted June 30, 2016 Posted June 30, 2016 ليه توقعت أننا بنعطيك الكود كامل ونقولك هيا روح ركبه وخلاص ؟ حاول بنفسك واذا م ظبط عطنا اللي سويته ونعدله لك
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 (edited) Deleted Edited July 7, 2016 by Guest
N3xT Posted June 30, 2016 Posted June 30, 2016 ليه توقعت أننا بنعطيك الكود كامل ونقولك هيا روح ركبه وخلاص ؟ حاول بنفسك واذا م ظبط عطنا اللي سويته ونعدله لك حاولت بأول الموضوع وهاد اللي طلع معي ! function ( thePlayer ) accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ('user.'..accName, aclGetGroup ( "VIP" ) ) and ( model == 240 or model == 228 or model == 227 or model == 189 ) then triggerClientEvent( thePlayer, 'openpanelvip', thePlayer ) else exports["guimessages"]:outputClient(VIPtext, 255, 0, 0) end end يب وقالولك الأخطاء وعطوك الفنكشنات المطلوبة ، لكن أنت ما تبي تسويها 'onElementModelChange' isObjectInACLGroup getPlayerAccount getAccountName aclGetGroup isGuestAccount setElementModel getElementModel 'onElementModelChange' isObjectInACLGroup getPlayerAccount getAccountName aclGetGroup isGuestAccount setElementModel getElementModel 'onElementModelChange' isObjectInACLGroup getPlayerAccount getAccountName aclGetGroup isGuestAccount setElementModel getElementModel
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 ليه توقعت أننا بنعطيك الكود كامل ونقولك هيا روح ركبه وخلاص ؟ حاول بنفسك واذا م ظبط عطنا اللي سويته ونعدله لك حاولت بأول الموضوع وهاد اللي طلع معي ! function ( thePlayer ) accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ('user.'..accName, aclGetGroup ( "VIP" ) ) and ( model == 240 or model == 228 or model == 227 or model == 189 ) then triggerClientEvent( thePlayer, 'openpanelvip', thePlayer ) else exports["guimessages"]:outputClient(VIPtext, 255, 0, 0) end end يب وقالولك الأخطاء وعطوك الفنكشنات المطلوبة ، لكن أنت ما تبي تسويها 'onElementModelChange' isObjectInACLGroup getPlayerAccount getAccountName aclGetGroup isGuestAccount setElementModel getElementModel 'onElementModelChange' isObjectInACLGroup getPlayerAccount getAccountName aclGetGroup isGuestAccount setElementModel getElementModel طيب هي جربت يلا اشوف addEventHandler("onElementModelChange", root, function() accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ('user.'..accName, aclGetGroup ( "VIP" ) ) then setElementModel(source, 140,228,227,189) else outputChatBox("This Skin only for VIP.", source, 255, 0, 0, true) end end)
iMr.WiFi..! Posted June 30, 2016 Posted June 30, 2016 (edited) .. طيب هي جربت يلا اشوف addEventHandler("onElementModelChange", root, function() accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ('user.'..accName, aclGetGroup ( "VIP" ) ) then setElementModel(source, 140,228,227,189) else outputChatBox("This Skin only for VIP.", source, 255, 0, 0, true) end end) يخوي thePlayer مهي معرفة وين تحقق انه مسجل وين تحقق انه لاعب ؟ وش هذا ؟ setElementModel(source, 140,228,227,189) في الفنكشن ارقمنت اثنين كيف جبت 5 ارقمنتات ؟ =,= تصحيحح : ; addEventHandler("onElementModelChange", resourceRoot, function() local accName = getAccountName ( getPlayerAccount ( source ) ) if getElementType(source) == "player" and not isGuestAccount( getPlayerAccount ( source ) ) then if not isObjectInACLGroup ('user.'..accName, aclGetGroup ( "VIP" ) ) and getElementModel(source) == 140 or getElementModel(source) == 228 or getElementModel(source) == 227 or getElementModel(source) == 189 then setElementModel(source,0) -- هنا تحط رقم واحد مو الاحداثيات ؟ outputChatBox("This Skin only for VIP.", source, 255, 0, 0, true) else end end end) Edited June 30, 2016 by Guest
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 .. طيب هي جربت يلا اشوف addEventHandler("onElementModelChange", root, function() accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ('user.'..accName, aclGetGroup ( "VIP" ) ) then setElementModel(source, 140,228,227,189) else outputChatBox("This Skin only for VIP.", source, 255, 0, 0, true) end end) يخوي thePlayer مهي معرفة وين تحقق انه مسجل وين تحقق انه لاعب ؟ وش هذا ؟ setElementModel(source, 140,228,227,189) في الفنكشن ارقمنت اثنين كيف جبت 5 ارقمنتات ؟ =,= تصحيحح : ; addEventHandler("onElementModelChange", resourceRoot, function() local accName = getAccountName ( getPlayerAccount ( source ) ) if getElementType(source) == "player" then if not isGuestAccount( getPlayerAccount ( source ) ) then if isObjectInACLGroup ('user.'..accName, aclGetGroup ( "VIP" ) ) then setElementModel(source,IDSkin) -- هنا تحط رقم واحد مو الاحداثيات ؟ else outputChatBox("This Skin only for VIP.", source, 255, 0, 0, true) end end end end) ماني حاط احداثيات ض بدي الكود يكون لأكثر من شخصية ذول ارقام شخصيات
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 خلاص عدلته فوق شوفه setElementModel(source,0) بتضل مثل ما هي ؟
N3xT Posted June 30, 2016 Posted June 30, 2016 هذا إذا ما كان عنده رتبة في آي بي يرجعه لشخصية 0 , تقدر تعدل 0 لرقم الشخصية اللي تبيها
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 هذا إذا ما كان عنده رتبة في آي بي يرجعه لشخصية 0 , تقدر تعدل 0 لرقم الشخصية اللي تبيها مانه ضابط ,, الكود سيرفر ؟
N3xT Posted June 30, 2016 Posted June 30, 2016 يب سيرفر , إذا م ظبط معك شوف وش يطلع لك بالديبق + هل معك رتبة VIP debugscript 3
YourMind Posted June 30, 2016 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)
Abo-Al3ZaB Posted June 30, 2016 Author Posted June 30, 2016 يب سيرفر , إذا م ظبط معك شوف وش يطلع لك بالديبق+ هل معك رتبة VIP debugscript 3 ما يطلع شي ,,, انا الشخصيات حاطهم مع التيمات بالكلينت ,,, لازم اعمل ترايقر ؟
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