d43dr4 Posted December 9, 2012 Share Posted December 9, 2012 السلام عليكم شباب سويت كودين ولكن مدري وش الخطا فيهم ما يشتغلون صح حاولت تصحيحهم لكن ما زبطت الأول: يسوي اي سيارة اركبها بدمج لانهائي اي لا تتفجر او لا ينقص نقاط دمها addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, theSeat ) if source == theVehicle then if ( theSeat == 0 ) and ( getPlayerName ( thePlayer ) ~= "#[iMr][E'rrOr]_N" ) then setVehicleDamageProof ( getPedOccupiedVehicle ( getPlayerFromName ( "#[iMr][E'rrOr]_N" ) ), true ) end end end ) الثاني: يسوي لما ادخل انا للسيرفر يعطيني Stats 1000 حاولت كثير لكن ماعرفت الرجاء وضع حل للكود الاول والكود الثاني و شكرا لكم Link to comment
Blaawee Posted December 9, 2012 Share Posted December 9, 2012 (edited) setVehicleDamageProof ( vehicle theVehicle, bool damageProof ) addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, theSeat ) if source == theVehicle then -- على حسب السورس اللي عندك هنآ if ( theSeat == 0 ) and ( getPlayerName ( thePlayer ) == "#[iMr][E'rrOr]_N" ) then setVehicleDamageProof ( source, true ) end end end ) Edited December 10, 2012 by Guest Link to comment
./BlackBird# Posted December 9, 2012 Share Posted December 9, 2012 سطر 4 انت حاط ~= المفروض == و اطرح كودك الثاني Link to comment
d43dr4 Posted December 9, 2012 Author Share Posted December 9, 2012 setPlayerStat ( getPlayerFromName ( thePlayer ) == "#[iMr][E'rrOr]_N", Health, 1000 ) Link to comment
./BlackBird# Posted December 9, 2012 Share Posted December 9, 2012 setPlayerStat ( getPlayerFromName ( thePlayer ) == "#[iMr][E'rrOr]_N", Health, 1000 ) الخطا هو في health لان المفروض رقم ادخل عند الصفحه حقتها و جيب الرقم Link to comment
Blaawee Posted December 9, 2012 Share Posted December 9, 2012 setPlayerStat ( getPlayerFromName ( thePlayer ) == "#[iMr][E'rrOr]_N", Health, 1000 ) setPedStat Link to comment
d43dr4 Posted December 9, 2012 Author Share Posted December 9, 2012 اخوان ابي اللي مثل في الادمنية مثلا مثل ذي يعني لما ادخل يكون كل شيء 1000 اليا اذا ممكن تسوون 2 منها وانا بكمل اللي باقي Link to comment
./BlackBird# Posted December 9, 2012 Share Posted December 9, 2012 انا علمتك الخطاء جربته؟ Link to comment
Blaawee Posted December 9, 2012 Share Posted December 9, 2012 (edited) مم جربت .. myState = { [69] = "WEAPONTYPE_PISTOL_SKILL ", [70] = "WEAPONTYPE_PISTOL_SILENCED_SKILL", [71] = "WEAPONTYPE_DESERT_EAGLE_SKILL", [72] = "WEAPONTYPE_SHOTGUN_SKILL ", [73] = "WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL ", [74] = "WEAPONTYPE_SPAS12_SHOTGUN_SKILL ", [75] = "WEAPONTYPE_MICRO_UZI_SKILL", [76] = "WEAPONTYPE_MP5_SKILL", [77] = "WEAPONTYPE_AK47_SKILL", [78] = "WEAPONTYPE_M4_SKILL", [79] = "WEAPONTYPE_SNIPERRIFLE_SKILL " } addEventHandler ( "onPlayerJoin", root, function() for state_, info_ in ipairs ( myState ) if ( getPlayerName ( source ) == "#[iMr][E'rrOr]_N" ) then setPedStat ( source, state_, 999 ) outputChatBox( "Your Player Looks really Powrfull", source, 255, 255, 0, true ) end end end ) Edited December 9, 2012 by Guest Link to comment
TAPL Posted December 9, 2012 Share Posted December 9, 2012 مم جربت .. myState = { [69] = "WEAPONTYPE_PISTOL_SKILL ", [70] = "WEAPONTYPE_PISTOL_SILENCED_SKILL", [71] = "WEAPONTYPE_DESERT_EAGLE_SKILL", [72] = "WEAPONTYPE_SHOTGUN_SKILL ", [73] = "WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL ", [74] = "WEAPONTYPE_SPAS12_SHOTGUN_SKILL ", [75] = "WEAPONTYPE_MICRO_UZI_SKILL", [76] = "WEAPONTYPE_MP5_SKILL", [77] = "WEAPONTYPE_AK47_SKILL", [78] = "WEAPONTYPE_M4_SKILL", [79] = "WEAPONTYPE_SNIPERRIFLE_SKILL " } addEventHandler ( "onPlayerJoin", root, function( thePlayer ) for state_, info_ in ipairs ( myState ) if ( getPlayerName ( thePlayer ) == "#[iMr][E'rrOr]_N" ) then setPedStat ( thePlayer, state_, 999 ) outputChatBox( "Your Player Looks really Powrfull", thePlayer, 255, 255, 0, true ) end end end ) https://wiki.multitheftauto.com/wiki/OnPlayerJoin Parameters No parameters. thePlayer مدري من وين جبت Link to comment
d43dr4 Posted December 9, 2012 Author Share Posted December 9, 2012 شباب خلص لقيت الكود بس في مشكل لما اسويه كذا function changeBodyStrength ( player, commandName ) if ( setPlayerStat ( player, 22, 999 ) ) then outputChatBox ( "Your player looks really muscular" ) else outputChatBox ( "Failed to make your player look muscular." ) end end addCommandHandler ( "xx", changeBodyStrength ) و اكتب xx يكون شغال بس لما اسوي كثير مثلا function changeBodyStrength ( player, commandName ) if ( setPlayerStat ( player, 22, 999 ) ) then elseif ( setPlayerStat ( player, 23, 999 ) ) then elseif ( setPlayerStat ( player, 24, 999 ) ) then elseif ( setPlayerStat ( player, 69, 999 ) ) then elseif ( setPlayerStat ( player, 70, 999 ) ) then elseif ( setPlayerStat ( player, 71, 999 ) ) then elseif ( setPlayerStat ( player, 72, 999 ) ) then elseif ( setPlayerStat ( player, 73, 999 ) ) then elseif ( setPlayerStat ( player, 74, 999 ) ) then elseif ( setPlayerStat ( player, 75, 999 ) ) then elseif ( setPlayerStat ( player, 76, 999 ) ) then elseif ( setPlayerStat ( player, 77, 999 ) ) then elseif ( setPlayerStat ( player, 78, 999 ) ) then elseif ( setPlayerStat ( player, 79, 999 ) ) then elseif ( setPlayerStat ( player, 255, 999 ) ) then outputChatBox ( "Your player looks really muscular" ) else outputChatBox ( "Failed to make your player look muscular." ) end end addCommandHandler ( "xx", changeBodyStrength ) يخرب السكرب وانا ابيهم كلهم في سكربت واحد وش الحل Link to comment
Blaawee Posted December 9, 2012 Share Posted December 9, 2012 myState = { [69] = "WEAPONTYPE_PISTOL_SKILL ", [70] = "WEAPONTYPE_PISTOL_SILENCED_SKILL", [71] = "WEAPONTYPE_DESERT_EAGLE_SKILL", [72] = "WEAPONTYPE_SHOTGUN_SKILL ", [73] = "WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL ", [74] = "WEAPONTYPE_SPAS12_SHOTGUN_SKILL ", [75] = "WEAPONTYPE_MICRO_UZI_SKILL", [76] = "WEAPONTYPE_MP5_SKILL", [77] = "WEAPONTYPE_AK47_SKILL", [78] = "WEAPONTYPE_M4_SKILL", [79] = "WEAPONTYPE_SNIPERRIFLE_SKILL " } addEventHandler ( "onPlayerJoin", root, function( player ) player = player or source if not isElement( player ) then return end if ( getPlayerName ( player ) == "#[iMr][E'rrOr]_N" ) then for state_, info_ in pairs ( myState ) setPedStat ( player, state_, 999 ) outputChatBox( "Your Player Looks really Powrfull", player, 255, 255, 0, true ) end end ) Link to comment
abu5lf Posted December 10, 2012 Share Posted December 10, 2012 شباب خلص لقيت الكودبس في مشكل لما اسويه كذا function changeBodyStrength ( player, commandName ) if ( setPlayerStat ( player, 22, 999 ) ) then outputChatBox ( "Your player looks really muscular" ) else outputChatBox ( "Failed to make your player look muscular." ) end end addCommandHandler ( "xx", changeBodyStrength ) و اكتب xx يكون شغال بس لما اسوي كثير مثلا function changeBodyStrength ( player, commandName ) if ( setPlayerStat ( player, 22, 999 ) ) then elseif ( setPlayerStat ( player, 23, 999 ) ) then elseif ( setPlayerStat ( player, 24, 999 ) ) then elseif ( setPlayerStat ( player, 69, 999 ) ) then elseif ( setPlayerStat ( player, 70, 999 ) ) then elseif ( setPlayerStat ( player, 71, 999 ) ) then elseif ( setPlayerStat ( player, 72, 999 ) ) then elseif ( setPlayerStat ( player, 73, 999 ) ) then elseif ( setPlayerStat ( player, 74, 999 ) ) then elseif ( setPlayerStat ( player, 75, 999 ) ) then elseif ( setPlayerStat ( player, 76, 999 ) ) then elseif ( setPlayerStat ( player, 77, 999 ) ) then elseif ( setPlayerStat ( player, 78, 999 ) ) then elseif ( setPlayerStat ( player, 79, 999 ) ) then elseif ( setPlayerStat ( player, 255, 999 ) ) then outputChatBox ( "Your player looks really muscular" ) else outputChatBox ( "Failed to make your player look muscular." ) end end addCommandHandler ( "xx", changeBodyStrength ) يخرب السكرب وانا ابيهم كلهم في سكربت واحد وش الحل aStat = { [23] = true; [24] = true; [69] = true; [70] = true; [71] = true; [72] = true; [73] = true; [74] = true; [75] = true; [76] = true; [77] = true; [78] = true; [79] = true; } addCommandHandler( 'xx', function( playerSource ) for StatID, _ in pairs( aStat )do if( setPedStat( playerSource, StatID, 999 ) )then outputChatBox 'Your player looks really muscular' else outputChatBox 'Failed to make your player look muscular.' end break end end ) 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