Hakimovic Posted July 30, 2015 Share Posted July 30, 2015 السلام وعليكم شبااب ابي اتعلم برمجة و الله من جد شوي شوي ابي اسوي ماركر لما يخش له لاعب يجيه سلاح سويتو شوفو الاغلاط لي فييه و لا اضيف له شي marker = createMarker(-2408.04541,-596.83728,132.64844,'cylinder',5,0,0,255,255) addEventHandler ("onMarkerHit",marker,giveWeapon, function (source) giveWeapon ( source, 31, 200 ) outputChatBox ( "تم اعطائك سلاح", source, 255, 0, 0, true ) end ) Link to comment
iMr.SFA7 Posted July 30, 2015 Share Posted July 30, 2015 ليه ضايف giveWeapon بالحدث ؟ وليه معرف السورس ؟ السورس معرف من حاله لازم تسوي تحقق أن الي دخل الماركر هو اللاعب والسورس بذا الحدث هو الماركر نفسه فـ لا تحط سورس تعطي الماركر سلاح ؟ marker = createMarker(-2408.04541,-596.83728,132.64844,'cylinder',5,0,0,255,255) addEventHandler ("onMarkerHit",marker, function ( player ) if ( getElementType ( source ) == "player" ) then giveWeapon ( player, 31, 200 ) outputChatBox ( "تم اعطائك سلاح", source, 255, 0, 0, true ) end end ) Link to comment
Hakimovic Posted July 30, 2015 Author Share Posted July 30, 2015 ليه ضايف giveWeapon بالحدث ؟وليه معرف السورس ؟ السورس معرف من حاله لازم تسوي تحقق أن الي دخل الماركر هو اللاعب والسورس بذا الحدث هو الماركر نفسه فـ لا تحط سورس تعطي الماركر سلاح ؟ marker = createMarker(-2408.04541,-596.83728,132.64844,'cylinder',5,0,0,255,255) addEventHandler ("onMarkerHit",marker, function ( player ) if ( getElementType ( source ) == "player" ) then giveWeapon ( player, 31, 200 ) outputChatBox ( "تم اعطائك سلاح", source, 255, 0, 0, true ) end end ) شــكرا Link to comment
~Mr.Hassan Posted July 30, 2015 Share Posted July 30, 2015 جرب marker = createMarker(x,y,z,'cylinder',5,0,0,255,255) addEventHandler ("onMarkerHit",marker, function ( player ) if ( getElementType ( source ) == "player" ) then giveWeapon ( source, 31, 200 ) outputChatBox ( "تم اعطائك سلاح", source, 255, 0, 0, true ) end end ) Link to comment
Hakimovic Posted July 30, 2015 Author Share Posted July 30, 2015 حاط الملف سيرفر ؟ يب Link to comment
Hakimovic Posted July 30, 2015 Author Share Posted July 30, 2015 سويتو كدا و زبط marker = createMarker(-2415.28369,-594.33514,132.57285,'cylinder',5,0,0,255,255) addEventHandler ("onMarkerHit",marker, function ( player ) if ( getElementType ( player ) == "player" ) then giveWeapon ( player, 31, 200 ) outputChatBox ( "تم اعطائك سلاح", player, 255, 0, 0, true ) end end ) Link to comment
iMr.SFA7 Posted July 30, 2015 Share Posted July 30, 2015 -- Client Side marker = createMarker(-2415.28369,-594.33514,132.57285,'cylinder',5,0,0,255,255) addEventHandler ( "onClientMarkerHit", marker, function ( element ) if ( element == localPlayer ) then triggerServerEvent ("Give",localPlayer) end end ) -- Server Side addEvent('Give',true) addEventHandler('Give', root, function ( player ) giveWeapon ( player, 31, 200 ) outputChatBox ( "تم اعطائك سلاح", player, 255, 0, 0, true ) end ) Link to comment
Simple. Posted July 30, 2015 Share Posted July 30, 2015 جرب marker = createMarker(x,y,z,'cylinder',5,0,0,255,255) addEventHandler ("onMarkerHit",marker, function ( player ) if ( getElementType ( source ) == "player" ) then giveWeapon ( source, 31, 200 ) outputChatBox ( "تم اعطائك سلاح", source, 255, 0, 0, true ) end end ) wooooooooowwww السورس في افنت اون ماركر هيت هو الماركر كيف تتحقق إن الماركر لآعب؟ وتعطي الماركر سلآح =_= 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