Jump to content

مشكلة


Recommended Posts

ما اعرف ما المشكلة السكربت يعمل بس المشكلة مايخصم فلوس

local Pi = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100,0) 
  
  
addEventHandler('onPickupHit',resourceRoot, 
function (player ) 
    if ( source == Pi ) then 
        if getElementType( player ) == "player" and not isPedInVehicle( player ) then 
        local Money = getPlayerMoney( source ) 
        if Money >= 2500 then 
        setElementHealth ( player, 100 ) 
                takePlayerMoney (source,2000) 
                if getPlayerMoney (localPlayer) >= 2000 then 
            outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) 
        end 
    end 
 end 
end 
end 
) 

Link to comment
ما اعرف ما المشكلة السكربت يعمل بس المشكلة مايخصم فلوس
local Pi = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100,0) 
  
  
addEventHandler('onPickupHit',resourceRoot, 
function (player ) 
    if ( source == Pi ) then 
        if getElementType( player ) == "player" and not isPedInVehicle( player ) then 
        local Money = getPlayerMoney( source ) 
        if Money >= 2500 then 
        setElementHealth ( player, 100 ) 
                takePlayerMoney (source,2000) 
                if getPlayerMoney (localPlayer) >= 2000 then 
            outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) 
        end 
    end 
 end 
end 
end 
) 

اكيد ما بيشتغل من الهريس الي انت مسويه

local Pi = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100,0) 
  
  
addEventHandler('onPickupHit',resourceRoot, 
function (player ) 
    if ( source == Pi ) then 
        if getElementType( player ) == "player" and not isPedInVehicle( player ) then 
        local Money = getPlayerMoney( player ) 
        if Money >= 2500 then 
        setElementHealth ( player, 100 ) 
                takePlayerMoney (player,2000) 
                if getPlayerMoney (player) >= 2000 then 
            outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) 
        end 
    end 
 end 
end 
end 

وش تبي تسوي عشان ما فهمت شي من كودك

Link to comment

local Pi = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100,0) 
  
addEventHandler('onPickupHit',resourceRoot, 
    function ( player ) 
        if ( source == Pi ) then 
            if getElementType( player ) == "player" and not isPedInVehicle( player ) then 
                local money = getPlayerMoney( player ) 
                if money >= 2500 then 
                    setElementHealth( player, 100 ) 
                    takePlayerMoney( player, 2500 ) 
                    outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) 
                else 
                    outputChatBox ( "ليس معك نقود كافية", player,255,255,255,true ) 
                end 
            end 
        end 
    end) 
Edited by Guest
Link to comment
local Pi = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100,0) 
  
addEventHandler('onPickupHit',resourceRoot, 
    function ( player ) 
        if ( source == Pi ) then 
            if getElementType( player ) == "player" and not isPedInVehicle( player ) then 
                local money = getPlayerMoney( player ) 
                if money > 2500 then 
                    setElementHealth( player, 100 ) 
                    takePlayerMoney( player, 2500 ) 
                    outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) 
                else 
                    outputChatBox ( "ليس معك نقود كافية", player,255,255,255,true ) 
                end 
            end 
        end 
    end) 

>= 
Link to comment
local Pi = createPickup (2498, -1685.3000488281, 13.39999961853, 0, 100,0) 
  
addEventHandler('onPickupHit',resourceRoot, 
    function ( player ) 
        if ( source == Pi ) then 
            if getElementType( player ) == "player" and not isPedInVehicle( player ) then 
                local money = getPlayerMoney( player ) 
                if money > 2500 then 
                    setElementHealth( player, 100 ) 
                    takePlayerMoney( player, 2500 ) 
                    outputChatBox ( "تم اعطائك دم", player,255,255,255,true ) 
                else 
                    outputChatBox ( "ليس معك نقود كافية", player,255,255,255,true ) 
                end 
            end 
        end 
    end) 

>= 

:mrgreen: حذفتها بالغلط وأنا أعدل ع المود

عموماً شكراً لك ع التنبيه ي بطل

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