AchrefF Posted April 7, 2020 Share Posted April 7, 2020 شباب الخير بقالي اكتر من سنتين سايب اللعبه ورجعت من اسبوع ونسيت شوية حاجات كنت طالب فنكشنات لطريقة عمل ماركر واول م ادخل الماركر يظهرلي لوحه فيها زرين زر لقفل اللوحه وزر لاخذ الوظيفه ولما اخذ الوظيفه عوز لوني يتغير للون معين ويتغير ف الخريطه كمان لنفس اللون واخد لبس معين ولو قتلت ايه حد فلوسي تزيد وشكرا Link to comment
Ra7-TnGLD Posted April 7, 2020 Share Posted April 7, 2020 (edited) -- # Client Side . createMarker addEventHandler - 'onClientMarkerHit' guiSetVisible addEventHandler - 'onClientGUIClick' triggerServerEvent -- #Server Side . { } -- Players table setElementModel table [ 'insert' ] addEventHandler - 'onPlayerWasted' givePlayerMoney addEventHandler - 'onPlayerQuit' table [ 'remove' ] بالنسبة لتغيير اللون , قصدك لون شخصيتك يتغير ؟ إذا لون شخصيتك يتغير فلازم تستعمل شادار وبالنسبة للتغير اللون في الخريطة , غيره من مود playersblips او بدل الجدول , سوي createTeam , setPlayerTeam Edited April 7, 2020 by Ra7-TnGLD 1 Link to comment
Infinity-War Posted April 9, 2020 Share Posted April 9, 2020 (edited) -- # Client Side . local Marker = createMarker ( x , y , z , type , size , redColor , greenColor , blueColor , alpha ) addEventHandler ( 'onClientMarkerHit' , resourceRoot , function ( Player , MatchingDimension ) if ( Player == localPlayer ) and ( MatchingDimension ) then guiSetVisible ( Window , true ) showCursor ( true ) end end ) addEventHandler ( 'onClientGUIClick' , root , function ( ) if ( source == AcceptJob ) then triggerServerEvent ( 'JoinJob;KillerJob' , localPlayer ) end end ) -- # Server Side . local Table = { } addEvent ( 'JoinJob;KillerJob' , true ) addEventHandler ( 'JoinJob;KillerJob' , root , function ( ) if ( Table [ source ] ) then return end Table [ source ] = true setElementModel ( source , 87 ) end ) addEventHandler ( 'onPlayerWasted' , root , function ( _ , Killer ) if ( Killer ) and ( getElementType ( Killer ) == 'player' ) then if ( Table [ Killer ] ) then givePlayerMoney ( Killer , 1000 ) end end end ) addEventHandler ( 'onPlayerQuit' , root , function ( ) if ( Table [ source ] ) then Table [ source ] = nil end end ) Edited April 9, 2020 by Infinity-War 1 Link to comment
AchrefF Posted April 10, 2020 Author Share Posted April 10, 2020 On 09/04/2020 at 11:09, Infinity-War said: -- # Client Side . local Marker = createMarker ( x , y , z , type , size , redColor , greenColor , blueColor , alpha ) addEventHandler ( 'onClientMarkerHit' , resourceRoot , function ( Player , MatchingDimension ) if ( Player == localPlayer ) and ( MatchingDimension ) then guiSetVisible ( Window , true ) showCursor ( true ) end end ) addEventHandler ( 'onClientGUIClick' , root , function ( ) if ( source == AcceptJob ) then triggerServerEvent ( 'JoinJob;KillerJob' , localPlayer ) end end ) -- # Server Side . local Table = { } addEvent ( 'JoinJob;KillerJob' , true ) addEventHandler ( 'JoinJob;KillerJob' , root , function ( ) if ( Table [ source ] ) then return end Table [ source ] = true setElementModel ( source , 87 ) end ) addEventHandler ( 'onPlayerWasted' , root , function ( _ , Killer ) if ( Killer ) and ( getElementType ( Killer ) == 'player' ) then if ( Table [ Killer ] ) then givePlayerMoney ( Killer , 1000 ) end end end ) addEventHandler ( 'onPlayerQuit' , root , function ( ) if ( Table [ source ] ) then Table [ source ] = nil end end ) تسلم On 07/04/2020 at 21:40, Ra7-TnGLD said: -- # Client Side . createMarker addEventHandler - 'onClientMarkerHit' guiSetVisible addEventHandler - 'onClientGUIClick' triggerServerEvent -- #Server Side . { } -- Players table setElementModel table [ 'insert' ] addEventHandler - 'onPlayerWasted' givePlayerMoney addEventHandler - 'onPlayerQuit' table [ 'remove' ] بالنسبة لتغيير اللون , قصدك لون شخصيتك يتغير ؟ إذا لون شخصيتك يتغير فلازم تستعمل شادار وبالنسبة للتغير اللون في الخريطة , غيره من مود playersblips او بدل الجدول , سوي createTeam , setPlayerTeam تسلم 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