Jump to content

أستفسار عن فنكشنات


ALw7sH

Recommended Posts

السلام عليكم ورحمة الله

وش الفنكشنات الي بحتاجها عشان أصنع مود

أذا احد قتل أحد بالهنتر يكتب بالشات colonel has kill noob

اسم الي اقتل والي أنقتل

مابي اكواد جاهزه بس أبي الفنكشنات والايفنت الي بحتاجهم

Link to comment
السلام عليكم ورحمة الله

وش الفنكشنات الي بحتاجها عشان أصنع مود

أذا احد قتل أحد بالهنتر يكتب بالشات colonel has kill noob

اسم الي اقتل والي أنقتل

مابي اكواد جاهزه بس أبي الفنكشنات والايفنت الي بحتاجهم

Event: "onClientPlayerDamage"

getPedOccupiedVehicle 
getElementModel 
outputChatBox 

Link to comment
السلام عليكم ورحمة الله

وش الفنكشنات الي بحتاجها عشان أصنع مود

أذا احد قتل أحد بالهنتر يكتب بالشات colonel has kill noob

اسم الي اقتل والي أنقتل

مابي اكواد جاهزه بس أبي الفنكشنات والايفنت الي بحتاجهم

Event: "onClientPlayerDamage"

getPedOccupiedVehicle 
getElementModel 
outputChatBox 

"onClientPlayerDamage" ? :/

تجي للهنتر ؟ : |

Link to comment
السلام عليكم ورحمة الله

وش الفنكشنات الي بحتاجها عشان أصنع مود

أذا احد قتل أحد بالهنتر يكتب بالشات colonel has kill noob

اسم الي اقتل والي أنقتل

مابي اكواد جاهزه بس أبي الفنكشنات والايفنت الي بحتاجهم

Event: "onClientPlayerDamage"

getPedOccupiedVehicle 
getElementModel 
outputChatBox 

"onClientPlayerDamage" ? :/

تجي للهنتر ؟ : |

onPlayerWasted نسيت اقلك يمديك تستخدمها او تستخدم ...

الفرق الحدث الأول وقت يتضرر اللاعب والثاني وقت يموت فـ شف اللي يناسبكـ ..

Link to comment

جرب ,

addEventHandler ( "onPlayerWasted", root,  
    function ( _, killer ) 
        if isElement ( killer ) and source ~= killer then 
            if isPedInVehicle ( killer ) then 
                local vehicle = getPedOccupiedVehicle ( killer ); 
                if vehicle then 
                    if getElementModel ( vehicle ) == 425 then 
                        outputChatBox ( getPlayerName ( killer ) .. " has kill " .. getPlayerName ( source ) .. " By Hunter." ); 
                    end 
                end 
            end 
        end 
    end 
); 

Link to comment
جرب ,
addEventHandler ( "onPlayerWasted", root,  
    function ( _, killer ) 
        if isElement ( killer ) and source ~= killer then 
            if isPedInVehicle ( killer ) then 
                local vehicle = getPedOccupiedVehicle ( killer ); 
                if vehicle then 
                    if getElementModel ( vehicle ) == 425 then 
                        outputChatBox ( getPlayerName ( killer ) .. " has kill " .. getPlayerName ( source ) .. " By Hunter." ); 
                    end 
                end 
            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...