mahmod3 Posted March 1, 2017 Author Share Posted March 1, 2017 يطلهلي is not aded server side او شي متع كدا Link to comment
^iiEcoo'x_) Posted March 1, 2017 Share Posted March 1, 2017 (edited) @Master_MTA function setplus10(player,text) if isElement(player)then if text then if text == "Health" then local plhel=getElementHealth(player) if plhel >= 100 then outputChatBox('Your Health is 100',player) return end setElementHealth(player,plhel+10) elseif text == "Armor" then local plrarm=getPedArmor(player) if plrarm >= 100 then outputChatBox('Your Armor is 100',player) return end setPedArmor(player,plrarm+10) end end else outputChatBox('Type at argument 1 got nil',player) end else outputChatBox('Player at argument 1 got nil',player) end addEvent('ss',true)-----------------هذا دم addEventHandler('ss',root,function() setplus10(source,"Health") end) addEvent('s1',true)----------------هذا يعطي درع addEventHandler('s1',root,function() setplus10(source,"Armor") end) Edited March 1, 2017 by #_iMr.[E]coo Link to comment
Master_MTA Posted March 1, 2017 Share Posted March 1, 2017 1 minute ago, #_iMr.[E]coo said: @Master_MTA function setplus10(player,text) if isElement(player)then if text then if text == "Health" then local plhel=getElementHealth(player) if plhel >= 100 then outputChatBox('Your Health is 100',player) return end setPlayerHealth(player,plhel+10) elseif text == "Armor" then local plrarm=getPedArmor(player) if plrarm >= 100 then outputChatBox('Your Armor is 100',player) return end setPedArmor(player,plrarm+10) end end else outputChatBox('Type at argument 1 got nil',player) end else outputChatBox('Player at argument 1 got nil',player) end addEvent('ss',true)-----------------هذا دم addEventHandler('ss',root,function() setplus10(source,"Health") end) addEvent('s1',true)----------------هذا يعطي درع addEventHandler('s1',root,function() setplus10(source,"Armor") end) ما اتوقع في غلط بكودي السابق فقط غيرت 1 وما الى ذلك 3 minutes ago, mahmod3 said: يطلهلي is not aded server side او شي متع كدا معناتها في مشكله بملف السيرفر عندك الاكواد داخله على بعض Link to comment
^iiEcoo'x_) Posted March 1, 2017 Share Posted March 1, 2017 1 minute ago, Master_MTA said: ما اتوقع في غلط بكودي السابق فقط غيرت 1 وما الى ذلك معناتها في مشكله بملف السيرفر عندك الاكواد داخله على بعض الغلط كله ي الطيب من setPlayerHealth ? صاحب الموضوعجرب ردي فوق Link to comment
mahmod3 Posted March 1, 2017 Author Share Posted March 1, 2017 منورين شباب خلاص نفعت طريقة Ahmed Ly 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