K̷i̷n̷g̷ x̷D̷ツ Posted May 19, 2017 Share Posted May 19, 2017 السلام عليكم يا اخوان سويت كود المهم ينزل سياره ازا كان منزل من قبل يحذف السياره الي قبل وينزل جديده الكود صار فيه مشكله من شوي بطل يرسبن سيارات وما يكتب وش الخطاء المهم هذا الكود function mike(msg,type) local PlayerMoney = getPlayerMoney(source) if msg == 'ابي سياره' then if getElementData ( source, "destroy" ) then destroyElement ( getElementData ( source, "destroy")) x = createVehicle (411,getElementPosition(source)) warpPedIntoVehicle(source,x) setElementData ( source, "destroy", x ) end end end addEventHandler( "onPlayerChat", getRootElement(), mike ) Link to comment
Master_MTA Posted May 19, 2017 Share Posted May 19, 2017 function mike(msg,type) local PlayerMoney = getPlayerMoney(source) if string.find(msg,'ابي سياره') then local data=getElementData ( source, "destroy") if data and isElement(data)then destroyElement (data ) x = createVehicle (411,getElementPosition(source)) warpPedIntoVehicle(source,x) setElementData ( source, "destroy", x ) end end end addEventHandler( "onPlayerChat", getRootElement(), mike ) بالتوفيق Link to comment
K̷i̷n̷g̷ x̷D̷ツ Posted May 19, 2017 Author Share Posted May 19, 2017 8 minutes ago, Master_MTA said: function mike(msg,type) local PlayerMoney = getPlayerMoney(source) if string.find(msg,'ابي سياره') then local data=getElementData ( source, "destroy") if data and isElement(data)then destroyElement (data ) x = createVehicle (411,getElementPosition(source)) warpPedIntoVehicle(source,x) setElementData ( source, "destroy", x ) end end end addEventHandler( "onPlayerChat", getRootElement(), mike ) بالتوفيق نفس المشكله يالاخو ما ينزل Link to comment
Master_MTA Posted May 19, 2017 Share Posted May 19, 2017 1 minute ago, K̷i̷n̷g̷ x̷D̷ツ said: نفس المشكله يالاخو ما ينزل اسف نسيت function mike(msg,type) local PlayerMoney = getPlayerMoney(source) if string.find(msg,'ابي سياره') then local data=getElementData ( source, "destroy") if data and isElement(data)then destroyElement (data ) end x = createVehicle (411,getElementPosition(source)) warpPedIntoVehicle(source,x) setElementData ( source, "destroy", x ) end end addEventHandler( "onPlayerChat", getRootElement(), mike ) اعذرني نسيت اغير مكان الاند @_@ Link to comment
K̷i̷n̷g̷ x̷D̷ツ Posted May 19, 2017 Author Share Posted May 19, 2017 3 minutes ago, Master_MTA said: اسف نسيت function mike(msg,type) local PlayerMoney = getPlayerMoney(source) if string.find(msg,'ابي سياره') then local data=getElementData ( source, "destroy") if data and isElement(data)then destroyElement (data ) end x = createVehicle (411,getElementPosition(source)) warpPedIntoVehicle(source,x) setElementData ( source, "destroy", x ) end end addEventHandler( "onPlayerChat", getRootElement(), mike ) اعذرني نسيت اغير مكان الاند @_@ شكراً يالطيب 1 Link to comment
^iiEcoo'x_) Posted May 19, 2017 Share Posted May 19, 2017 5 minutes ago, K̷i̷n̷g̷ x̷D̷ツ said: شكراً يالطيب إستعمل 'onPlayerWasted' 'onPlayerQuit' Link to comment
Master_MTA Posted May 19, 2017 Share Posted May 19, 2017 10 minutes ago, K̷i̷n̷g̷ x̷D̷ツ said: شكراً يالطيب العفو بالتوفيق يعسل 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