AliAlanzi Posted August 27, 2017 Share Posted August 27, 2017 بسوي مود لمن شخص يموت و يطلع من سيرفر تنسحب اسلحه حقته onPlayerWasted وش كمان غير ذا؟ Link to comment
AliAlanzi Posted August 27, 2017 Author Share Posted August 27, 2017 (edited) ابيه اذا مات و طلع من سيرفر ياخذ الاسلحه مو لمن يموت takeAllWeapons تنفع؟ اممم اتوقع عني خربت ابو الاكواد addEventHandler ( "onPlayerWasted", getRootElement(), anticheat ) function anticheat (killerweapon) local anticheat1 = getWeaponNameFromID ( killerweapon ) end end ) function takewp (quitType ) outputChatBox ( getPlayerName(source).. "قد مات و خرج من السيرفر و تم سحب الاسلحه(" .. quitType .. ")" ) takeAllWeapons ( getRootElement() end end addEventHandler ( "onPlayerQuit", getRootElement(), quitPlayer ) خخخخخخخ شيل كلو روكب Edited August 27, 2017 by Ghost-Gamer Link to comment
iMr.WiFi..! Posted August 29, 2017 Share Posted August 29, 2017 (edited) 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 .. " ) " ) takeAllWeapons ( source ) end end addEventHandler ( "onPlayerQuit", root, takewp ) Edited August 29, 2017 by iMr.WiFi..! انا بحب البظاظا لعيون بروس Link to comment
AliAlanzi Posted August 29, 2017 Author Share Posted August 29, 2017 12 hours ago, iMr.WiFi..! said: 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 .. " ) " ) takeAllWeapons ( source ) end end addEventHandler ( "onPlayerQuit", root, takewp ) ما اشتغل ما يسحب الاسلحه Link to comment
Omoi Posted August 30, 2017 Share Posted August 30, 2017 طيب سو داتا لو طلع وهو ميت وخل لما يدخل اذا الداتا ترو يسحب منه الاسلحه Link to comment
#Soking Posted August 30, 2017 Share Posted August 30, 2017 حط اكواد حفظ الاسلحه الـ عندك Link to comment
AliAlanzi Posted August 30, 2017 Author Share Posted August 30, 2017 55 minutes ago, #Soking said: حط اكواد حفظ الاسلحه الـ عندك حفظ الاسلحه في php Link to comment
#Soking Posted August 30, 2017 Share Posted August 30, 2017 1 minute ago, Ghost-Gamer said: حفظ الاسلحه في php what Link to comment
Rockyz Posted August 30, 2017 Share Posted August 30, 2017 2 minutes ago, Ghost-Gamer said: حفظ الاسلحه في php وش دخل حفظ الاسلحة ب PHP Link to comment
AliAlanzi Posted August 30, 2017 Author Share Posted August 30, 2017 (edited) 7 minutes ago, #,+( _xiRoc[K]; > said: وش دخل حفظ الاسلحة ب PHP roleplay 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 .. " ) " ) takeAllWeapons ( source ) end end addEventHandler ( "onPlayerQuit", root, takewp ) addEventHandler ("onPlayerJoin", root, function () if getElementData ( source,"WASTED" ) == true then takeAllWeapons ( source ) end end ) الحياة تجارب يمكن الكود الاخير كله كامل توي سويته ض حق onPlayerJoin Edited August 30, 2017 by Ghost-Gamer Link to comment
iMr.WiFi..! Posted August 30, 2017 Share Posted August 30, 2017 5 hours ago, Ghost-Gamer said: roleplay 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 .. " ) " ) takeAllWeapons ( source ) end end addEventHandler ( "onPlayerQuit", root, takewp ) addEventHandler ("onPlayerJoin", root, function () if getElementData ( source,"WASTED" ) == true then takeAllWeapons ( source ) end end ) الحياة تجارب يمكن الكود الاخير كله كامل توي سويته ض حق onPlayerJoin ما منه داعي كيف تسوي تحقق لداتا واللاعب توه داخل يعني كأنه شخص نظيف ! وماعنده اي داتا حتى لو حطيت عليه داتا قبل مايخرج Link to comment
AliAlanzi Posted August 31, 2017 Author Share Posted August 31, 2017 اهااا طيب و الحل لمن شخص يكون ميت و يطلع يطلع لنا بالشات لمن ما يكون ميت و يطلع ما يطلع لنا بالشات شي بس مشكله ما يسحب السلاح Link to comment
LoOs Posted August 31, 2017 Share Posted August 31, 2017 On ٢٨/٨/٢٠١٧ at 11:54, Ghost-Gamer said: الو... هلا اخوي ... 1 1 1 Link to comment
^iiEcoo'x_) Posted September 2, 2017 Share Posted September 2, 2017 أعتذر على رفع الموضوع , بس لو تلاحظ هـ الشيء ممكن اللاعب يموت و يفصل النت ويخرج ف لازم تتحقق إنه م خرج بسبب " Timed out " 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