iMr.G[7]A Posted May 1, 2014 Share Posted May 1, 2014 السسلام عليكم ورحمة الله وبركاته ششباب ابي كود تجهزونه لي لو سمحتو ابي 3 ماركرات ماركاكات كتاكت مدري كيف اجمعها المهم ابي 3 ماركر ابي واحد تدخل تصير تيم شرطي والثاني تدخه تصير تيم مجرم وثالث تدخله تصير تيم مسعف تكفووون Link to comment
The Killer Posted May 1, 2014 Share Posted May 1, 2014 Event # 'onMarkerHit' function # createMarker getElementType setPlayerTeam Link to comment
iMr.G[7]A Posted May 1, 2014 Author Share Posted May 1, 2014 كيلر سولي بس ماركر تدخله تصير شرطي وانا اكمل الباقي. Link to comment
EH10 Posted May 1, 2014 Share Posted May 1, 2014 جـرب * local marker = createMarker( . . . . . ) Team = createTeam('Police') addEventHandler('onMarkerHit',marker,function(player) if getElementType(player) == 'player' then setPlayerTeam( player, Team ) end end ) Link to comment
al-Kobra Posted May 1, 2014 Share Posted May 1, 2014 local myMarker = createMarker( x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) local pollice = createTeam ( "Police", 0, 255, 0 ) local ID = رقم شخصية الشرطة addEventHandler( "onMarkerHit", myMarker, function ( plr ) if getElementType( plr ) == 'player' and getTeamName( getPlayerTeam(source) ) ~= 'Police' then setPlayerTeam ( plr, pollice ) setElementModel ( plr, ID ) end end ) Link to comment
™!>VàLéNTiNô<!™ Posted May 6, 2014 Share Posted May 6, 2014 local myMarker = createMarker( x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) ---- عمل ماركر local pollice = createTeam ( "Police", 0, 255, 0 ) ----- عمل تيم local ID = 285 --- رقم شخصية الشرطى addEventHandler( "onMarkerHit", myMarker, ---- عند لمس الماركر function ( plr ) --- وظيفة if getElementType( plr ) == 'player' and getTeamName( getPlayerTeam(source) ) ~= 'Police' then --- تحقق من النوع والتيم setPlayerTeam ( plr, pollice ) ----- ضبط التيم setElementModel ( plr, ID ) ---- ضبط الشخصية 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