Jump to content

سويت مود الي تكتب باف ثمانه كلمه تصفر سكورك بس فيه غلط!


Recommended Posts

السلام عليكم ورحمة الله وبركاته

سويت مود يلي تكتب كلمه ب اف8 وتصفر السكور

وركبت المود وشتغل

بس لما اكتب الكلمه يجيبلكي عشات اني صفرت السكور و ما يتصفر

ما ادري احتمال الكودات غلط

function resetPlayerScore (thePlayer) 
    local pname = getPlayerName(thePlayer) 
    setElementData(thePlayer,"score",0) 
    setElementData(thePlayer,"kills",0) 
    setElementData(thePlayer,"deaths",0) 
    setElementData(thePlayer,"dmg",0) 
    setElementData(thePlayer,"Damage",0) 
    setElementData(thePlayer,"level",0) 
    setElementData(thePlayer,"exp",0) 
    outputChatBox("#6C7B8B* [server]#3399FF "..tostring(pname) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 

Link to comment

player لو تبيه يصفر بس للاعب الي كتب الامر استخدم

لكن لو تبيه يصفر لكل الاعبين سوي لوب يجيب كل الاعبين بالسيرفر ويشيل منهم السكور

Link to comment

جرب كذا

function resetPlayerScore () 
    setElementData(source,"score",0) 
    setElementData(source,"kills",0) 
    setElementData(source,"deaths",0) 
    setElementData(source,"dmg",0) 
    setElementData(source,"Damage",0) 
    setElementData(source,"level",0) 
    setElementData(source,"exp",0) 
    outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(source) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 

Link to comment
جرب كذا
function resetPlayerScore () 
    setElementData(source,"score",0) 
    setElementData(source,"kills",0) 
    setElementData(source,"deaths",0) 
    setElementData(source,"dmg",0) 
    setElementData(source,"Damage",0) 
    setElementData(source,"level",0) 
    setElementData(source,"exp",0) 
    outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(source) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 

ض ما شتغل بلمره

Link to comment

function resetPlayerScore (source) 
    local Datas = { "score","kills","deaths","dmg","Damage","level","exp" } 
    for i = 1,#Datas do 
        setElementData(source,Datas[i],0) 
    end 
    outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(source) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 
Edited by Guest
Link to comment
function resetPlayerScore (player) 
    setElementData(player,"score",0) 
    setElementData(player,"kills",0) 
    setElementData(player,"deaths",0) 
    setElementData(player,"dmg",0) 
    setElementData(player,"Damage",0) 
    setElementData(player,"level",0) 
    setElementData(player,"exp",0) 
    outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(player) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 

Link to comment
function resetPlayerScore (source) 
    local Datas = { "score","kills","deaths","dmg","Damage","level","exp" } 
    for i = 1,#Datas do 
        setElementData(source,Datas[i],0) 
    end 
    outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(source) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 

مشكور جدا الك اشتغل 100/100 مشكور لكل واحد ساهم وحاول شكرا جزيلا لكم

Link to comment

function resetPlayerScore (source) 
for i,Datas in ipairs({ "score","kills","deaths","dmg","Damage","level","exp" }) do 
setElementData(source,Datas,0) 
end 
outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(source) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 
Link to comment
function resetPlayerScore (source) 
for i,Datas in ipairs({ "score","kills","deaths","dmg","Damage","level","exp" }) do 
setElementData(source,Datas,0) 
end 
outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(source) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 

سامحني اذا غلبتك ض بس يصفر بس الدمج ما يصفر الكيلز والديث

Link to comment
function resetPlayerScore (source) 
for i,Datas in ipairs({ "score","kills","deaths","dmg","Damage","level","exp" }) do 
setElementData(source,Datas,0) 
end 
outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(source) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 

سامحني اذا غلبتك ض بس يصفر بس الدمج ما يصفر الكيلز والديث

اسم داتا الكيل و الديث اضن غلط

بالغالب اول حرف كبتل لداتا الكيل و الديث

Link to comment
function resetPlayerScore (source) 
for i,Datas in ipairs({ "score","kills","deaths","dmg","Damage","level","exp" }) do 
setElementData(source,Datas,0) 
end 
outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(source) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) 
end 
addCommandHandler("rs", resetPlayerScore) 

سامحني اذا غلبتك ض بس يصفر بس الدمج ما يصفر الكيلز والديث

اسم داتا الكيل و الديث اضن غلط

بالغالب اول حرف كبتل لداتا الكيل و الديث

تابل ما شاء الله عليك شغال ض مشكله صغيره كانت مشكور تابل اشتغل

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...