FAHD+18 Posted July 28, 2016 Share Posted July 28, 2016 Pickupالسلام عليكم انا سويت ماركر ليش ما اشتغل ! الرجاء التعديل انا ابي ماركر الدم ما يختفي علي شكل قلب local pickup = createpickup (2498, -1685.3000488281 , 13.39999961853 " Health ", 1.0, 0, 0, 0, 0 ) addEventHandler ( "onClientpickupHit", root, function ( player ) if source == Pickup then if getElementType( player ) == "player" and not isPedInVehicle( player ) then setElementHealth ( player, 100 ) outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) end end) Link to comment
Jupi Posted July 28, 2016 Share Posted July 28, 2016 local Pickup = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100) addEventHandler ("onClientpickupHit", root, function (player) if source == Pickup then if getElementType(player) == "player" and not isPedInVehicle(player) then setElementHealth(player, 100) outputChatBox("تم اعطائك دم", 255, 255, 255, true) end end end ) Link to comment
Adham Posted July 28, 2016 Share Posted July 28, 2016 (edited) في إخطا في الكتابه local Pi = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100) addEventHandler ( "onClientPickupHit", root, function ( player ) if source == Pi then if getElementType( player ) == "player" and not isPedInVehicle( player ) then setElementHealth ( player, 100 ) outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) end end end) Edited July 28, 2016 by Guest Link to comment
Jupi Posted July 28, 2016 Share Posted July 28, 2016 outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) ما فيه ارقمنت لاعب جهة كلاينت .. Link to comment
FAHD+18 Posted July 28, 2016 Author Share Posted July 28, 2016 يظهر بس ما يعطي دم ! ما السبب Link to comment
Jupi Posted July 28, 2016 Share Posted July 28, 2016 هو اصلاً يزيد دم من نفسه يعني مو لازمك setElemetnHealth Link to comment
xBeSoOo Posted July 28, 2016 Share Posted July 28, 2016 Note: Client side IsPedInVehicle can be unreliable. Solution is to use: not getPedOccupiedVehicle(ped) من الويكي Link to comment
!#NssoR_) Posted July 28, 2016 Share Posted July 28, 2016 خليته لك سيرفر local Pi = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100) addEventHandler('onPickupHit',resourceRoot, function(player) if ( source == Pi ) then if getElementType( player ) == "player" and not isPedInVehicle( player ) then setElementHealth ( player, 100 ) outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) end end end ) Link to comment
FAHD+18 Posted July 28, 2016 Author Share Posted July 28, 2016 تمام بس القلب يختفي ابية ثابت Link to comment
!#NssoR_) Posted July 28, 2016 Share Posted July 28, 2016 غير اول سطر الي local Pi = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100,0) 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