Jump to content

تصحيح كود OnPlayerModInfo


Quited

Recommended Posts

ي شباب قولولي الكود هذا فيه اخطاء ؟

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
ي شباب قولولي الكود هذا فيه اخطاء ؟
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

جرب ذا

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
أنا ما أعرف لذا المود

بس مو كل أمثلة الويكي صحيحة

بعضها بس يوريك وظيفة الفنكشن أو الإيفنت

سلامات مو كلها صحيحة !

وريني مثال فيه خطأ

+1

اذا فية خطأ فية ناس تتابع الاكواد تقريبا#

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...