momar5600 Posted June 19, 2016 Share Posted June 19, 2016 سلام عليكم ورحمة الله وبركاتة كل يلي ابيه ابي اركب شخصية خاصة يعني شخصية ماحد يقدر يفتحها غيري انا بسيريال حجي فقد Link to comment
SycroX Posted June 19, 2016 Share Posted June 19, 2016 setTimer(function() if getElementModel(localPlayer) == yourskinid then if getPlayerSerial(localPlayer) ~= "Your Serial" then outputChatBox("This Skin is only For ....", 255, 0, 0, 0, true) setElementModel(localPlayer, 0) else end end end, 1000, 0) Link to comment
momar5600 Posted June 19, 2016 Author Share Posted June 19, 2016 setTimer(function() if getElementModel(localPlayer) == yourskinid then if getPlayerSerial(localPlayer) ~= "Your Serial" then outputChatBox("This Skin is only For ....", 255, 0, 0, 0, true) setElementModel(localPlayer, 0) else end end end, 1000, 0) وين احط رقم شخصية Link to comment
iMr.WiFi..! Posted June 19, 2016 Share Posted June 19, 2016 setTimer(function() if getElementModel(localPlayer) == yourskinid then if getPlayerSerial(localPlayer) ~= "Your Serial" then outputChatBox("This Skin is only For ....", 255, 0, 0, 0, true) setElementModel(localPlayer, 0) else end end end, 1000, 0) وين احط رقم شخصية عند yourskinid Link to comment
momar5600 Posted June 19, 2016 Author Share Posted June 19, 2016 شكرا لك وشكرا لخدمتك لي\ بس ممكن تساعدني هنا https://forum.multitheftauto.com/viewtopic.php?f=160&t=100261 Link to comment
' A F . Posted June 19, 2016 Share Posted June 19, 2016 onElementModelChange getPlayerSerial Link to comment
فاّرس Posted June 19, 2016 Share Posted June 19, 2016 setTimer(function() if getElementModel(localPlayer) == yourskinid then if getPlayerSerial(localPlayer) ~= "Your Serial" then outputChatBox("This Skin is only For ....", 255, 0, 0, 0, true) setElementModel(localPlayer, 0) else end end end, 1000, 0) فنكشن سريال اللاعب سيرفر فقط, لأنه بعض المرات يعطي سريالات خاطئه, وبالأساس مافيه ارقومنت لاعب بالكلينت. Link to comment
SycroX Posted June 19, 2016 Share Posted June 19, 2016 تصحيح الكود : - هيبقا ملف سيرفر function CheakSkin() for i, player in ipairs(getElementsByType("player")) do local Serial = getPlayerSerial(player) local skin = getElementModel(player) if Skin == YourSkinID then if Serial ~= "YourSerail" then setElementModel(player, 0) else end end end end setTimer(CheakSkin, 1000, 0, true) or function Cheak() if ( getElementType(source) == "player" ) then if getElementModel(source) == YourSkinID then if getPlayerSerial(source) ~= "Your Serial" then setElementModel(source, 0) outputChatBox("This Skin is only for Developers !!", source, 255, 0, 0) end end end end addEventHandler("onElementModelChange", root, Cheak) Link to comment
Me[Z]oO Posted June 19, 2016 Share Posted June 19, 2016 تصحيح الكود : -هيبقا ملف سيرفر function CheakSkin() for i, player in ipairs(getElementsByType("player")) do local Serial = getPlayerSerial(player) local skin = getElementModel(player) if Skin == YourSkinID then if Serial ~= "YourSerail" then setElementModel(player, 0) else end end end end setTimer(CheakSkin, 1000, 0, true) or function Cheak() if ( getElementType(source) == "player" ) then if getElementModel(source) == YourSkinID then if getPlayerSerial(source) ~= "Your Serial" then setElementModel(source, 0) outputChatBox("This Skin is only for Developers !!", source, 255, 0, 0) end end end end addEventHandler("onElementModelChange", root, Cheak) الاكواد صح بس مو مرتبة ض Link to comment
Mr.CoR Posted June 20, 2016 Share Posted June 20, 2016 مرتن ثانيه حاول تكتب عنوان للموضوع كويس توضح فيه طلبك وايش المشاكل عندك مثال بسيط : انا كنت ابرمج مود بسيط وحصلت لي مشكله في ايفنت لما يموت اللاعب اروح احط العنوان كذا x[ مشكلة ]x | onPlayerWasted - في إيفنت Link to comment
iPrestege Posted June 20, 2016 Share Posted June 20, 2016 عنوان الموضوع قتلني قلت بس هذا اللي بيطلب الكود اللي يشغل لعبه داخل لعبه Link to comment
</Mr.Tn6eL> Posted June 20, 2016 Share Posted June 20, 2016 هذا كود عصبي local serial = "اضف السيريال هنا" local skin = 0 -- رقم الشخصية addEventHandler("onElementModelChange", root, function(old) if getElementType(source) == "player" and getElementModel(source) == skin and getPlayerSerial(source) ~= serial then setElementModel(source, old) outputChatBox("الشخصية مش ملك خالص", source, 255, 0, 0) end end) Link to comment
N3xT Posted June 20, 2016 Share Posted June 20, 2016 هذا كود عصبي local serial = "اضف السيريال هنا" local skin = 0 -- رقم الشخصية addEventHandler("onElementModelChange", root, function(old) if getElementType(source) == "player" and getElementModel(source) == skin and getPlayerSerial(source) ~= serial then setElementModel(source, old) outputChatBox("الشخصية مش ملك خالص", source, 255, 0, 0) end 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