iQsaMi~Mg.HaMoTa_oK! Posted July 3, 2016 Share Posted July 3, 2016 السلام عليكم ورحمة الله وبركاته سويت مود يلي تكتب كلمه ب اف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
N3xT Posted July 3, 2016 Share Posted July 3, 2016 أنت تبيها يصفر لكل اللاعبين ولا بس للي كتب الأمر ؟ Link to comment
Mhmd.z Posted July 3, 2016 Share Posted July 3, 2016 player لو تبيه يصفر بس للاعب الي كتب الامر استخدم لكن لو تبيه يصفر لكل الاعبين سوي لوب يجيب كل الاعبين بالسيرفر ويشيل منهم السكور Link to comment
iQsaMi~Mg.HaMoTa_oK! Posted July 3, 2016 Author Share Posted July 3, 2016 بس للي يكتب الامر أنت تبيها يصفر لكل اللاعبين ولا بس للي كتب الأمر ؟ Link to comment
iQsaMi~Mg.HaMoTa_oK! Posted July 3, 2016 Author Share Posted July 3, 2016 player لو تبيه يصفر بس للاعب الي كتب الامر استخدم لكن لو تبيه يصفر لكل الاعبين سوي لوب يجيب كل الاعبين بالسيرفر ويشيل منهم السكور ووين استخدم الامر؟ وين احطه بزبط Link to comment
N3xT Posted July 3, 2016 Share Posted July 3, 2016 جرب كذا 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
iQsaMi~Mg.HaMoTa_oK! Posted July 3, 2016 Author Share Posted July 3, 2016 جرب كذا 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
!#NssoR_) Posted July 3, 2016 Share Posted July 3, 2016 (edited) 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 July 3, 2016 by Guest Link to comment
Mhmd.z Posted July 3, 2016 Share Posted July 3, 2016 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
Jupi Posted July 3, 2016 Share Posted July 3, 2016 الكود كويس لكن الامر يعتمد عليك حسب الداتا حقتك .. + اطرح الميتا مشان اتأكد Link to comment
iQsaMi~Mg.HaMoTa_oK! Posted July 3, 2016 Author Share Posted July 3, 2016 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
!#NssoR_) Posted July 3, 2016 Share Posted July 3, 2016 مشكور جدا الك اشتغل 100/100 مشكور لكل واحد ساهم وحاول شكرا جزيلا لكم العفوو حياك الله بأي وقت Link to comment
iQsaMi~Mg.HaMoTa_oK! Posted July 3, 2016 Author Share Posted July 3, 2016 مشكور جدا الك اشتغل 100/100 مشكور لكل واحد ساهم وحاول شكرا جزيلا لكم العفوو حياك الله بأي وقت اخي ض المود شغال بس يصفر الدمج ما يصفر السكور وش الحل ض Link to comment
#|_oskar_|# Posted July 3, 2016 Share Posted July 3, 2016 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
iQsaMi~Mg.HaMoTa_oK! Posted July 3, 2016 Author Share Posted July 3, 2016 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
TAPL Posted July 3, 2016 Share Posted July 3, 2016 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
iQsaMi~Mg.HaMoTa_oK! Posted July 3, 2016 Author Share Posted July 3, 2016 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
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