ايهاب Posted July 2, 2019 Share Posted July 2, 2019 السلام عليكم الموضوع الى فات بتاع المساعد كان فى لخبطة من كتر الاكواد المساعدة عندى فى مود الرسبون اما اللاعب يموت بياخد سكن سى جى لوحدة المشكلة اتحلت اما واحد ادانى الكود دة ضفتة addEventHandler( 'onPlayerWasted', root, function( ) setElementData( source, 'Model', getElementModel( source ) ) end ) بس الكود دة عامل بق لما انا اكون حرامى واحول شرطى ينزلنى بسكن الحرامى فا اما شلتوة انحلت مشكلة البق بس اللاعب اما بيموت بياخد سكن سى جى هل فى كود بديل لة ميخليش اللاعب ياخد سكن سى جى ويعمل البق Link to comment
Hakan Posted July 2, 2019 Share Posted July 2, 2019 local Teams = { -- [ ' teamname ' ] = idskin, ['Police'] = 20, } addEventHandler ( "onPlayerWasted" , root , function ( ) local team = getPlayerTeam ( source ) ; if ( team and Teams [ getTeamName ( team ) ] ) then setTimer(setElementModel,1000,1,source,Teams[getTeamName ( team )]) end end ) ولو ان عندك بالتيم الواحد اكثر من شخصية اطرح لنا كود يوم اللاعب يخش فـ التيم . Link to comment
ايهاب Posted July 2, 2019 Author Share Posted July 2, 2019 On 02/07/2019 at 09:38, Hakan said: local Teams = { -- [ ' teamname ' ] = idskin, ['Police'] = 20, } addEventHandler ( "onPlayerWasted" , root , function ( ) local team = getPlayerTeam ( source ) ; if ( team and Teams [ getTeamName ( team ) ] ) then setTimer(setElementModel,1000,1,source,Teams[getTeamName ( team )]) end end ) ولو ان عندك بالتيم الواحد اكثر من شخصية اطرح لنا كود يوم اللاعب يخش فـ التيم . Expand مفسش كود بديل عن دة لان فى تيمات تانية كتير اغضر سماوى الخ Link to comment
Ra7-TnGLD Posted July 2, 2019 Share Posted July 2, 2019 _Table = { } addEventHandler ( 'onPlayerWasted' , root , function ( ) _Table [ source ] = { getPlayerTeam ( source ) , getElementModel ( source ) } end ) addEventHandler ( 'onPlayerSpawn', root , function ( ) if ( _Table [ source ] ) and ( _Table [ source ] [ 1 ] == getPlayerTeam ( source ) ) then setElementModel ( source , _Table [ source ] [ 2 ] ) _Table [ source ] = nil end end ) addEventHandler ( 'onPlayerQuit' , root , function ( ) if ( _Table [ source ] ) then _Table [ source ] = nil end end ) 1 Link to comment
ايهاب Posted July 2, 2019 Author Share Posted July 2, 2019 On 02/07/2019 at 09:59, Ra7-TnGLD said: _Table = { } addEventHandler ( 'onPlayerWasted' , root , function ( ) _Table [ source ] = { getPlayerTeam ( source ) , getElementModel ( source ) } end ) addEventHandler ( 'onPlayerSpawn', root , function ( ) if ( _Table [ source ] ) and ( _Table [ source ] [ 1 ] == getPlayerTeam ( source ) ) then setElementModel ( source , _Table [ source ] [ 2 ] ) _Table [ source ] = nil end end ) addEventHandler ( 'onPlayerQuit' , root , function ( ) if ( _Table [ source ] ) then _Table [ source ] = nil end end ) Expand kt نفس المشكلو اللاعب سكنة سى جى اما يموت Link to comment
Hakan Posted July 2, 2019 Share Posted July 2, 2019 اطرح لنا كود يوم اللاعب يخش التيم Link to comment
ايهاب Posted July 2, 2019 Author Share Posted July 2, 2019 On 02/07/2019 at 10:13, Hakan said: اطرح لنا كود يوم اللاعب يخش التيم Expand خلاص الكود الى حطوة الشخص الى تحت منك اشتغل مشكور يغالى On 02/07/2019 at 09:59, Ra7-TnGLD said: _Table = { } addEventHandler ( 'onPlayerWasted' , root , function ( ) _Table [ source ] = { getPlayerTeam ( source ) , getElementModel ( source ) } end ) addEventHandler ( 'onPlayerSpawn', root , function ( ) if ( _Table [ source ] ) and ( _Table [ source ] [ 1 ] == getPlayerTeam ( source ) ) then setElementModel ( source , _Table [ source ] [ 2 ] ) _Table [ source ] = nil end end ) addEventHandler ( 'onPlayerQuit' , root , function ( ) if ( _Table [ source ] ) then _Table [ source ] = nil end end ) Expand مشكور يسطااااااااااااااا اشتغل Link to comment
Ra7-TnGLD Posted July 2, 2019 Share Posted July 2, 2019 On 02/07/2019 at 10:19, ايهاب said: خلاص الكود الى حطوة الشخص الى تحت منك اشتغل مشكور يغالى مشكور يسطااااااااااااااا اشتغل Expand ايه يشطا ندمان انك صاحبتني ههههنهههه .. يالله مش مشكلة 1 Link to comment
ايهاب Posted July 2, 2019 Author Share Posted July 2, 2019 On 02/07/2019 at 10:28, Ra7-TnGLD said: ايه يشطا ندمان انك صاحبتني ههههنهههه .. يالله مش مشكلة Expand شوف الخاص ------------ Link to comment
N3xT Posted July 2, 2019 Share Posted July 2, 2019 ياليت تنتبه للأقسام, المساعدات البرمجية هنا ينقل 1 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