Froze Posted July 30, 2016 Share Posted July 30, 2016 السلام عليكم ورحمة الله وبركاته عندي استفسار كيف اسوي كيل مسج للشوتر سويت طرق كثير حفظت داتا على السيارة وجربت احفظ داتا على الصاروخ ولا نفع اتمنى تفيدوني وشكرا, Link to comment
^iiEcoo'x_) Posted July 30, 2016 Share Posted July 30, 2016 قصدك تبي الي يموت ب الشوتر يقول اسم الي مات والي موته Link to comment
Froze Posted July 30, 2016 Author Share Posted July 30, 2016 قصدك تبي الي يموت ب الشوتر يقول اسم الي مات والي موته يب, Link to comment
^iiEcoo'x_) Posted July 30, 2016 Share Posted July 30, 2016 جرب addEventHandler("onPlayerWasted", root, function(_, killer) if killer and getElementType(killer) == "player" then exports ["guimessages"] : outputServer(root, getPlayerName(killer).." Killed "..getPlayerName(source).." in shooter", 255, 0, 255) end end end) Link to comment
Froze Posted July 30, 2016 Author Share Posted July 30, 2016 جرب addEventHandler("onPlayerWasted", root, function(_, killer) if killer and getElementType(killer) == "player" then exports ["guimessages"] : outputServer(root, getPlayerName(killer).." Killed "..getPlayerName(source).." in shooter", 255, 0, 255) end end end) عندك اند زايده + اللاعب ما مات من لاعب ثاني مات من صاروخ يعني الكيلر ما تفيد Link to comment
^iiEcoo'x_) Posted July 30, 2016 Share Posted July 30, 2016 طيب شوف ذي getElementType(killer) == "player" then للاعبين ذي انت سويه للسيارات Link to comment
Froze Posted July 30, 2016 Author Share Posted July 30, 2016 وضح ؟ killer انت حاط تعريف لل يعني القاتل بس بالشوتر ماففيه لاعب يقتل لاعب في صاروخ يقتل لاعب يعني انت الحين تجيب اسم اللاعب الي هو الصاروخ Link to comment
justboy Posted July 30, 2016 Share Posted July 30, 2016 كلينت addEventHandler('onClientVehicleDamage',root, function(attacker) if attacker and getElementType(attacker) == 'player' and attacker ~= getVehicleOccupant(source) then triggerServerEvent('shooter:setData',getVehicleOccupant(source),'killer1222',attacker) setTimer(triggerServerEvent,4000,1,'shooter:setData',getVehicleOccupant(source,0),'killer1222',false) end end ) -- addEventHandler('onClientPlayerWasted',root, function(killer) if getElementData(source,'killer1222') ~= false and getElementData(source,'killer1222') ~= source then outputChatBox('#FFFFFF '..getPlayerName(source)..' #FFFFFF Has Killed By '..( getPlayerName(getElementData(source,'killer1222')),255,255,255,true)) end end ) سيرفر addEvent('shooter:setData',true) addEventHandler('shooter:setData',root, function(dataname,datavalue) setElementData(client,dataname,datavalue) end ) هذا سويته زمان شوفه Link to comment
Froze Posted July 30, 2016 Author Share Posted July 30, 2016 كلينت addEventHandler('onClientVehicleDamage',root, function(attacker) if attacker and getElementType(attacker) == 'player' and attacker ~= getVehicleOccupant(source) then triggerServerEvent('shooter:setData',getVehicleOccupant(source),'killer1222',attacker) setTimer(triggerServerEvent,4000,1,'shooter:setData',getVehicleOccupant(source,0),'killer1222',false) end end ) -- addEventHandler('onClientPlayerWasted',root, function(killer) if getElementData(source,'killer1222') ~= false and getElementData(source,'killer1222') ~= source then outputChatBox('#FFFFFF '..getPlayerName(source)..' #FFFFFF Has Killed By '..( getPlayerName(getElementData(source,'killer1222')),255,255,255,true)) end end ) سيرفر addEvent('shooter:setData',true) addEventHandler('shooter:setData',root, function(dataname,datavalue) setElementData(client,dataname,datavalue) end ) هذا سويته زمان شوفه يعطيك العافية 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