Quited Posted February 28, 2013 Share Posted February 28, 2013 ي شباب قولولي الكود هذا فيه اخطاء ؟ checkModels = { "cj", "hmybe.dff", "hmybe.txd", "bmybe.dff", "bmybe.txd", "hmyri.dff", "hmyri.txd", "omyst.dff", "omyst.txd", "ballas1.dff", "ballas1.txd", "ballas2.dff", "ballas2.txd", "ballas3.dff", "ballas3.txd", "fam1.txd", "fam1.dff", "fam2.dff", "fam2.txd", "fam3.dff", "fam3.txd", "lsv1.dff", "lsv2.dff", "lsv3", "vla3", "wmypizz", "somyst", "sfr2", "bmybar", "wmybar", } function handleOnPlayerModInfo( filename, modList ) for _, mod in ipairs( modList ) do for _, checkName in ipairs( checkModels ) do if mod.name == checkName then banPlayer(source, false, false, true, root, "= Skin bug blocked !", 600) end end end end addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo ) Link to comment
iMr.Dawix~# Posted February 28, 2013 Share Posted February 28, 2013 ي شباب قولولي الكود هذا فيه اخطاء ؟ checkModels = { "cj", "hmybe.dff", "hmybe.txd", "bmybe.dff", "bmybe.txd", "hmyri.dff", "hmyri.txd", "omyst.dff", "omyst.txd", "ballas1.dff", "ballas1.txd", "ballas2.dff", "ballas2.txd", "ballas3.dff", "ballas3.txd", "fam1.txd", "fam1.dff", "fam2.dff", "fam2.txd", "fam3.dff", "fam3.txd", "lsv1.dff", "lsv2.dff", "lsv3", "vla3", "wmypizz", "somyst", "sfr2", "bmybar", "wmybar", } function handleOnPlayerModInfo( filename, modList ) for _, mod in ipairs( modList ) do for _, checkName in ipairs( checkModels ) do if mod.name == checkName then banPlayer(source, false, false, true, root, "= Skin bug blocked !", 600) end end end end addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo ) ماشوف فيه خطا نفس الويكي checkModels = { "m4.dff", "ak47.dff" } function handleOnPlayerModInfo ( filename, modList ) for _,mod in ipairs(modList) do -- Check each modified item for _,checkName in ipairs(checkModels) do if mod.name == checkName then -- See if modified item is in our check list outputChatBox ( "Not allowed to used modified weapons. Please restore " .. filename ) end end end end addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo ) Link to comment
PaiN^ Posted February 28, 2013 Share Posted February 28, 2013 أنا ما أعرف لذا المود بس مو كل أمثلة الويكي صحيحة بعضها بس يوريك وظيفة الفنكشن أو الإيفنت Link to comment
HsSoN Posted March 1, 2013 Share Posted March 1, 2013 جرب ذا checkModels = { "cj", "hmybe.dff", "hmybe.txd", "bmybe.dff", "bmybe.txd", "hmyri.dff", "hmyri.txd", "omyst.dff", "omyst.txd", "ballas1.dff", "ballas1.txd", "ballas2.dff", "ballas2.txd", "ballas3.dff", "ballas3.txd", "fam1.txd", "fam1.dff", "fam2.dff", "fam2.txd", "fam3.dff", "fam3.txd", "lsv1.dff", "lsv2.dff", "lsv3", "vla3", "wmypizz", "somyst", "sfr2", "bmybar", "wmybar", } function handleOnPlayerModInfo( filename, modList ) for _, mod in ipairs( modList ) do for _, checkName in ipairs( checkModels ) do if mod.name == checkName then banPlayer(source, false, false, true, root, "= Skin bug blocked !", 600) end end end end addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo ) Link to comment
hassan.k.s.a Posted March 1, 2013 Share Posted March 1, 2013 أنا ما أعرف لذا المود بس مو كل أمثلة الويكي صحيحة بعضها بس يوريك وظيفة الفنكشن أو الإيفنت سلامات مو كلها صحيحة ! وريني مثال فيه خطأ Link to comment
iPrestege Posted March 1, 2013 Share Posted March 1, 2013 أنا ما أعرف لذا المود بس مو كل أمثلة الويكي صحيحة بعضها بس يوريك وظيفة الفنكشن أو الإيفنت سلامات مو كلها صحيحة ! وريني مثال فيه خطأ +1 اذا فية خطأ فية ناس تتابع الاكواد تقريبا# Link to comment
iMr.Dawix~# Posted March 6, 2013 Share Posted March 6, 2013 أنا ما أعرف لذا المود بس مو كل أمثلة الويكي صحيحة بعضها بس يوريك وظيفة الفنكشن أو الإيفنت سلامات مو كلها صحيحة ! وريني مثال فيه خطأ +1 اذا فية خطأ فية ناس تتابع الاكواد تقريبا# https://wiki.multitheftauto.com/wiki/Ge ... Passengers Link to comment
iPrestege Posted March 6, 2013 Share Posted March 6, 2013 ^ وش المشكلة اللي مسويها Ransom الصفحةة ذذ وش بها؟ 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