Jump to content

طلب مساعدة


Recommended Posts

السلام وعليكم

شبااب ابي اتعلم برمجة و الله من جد شوي شوي

ابي اسوي ماركر لما يخش له لاعب يجيه سلاح

سويتو شوفو الاغلاط لي فييه و لا اضيف له شي

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

ليه ضايف 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
ليه ضايف 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

جرب

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

سويتو كدا و زبط

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

-- 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
جرب
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 :shock:

السورس في افنت اون ماركر هيت هو الماركر

كيف تتحقق إن الماركر لآعب؟

وتعطي الماركر سلآح

=_=

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...