Abo-Al3ZaB Posted August 23, 2015 Author Share Posted August 23, 2015 قلت لك ضيفsetElementData(source, "isPlayerJailed", true) اذا الشرطي قتل المجرم قصدك اضيف if setElementData(source, "isPlayerJailed", true) وإذا الشرطي قتل الكريمينال يرسبن بالسجن ؟ Link to comment
Abo-Al3ZaB Posted August 23, 2015 Author Share Posted August 23, 2015 بنتظر في الرد شباب ,,, ما في حد يحللي هالمشكلة ؟؟ Link to comment
iMr.SFA7 Posted August 24, 2015 Share Posted August 24, 2015 -- Server Side addEventHandler ("onPlayerWasted",root, function (_,killer) if getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' and getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' then setElementData ( source , "Spawnx",true ) end end ) addEventHandler ( "onPlayerSpawn", root, function() if ( getElementData(source, "Spawnx")) then setTimer(sp,1000,1,source) function sp( source ) setPedStat ( source, 24, 1000 ) setElementDimension( source, 0 ) setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 ) setElementInterior( source, 7 ) setPedArmor ( source, 100) setPedFightingStyle ( source, 7) setElementHealth (source,200) setPedStat (source, 24, 1000) end end end ) Link to comment
Professional Posted August 24, 2015 Share Posted August 24, 2015 بنتظر في الرد شباب ,,, ما في حد يحللي هالمشكلة ؟؟ وش يطلع لك الدي بوق ؟؟ Link to comment
Abo-Al3ZaB Posted August 24, 2015 Author Share Posted August 24, 2015 -- Server Side addEventHandler ("onPlayerWasted",root, function (_,killer) if getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' and getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' then setElementData ( source , "Spawnx",true ) end end ) addEventHandler ( "onPlayerSpawn", root, function() if ( getElementData(source, "Spawnx")) then setTimer(sp,1000,1,source) function sp( source ) setPedStat ( source, 24, 1000 ) setElementDimension( source, 0 ) setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 ) setElementInterior( source, 7 ) setPedArmor ( source, 100) setPedFightingStyle ( source, 7) setElementHealth (source,200) setPedStat (source, 24, 1000) end end end ) يسلمو مستر سفاح ,,, جاري التجربة ,, Link to comment
</Mr.Tn6eL> Posted August 24, 2015 Share Posted August 24, 2015 @Gta-Wd-- Server Side local groupName = 'Group' addEventHandler ( "onPlayerSpawn", root, function() if ( getElementData(source, "isPlayerJailed")) then return end if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' and getElementData ( source , "Group" ) == groupName then function sp( source ) setPedStat ( source, 24, 1000 ) setElementDimension( source, 0 ) setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 ) setElementInterior( source, 7 ) setPedArmor ( source, 100) setPedFightingStyle ( source, 7) setElementHealth (source,200) setPedStat (source, 24, 1000) end setTimer(sp,1000,1,source) end end) ايش سويت انت هيك طيب ؟ انا شايف الأكواد نفسها -__- setTimer ركز زين وخلك منتبه لأنك حاط وظيفة التايمر تحت والسكربت ترا يقرا من فوق لتحت وليس من تحت لفوق Link to comment
iMr.SFA7 Posted August 25, 2015 Share Posted August 25, 2015 يسلمو مستر سفاح ,,, جاري التجربة ,, You 're welcome . Link to comment
Abo-Al3ZaB Posted August 25, 2015 Author Share Posted August 25, 2015 -- Server Side addEventHandler ("onPlayerWasted",root, function (_,killer) if getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' and getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' then setElementData ( source , "Spawnx",true ) end end ) addEventHandler ( "onPlayerSpawn", root, function() if ( getElementData(source, "Spawnx")) then setTimer(sp,1000,1,source) function sp( source ) setPedStat ( source, 24, 1000 ) setElementDimension( source, 0 ) setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 ) setElementInterior( source, 7 ) setPedArmor ( source, 100) setPedFightingStyle ( source, 7) setElementHealth (source,200) setPedStat (source, 24, 1000) end end end ) بس سفاح انت هيك كأنك شلت سباون المقر ؟؟ وين local groupName Link to comment
iMr.SFA7 Posted August 25, 2015 Share Posted August 25, 2015 ياليت توضح الي تبيه بالتفصيل !! كودي هذا اذا احد مات يتحقق هل هم الاثنين في تيم كريمنال يرجع الوظيفة للنهاية واذا القاتل في تيم الشرطة يرسبن المجرم لامات في السجن Link to comment
Abo-Al3ZaB Posted August 25, 2015 Author Share Posted August 25, 2015 ياليت توضح الي تبيه بالتفصيل !!كودي هذا اذا احد مات يتحقق هل هم الاثنين في تيم كريمنال يرجع الوظيفة للنهاية واذا القاتل في تيم الشرطة يرسبن المجرم لامات في السجن خلص فهمت عليك ,,, يعني انا بس اغير احداثيات السباون ؟؟ setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 ) احط الإحداثيات هون احداثيات السجن وبصير يرسبن بالسجن ولا كيف ؟ Link to comment
iMr.SFA7 Posted August 25, 2015 Share Posted August 25, 2015 ايه غير الاحداثيات ! واذا السجن في انترو معين غير الرقم Link to comment
Abo-Al3ZaB Posted August 25, 2015 Author Share Posted August 25, 2015 ايه غير الاحداثيات !واذا السجن في انترو معين غير الرقم اوك تمام فهمتك ,,, بس انا بدي اياه يكون لجروب معين مو لتيم الكريمينال كله شوف الكود هيك مزبوط ؟؟ local groupName = '[****]' addEventHandler ("onPlayerWasted",root, function (_,killer) if getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' and getElementData ( source , "Group" ) == groupName and getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' then setElementData ( source , "Spawnx",true ) end end ) addEventHandler ( "onPlayerSpawn", root, function() if ( getElementData(source, "Spawnx")) then setTimer(sp,1000,1,source) function sp( source ) setElementDimension( source, 0 ) setElementPosition( source, 1574.7687988281,-1680.6424560547,1226.3962402344 ) setElementInterior( source, 1 ) end end end ) Link to comment
iMr.SFA7 Posted August 25, 2015 Share Posted August 25, 2015 أنت تبي تجيب جروب القاتل ؟؟ فهمني ايش تبي بالضبط وأسويه لكك Link to comment
Abo-Al3ZaB Posted August 25, 2015 Author Share Posted August 25, 2015 أنت تبي تجيب جروب القاتل ؟؟فهمني ايش تبي بالضبط وأسويه لكك لا ,,, بدي اياه مثل ما عملت انت لما شرطي يقتل لاعب من تيم الكريمينال يرسبن بالسجن بس الأكواد تتطبق مو لتيم الكريمينال كله لجروب معين باف 6 فقط إذا فهمت علي قلي وإذا ما فهمت ما في حل غير اجيبك السيرفر وتشوف المشكلة وخلص ض Link to comment
iMr.SFA7 Posted August 25, 2015 Share Posted August 25, 2015 local Group = 'GroupName' addEventHandler ("onPlayerWasted",root, function (_,killer) if ( source and killer and killer ~= source ) then if getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' or getElementData ( source , "Group" ) == Group then if ( getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' ) then setElementData ( source , "Spawnx",true ) end end end end ) addEventHandler ( "onPlayerSpawn", root, function() if ( getElementData(source, "Spawnx")) then setTimer(sp,1000,1,source) function sp( source ) setElementDimension( source, 0 ) setElementPosition( source, 1574.7687988281,-1680.6424560547,1226.3962402344 ) setElementInterior( source, 1 ) end end end ) Link to comment
Abo-Al3ZaB Posted August 25, 2015 Author Share Posted August 25, 2015 local Group = 'GroupName' addEventHandler ("onPlayerWasted",root, function (_,killer) if ( source and killer and killer ~= source ) then if getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' or getElementData ( source , "Group" ) == Group then if ( getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' ) then setElementData ( source , "Spawnx",true ) end end end end ) addEventHandler ( "onPlayerSpawn", root, function() if ( getElementData(source, "Spawnx")) then setTimer(sp,1000,1,source) function sp( source ) setElementDimension( source, 0 ) setElementPosition( source, 1574.7687988281,-1680.6424560547,1226.3962402344 ) setElementInterior( source, 1 ) end end end ) الاكواد فيها شي خطأ سفاح ,,, لما انقتل ما بروح للسباون المطلوب بالأكواد Link to comment
Abo-Al3ZaB Posted August 25, 2015 Author Share Posted August 25, 2015 / debugscript 3 ? لما اموت ما بروح للإحداثيات المطلوبة بالأكواد ؟؟ Link to comment
iMr.SFA7 Posted August 25, 2015 Share Posted August 25, 2015 يعني هو بينقلكك لاحداثيات بس موب الاحداثيات المطلوبة ؟ Link to comment
Abo-Al3ZaB Posted August 25, 2015 Author Share Posted August 25, 2015 يعني هو بينقلكك لاحداثيات بس موب الاحداثيات المطلوبة ؟ الاحداثيات اللي بنقلني عليها مبرمجة بالجيم مود عادي بس ما بنقلني للإحداثيات اللي في سباون المقر (احداثيات السجن) Link to comment
iMr.SFA7 Posted August 26, 2015 Share Posted August 26, 2015 local Group = 'GroupName' addEventHandler ("onPlayerWasted",root, function (_,killer) if ( killer and getElementType ( killer) == "player" )) then if not getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' or getElementData ( source , "Group" ) == Group then return end if ( getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' ) then setElementData ( source , "Spawnx",true ) end end end ) addEventHandler ( "onPlayerSpawn", root, function() if getElementData(source, "Spawnx") then setTimer( function ( ) spawnPlayer ( source, 1574.7687988281,-1680.6424560547,1226.3962402344 ) setElementInterior( source, 1 ) end, 3000,1 ) end end ) Link to comment
#Mr.alkmasha Posted August 26, 2015 Share Posted August 26, 2015 المشكله من كود لسباون جربه و هو كذا addEventHandler ( "onPlayerSpawn", root, function() if getElementData(source, "Spawnx") then setTimer( function ( ) if ( getElementData(source"Stats") ~= 3 ) then spawnPlayer ( source, 1574.7687988281,-1680.6424560547,1226.3962402344 ) setElementInterior( source, 1 ) end, 3000,1 ) end end end ) Link to comment
Abo-Al3ZaB Posted August 27, 2015 Author Share Posted August 27, 2015 local Group = 'GroupName' addEventHandler ("onPlayerWasted",root, function (_,killer) if ( killer and getElementType ( killer) == "player" )) then if not getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' or getElementData ( source , "Group" ) == Group then return end if ( getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' ) then setElementData ( source , "Spawnx",true ) end end end ) addEventHandler ( "onPlayerSpawn", root, function() if getElementData(source, "Spawnx") then setTimer( function ( ) spawnPlayer ( source, 1574.7687988281,-1680.6424560547,1226.3962402344 ) setElementInterior( source, 1 ) end, 3000,1 ) end end ) سفاح ,,, غلبتك معي ,, بس اكواد مش زابطة مش عارف ليش تيجي السيرفر تشوف المشكلة وتريح راسي وراسك ؟؟ او ضيفني سكايب hedr.hamada1 ؟؟ Link to comment
iMr.SFA7 Posted August 27, 2015 Share Posted August 27, 2015 حط الكود كذآ local Group = 'GroupName' addEventHandler ("onPlayerWasted",root, function (_,killer) if ( killer and getElementType ( killer) == "player" ) then if not getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' or getElementData ( source , "Group" ) == Group then return end if ( getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' ) then setElementData ( source , "Spawnx",true ) end end end ) addEventHandler ( "onPlayerSpawn", root, function() if getElementData(source, "Spawnx") then setTimer( function ( ) spawnPlayer ( source, 1574.7687988281,-1680.6424560547,1226.3962402344 ) setElementInterior( source, 1 ) end, 3000,1 ) end end ) واذا ما ضبط شفلي وش يقولككـ الدي بق Link to comment
Abo-Al3ZaB Posted August 27, 2015 Author Share Posted August 27, 2015 حط الكود كذآ local Group = 'GroupName' addEventHandler ("onPlayerWasted",root, function (_,killer) if ( killer and getElementType ( killer) == "player" ) then if not getPlayerTeam ( source ) and getTeamName( getPlayerTeam( source ) ) == 'Criminals' or getElementData ( source , "Group" ) == Group then return end if ( getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Police' ) then setElementData ( source , "Spawnx",true ) end end end ) addEventHandler ( "onPlayerSpawn", root, function() if getElementData(source, "Spawnx") then setTimer( function ( ) spawnPlayer ( source, 1574.7687988281,-1680.6424560547,1226.3962402344 ) setElementInterior( source, 1 ) end, 3000,1 ) end end ) واذا ما ضبط شفلي وش يقولككـ الدي بق ما زبط ,,, قصدك debugscript ,,, باف 8 ؟ 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