AliAlanzi Posted April 3, 2018 Share Posted April 3, 2018 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
^iiEcoo'x_) Posted April 3, 2018 Share Posted April 3, 2018 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
#Major . Posted April 4, 2018 Share Posted April 4, 2018 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now