Jump to content

تصحيح كود ^


Recommended Posts

السلام عليكم شباب

انا سويت وظيفه بسيطه

لما شخص ياخذ الوظيفه و يقتل اي شخص ثاني في السيرفر يجيه فلوس

بس واجهتني مشكله وقت يجيه الكلام

المشكله انو يجي الكلام الي قتل و الي مات

ومادري ليش هه

اي مساعده ذذ ؟ :D:D:fadein::fadein:

addEventHandler("onPlayerWasted",root, 
function (_,killer) 
 outputTopChat(" You Killed Player And Get $1000",  root ) 
 if isElement(killer) and getElementType(killer) == "player" and source ~= killer and getPlayerTeam(killer) == Team then 
 givePlayerMoney(killer,1000) 
  
 end 
 end 
 ) 
  

Link to comment

-- Server Side # 
addEventHandler("onPlayerWasted", root, function (_,killer) 
    if isElement(killer)  and killer ~= source and getElementType(killer) == "player" then 
        if getPlayerTeam(killer) and getTeamName ( getPlayerTeam(killer) ) == Team then 
            givePlayerMoney(killer,1000) 
                outputTopChat(" You Killed Player And Get $1000",  killer) 
            end 
        end 
    end 
) 
Link to comment
-- Server Side # 
addEventHandler("onPlayerWasted", root, function (_,killer) 
    if isElement(killer)  and killer ~= source and getElementType(killer) == "player" then 
        if getPlayerTeam(killer) and getTeamName ( getPlayerTeam(killer) ) == Team then 
            givePlayerMoney(killer,1000) 
                outputTopChat(" You Killed Player And Get $1000",  killer) 
            end 
        end 
    end 
) 

احتمال ان الفنكشن

outputTopChat

من مود ثاني

يحتاج export

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