Jump to content

طلب


Recommended Posts

لو سمحتم ابي ابي كودين مع نثال على كل كود

الايفنت لما اللاعب يكتب كلمة بالشات ينقلة لمكان مثلا ديربي

الثاني لما احد يوقف على ماركر ينقله داخل مبنى او ينقلة لاي مكان

 

شكراا

Link to comment
4 minutes ago, A7MEDENO said:

لو سمحتم ابي ابي كودين مع نثال على كل كود

الايفنت لما اللاعب يكتب كلمة بالشات ينقلة لمكان مثلا ديربي

الثاني لما احد يوقف على ماركر ينقله داخل مبنى او ينقلة لاي مكان

 

شكراا

"onPlayerChat"
setElementPosition

-- ex

function Chat ( message )

if message == "نقل" then
setElementPosition ( source ... )
end

end
addEventHandler ("onPlayerChat" ,root, Chat )

------------------------------------

"onMarkerHit" or "onClientMarkerHit"
setElementPosition

-- ex

marker = createMarker ( ... )

function Hit ( Player )

setElementPosition ( Player ... )

end
addEventHandler ("onClientMarkerHit" ,root, Hit )
or
addEventHandler ("onMarkerHit" ,root, Hit )

 

Link to comment
59 minutes ago, Killer Project said:

"onPlayerChat"
setElementPosition

-- ex

function Chat ( message )

if message == "نقل" then
setElementPosition ( source ... )
end

end
addEventHandler ("onPlayerChat" ,root, Chat )

------------------------------------

"onMarkerHit" or "onClientMarkerHit"
setElementPosition

-- ex

marker = createMarker ( ... )

function Hit ( Player )

setElementPosition ( Player ... )

end
addEventHandler ("onClientMarkerHit" ,root, Hit )
or
addEventHandler ("onMarkerHit" ,root, Hit )

 

شكرا لك

Link to comment
Marker = createMarker(-2766.55078,375.58664,7.33468,"arrow",2,255,255,0,255) 
addEventHandler('onMarkerHit',Marker,function(player)
if getElementType(player) == 'player' and not isPedInVehicle(player) and getElementData (rungate,"satus",true)  then
setElementPosition(player,x,y,z )
setElementInterior(player,aInteriorNumber)
end
end
)

 

Link to comment

@Default

الكود حقي و هذه كانت اسم الماركر و مفروض احط عليه داتا 

بس انا نسيت احذفه

Marker = createMarker(-2766.55078,375.58664,7.33468,"arrow",2,255,255,0,255) 
addEventHandler('onMarkerHit',Marker,function(player)
if getElementType(player) == 'player' and not isPedInVehicle(player) then
setElementPosition(player,x,y,z )
setElementInterior(player,aInteriorNumber)
end
end
)

@A7MEDENO

تفضل الكود

 

Edited by MR.NaiF-MTA
  • Like 1
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...