Jump to content

منطقة محددة و تايمر


Recommended Posts

  
marker = createMarker( x,y ,z, "cylinder", size, r, g, b ) 
addEventHandler("onMarkerHit",marker,function(player) 
if ( getElementType ( player ) == ( "player" ) and not isPedInVehicle(player) then 
setTimer(function(player) 
setElementPosition(player,x,y,z) 
end,120000,0) 
end 
end 
) 
  

التعديلات :

في السطر الاول

x,y,z = احداثيات الماركر

size = حجم الماركر يمديك تحطه بالارقام مثل 1 2 3 براحتك

r,g,b = الالوان حقت الماركر ونفس الحالة براحتك حطها .. xD

وفي السطر 4

x,y,z = الاحداثيات اللي تبي الاعب يروح فيها بعد الدخول بالماركر بعد دقيقتان خخخ

.. :wink:

Link to comment
شنو وظايفهم

getElementType 
isPedInVehicle 
getPedOccupiedVehicle 

  
getElementType -- يحدد النوع مثل اذا كان بيد او لاعب او سيارة ... الخ 
isPedInVehicle -- يتاكد اذا كان الاعب او البيد بالسيارة 
getPedOccupiedVehicle -- يجيب سيارة الاعب او البيد 
  
Link to comment
createMarker 
getMarkerColor 
getMarkerCount 
getMarkerIcon 
getMarkerSize 
getMarkerTarget 
getMarkerType 
isElementWithinMarker 
setMarkerColor 
setMarkerIcon 
setMarkerSize 
setMarkerTarget 
setMarkerType 

خخخخخخخخخخخخخخ

كارثه وش جالس تسوي خخخخخخخخخخخخخخخخخ

عطنا كل وضايف الويكي بعد ههههههههههههههههههههههههه

اقول سويته له انا

Link to comment
setElementPosition مكتوب في الويكي عن

Do not use this function to spawn a ped/player

ي حبيبي يقول لك الويكي

اذا تبي تسوي سباون افهم كيف سباون

يعني اول ما يخش الاعب سباون للبداية كذا

لاكن الكود حقي setElementPosition

يغير احداثيات الاعب

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...