Jump to content

مطلوب مساعدة في Pickup


Recommended Posts

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
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

في إخطا في الكتابه

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 by Guest
Link to comment

خليته لك سيرفر

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...