abu5lf Posted November 15, 2012 Share Posted November 15, 2012 addEventHandler ( 'onClientPlayerWasted', getLocalPlayer ( ), function ( ) local x, y, z = getElementPosition ( source ) createExplosion ( x, y, z, 0, true, -1.0, true ) end ) حط ذاه كلنت getElementPosition ( source ) لأنه كلنت getLocalPlayer ( ) المفروض https://wiki.multitheftauto.com/wiki/OnC ... ayerWasted The source of this event is the player that died. Link to comment
SmoKing Posted November 15, 2012 Author Share Posted November 15, 2012 ها وش الحل يوم اموت واحد مايطلع عندي الانفجار يطلع له هو بس ليه Link to comment
TAPL Posted November 15, 2012 Share Posted November 15, 2012 -- Server Side -- addEventHandler("onPlayerWasted", root, function() local x, y, z = getElementPosition(source) triggerClientEvent(root, "onWasted", root, x, y, z) end) -- Client Side -- addEvent("onWasted") addEventHandler("onWasted", root, function(x, y, z) createExplosion(x, y, z, 0, true, -1.0, false) end) Link to comment
SmoKing Posted November 15, 2012 Author Share Posted November 15, 2012 يسلمووو تابل - عناد - عاشق الشرق - مجنون فيك - احمد ماقصرتو والله 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