Jump to content

تصحيح


Recommended Posts

addEventHandler ( "onPlayerWasted", root, function ( )
setElementData ( source, "WASTED", true )
end )
addEventHandler ( "onPlayerSpawn", root, function ( )
if getElementData ( source, "WASTED" ) == true then
setElementData ( source, "WASTED", false )
end
end
)
function takewp ( quitType )
    if getElementData ( source, "WASTED" ) == true then
		outputChatBox ( getPlayerName(source).. " قد مات و خرج من السيرفر و تم سحب الاسلحه ( " .. quitType .. " ) " )
		if  getElementHealth ( source, 0 )
		takeAllWeapons ( source )
	end 
end
addEventHandler ( "onPlayerQuit", root, takewp )

الي ما فهم انا ابي اذا في شخص مات او الهلث حقه 0 و طلع من سيرفر سواء فصل نته او هو طلع المهم يسحب الاسلحه او يحذفها من حسابه

هل في خطا بالاكواد.؟ جربتها و ما اشتغلت

Link to comment
addEventHandler ( "onPlayerWasted", root, function ( )
setElementData ( source, "WASTED", true )
end )
addEventHandler ( "onPlayerSpawn", root, function ( )
if getElementData ( source, "WASTED" ) == true then
setElementData ( source, "WASTED", false )
end
end
)
function takewp ( quitType )
    if getElementData ( source, "WASTED" ) == true then
		outputChatBox ( getPlayerName(source).. " قد مات و خرج من السيرفر و تم سحب الاسلحه ( " .. quitType .. " ) " )
		if  ( getElementHealth ( source ) == 0 ) then 
      takeAllWeapons ( source )
      end 
	end 
end
addEventHandler ( "onPlayerQuit", root, takewp )

 

Link to comment
    addEventHandler ( "onPlayerWasted", root, function ( )
    setElementData ( source, "WASTED", true )
    end )
    addEventHandler ( "onPlayerSpawn", root, function ( )
    if getElementData ( source, "WASTED" ) == true then
    setElementData ( source, "WASTED", false )
    end
    end
    )
    function takewp ( quitType )
        if getElementData ( source, "WASTED" ) == true then
    		outputChatBox ( getPlayerName(source).. " قد مات و خرج من السيرفر و تم سحب الاسلحه ( " .. quitType .. " ) " )
    		--if  ( getElementHealth ( source ) == 0 ) then م يحتاج تحقق من دمه لان عليه داتا انه ميت اصلن
          takeAllWeapons ( source )
          end  
    	end
    addEventHandler ( "onPlayerQuit", root, takewp )

 

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