yasin0 Posted August 15, 2017 Share Posted August 15, 2017 السلام عليكم شباب ليش الصورة ماتظهر للاعب لما يموت ؟ x,y = guiGetScreenSize() x = x - 300 y = y - 250 function a ( _,aPlayer,_,_,_) dxDrawImage ( x/2,y/2,200,100,'1.png') end function gRender ( ) addEventHandler('onClientRender',root,a) end addEventHandler('onClientPlayerWasted',root,a) في حال تصحيح الكود ارجو من الشخص ان يعطيني الاخطاء Link to comment
#BrosS Posted August 15, 2017 Share Posted August 15, 2017 x,y = guiGetScreenSize() x = x - 300 y = y - 250 function a () dxDrawImage ( x/2,y/2,200,100,'1.png') end function gRender () addEventHandler('onClientRender',root,a) end addEventHandler('onClientPlayerWasted',root,gRender) مادري كيف اوضح الاخطاء انتظر حد ثانيء يشرحلك Link to comment
yasin0 Posted August 15, 2017 Author Share Posted August 15, 2017 (edited) 10 minutes ago, #BrosS said: x,y = guiGetScreenSize() x = x - 300 y = y - 250 function a () dxDrawImage ( x/2,y/2,200,100,'1.png') end function gRender () addEventHandler('onClientRender',root,a) end addEventHandler('onClientPlayerWasted',root,gRender) مادري كيف اوضح الاخطاء انتظر حد ثانيء يشرحلك شكرا فهمت اخطائي سؤال اخر ليش الصورة ماتروح بعد 5 ثواني ؟ x,y = guiGetScreenSize() x = x - 300 y = y - 250 function a () dxDrawImage ( x/2,y/2,200,100,'1.png') end function gRender () addEventHandler('onClientRender',root,a) end addEventHandler('onClientPlayerWasted',root,gRender) setTimer(function() removeEventHandler(5000,1,'onClientRender',localPlayer,gRender)) end Edited August 15, 2017 by yasin0 Link to comment
AHMED MOSTAFA Posted August 15, 2017 Share Posted August 15, 2017 (edited) Just now, yasin0 said: شكرا فهمت اخطائي سؤال اخر ليش الصورة ماتروح بعد 5 ثواني ؟ x,y = guiGetScreenSize() x = x - 300 y = y - 250 function a () dxDrawImage ( x/2,y/2,200,100,'1.png') end function gRender () addEventHandler('onClientRender',root,a) end addEventHandler('onClientPlayerWasted',root,gRender) setTimer(function() removeEventHandler(5000,1,'onClientRender',localPlayer,gRender)) end setTimer ( removeEventHandler, 5000, 1, 'onClientRender', localPlayer, a ) line: 12 Edited August 15, 2017 by killerProject a Link to comment
yasin0 Posted August 15, 2017 Author Share Posted August 15, 2017 16 minutes ago, killerProject said: setTimer ( removeEventHandler, 5000, 1, 'onClientRender', localPlayer, a ) line: 12 16 minutes ago, killerProject said: setTimer ( removeEventHandler, 5000, 1, 'onClientRender', localPlayer, a ) line: 12 يقولي function nill x,y = guiGetScreenSize() x = x - 300 y = y - 250 function a () dxDrawImage ( x/2,y/2,200,100,'1.png') end function gRender () addEventHandler('onClientRender',root,a) end addEventHandler('onClientPlayerWasted',root,gRender) setTimer ( removeEventHandler, 5000, 1, 'onClientRender', localPlayer, gRender ) Link to comment
SAM!! Posted August 15, 2017 Share Posted August 15, 2017 setTimer(function() removeEventHandler("onClientRender", root, a) end,5000,1) Link to comment
yasin0 Posted August 15, 2017 Author Share Posted August 15, 2017 3 minutes ago, SAM!! said: setTimer(function() removeEventHandler("onClientRender", root, a) end,5000,1) مشكور لكن سؤال ليش لازم روت مو المفروض localPlayer بما انه كلينت ؟ 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