G.KinG Posted February 13, 2014 Share Posted February 13, 2014 سلام عليكم معي مشكله في كود المسعف انه ما يزود دم ولا ياخذ فلوس مع انه في تيم Medic الزبده ذي الاكواد كلينت function(attacker, weapon) team = getPlayerTeam(attacker) if (attacker and getElementType(attacker) == "player" and weapon == 41 and team and getTeamName(team) == "Medic") then cancelEvent() if (not isTimer(pause)) then local health = getElementHealth(localPlayer) if (health < 99) then triggerServerEvent("medic:healing", localPlayer, attacker) pause = setTimer(function() end, 1000, 1) end end end end) سيرفر addEvent("medic:healing", true) addEventHandler("medic:healing", root, function (medic) if (getElementHealth(source) < 100) then local Heal = getElementHealth(source) + 5 setElementHealth(source, Heal) if (Heal > 100) then setElementHealth(source, 100) end givePlayerMoney(medic, 100) takePlayerMoney(source, 100) end end) Link to comment
#DRAGON!FIRE Posted February 13, 2014 Share Posted February 13, 2014 الكود الاول .. وين الحدث . ؟ ؟؟؟؟؟ Link to comment
G.KinG Posted February 13, 2014 Author Share Posted February 13, 2014 الكود الاول .. وين الحدث . ؟ ؟؟؟؟؟ اي سطر ؟ Link to comment
Mr.T9 Posted February 13, 2014 Share Posted February 13, 2014 الكود الاول .. وين الحدث . ؟ ؟؟؟؟؟ اي سطر ؟ كيف اي سطر اكيد الاول ^ ! شكلك ماتعرف وش الحدث Link to comment
' ρяofзśŝoя 亗 Posted February 13, 2014 Share Posted February 13, 2014 AddEventHandler ~ Link to comment
G.KinG Posted February 13, 2014 Author Share Posted February 13, 2014 طيب كذآ ؟ addEventHandler("onClientPlayerDamage", localPlayer, function(attacker, weapon) team = getPlayerTeam(attacker) if (attacker and getElementType(attacker) == "player" and weapon == 41 and team and getTeamName(team) == "Medic") then cancelEvent() if (not isTimer(pause)) then local health = getElementHealth(localPlayer) if (health < 99) then triggerServerEvent("medic:healing", localPlayer, attacker) pause = setTimer(function() end, 1000, 1) end end end end) Link to comment
' ρяofзśŝoя 亗 Posted February 13, 2014 Share Posted February 13, 2014 طيب كذآ ؟ addEventHandler("onClientPlayerDamage", localPlayer, function(attacker, weapon) team = getPlayerTeam(attacker) if (attacker and getElementType(attacker) == "player" and weapon == 41 and team and getTeamName(team) == "Medic") then cancelEvent() if (not isTimer(pause)) then local health = getElementHealth(localPlayer) if (health < 99) then triggerServerEvent("medic:healing", localPlayer, attacker) pause = setTimer(function() end, 1000, 1) end end end end) جرببء آلككود طيبَء ذذ ~ Link to comment
G.KinG Posted February 14, 2014 Author Share Posted February 14, 2014 يعطيك العافيةة برفسور Link to comment
' ρяofзśŝoя 亗 Posted February 14, 2014 Share Posted February 14, 2014 يعطيك العافيةة برفسور يعافيككء < 3 ~ 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