addEventHandler('onMarkerHit',marker,
function ( hit )
if hit and getElementType ( hit ) == 'player' then
if not isPedInVehicle ( hit ) then
setElementPosition(hit,641.70319,-2389.20728,40.99545)
end
end
end
)
هذا ينقل الاعب فقط تبي تغير الانترور او العالم الوهمي ضيف الوظايف تحت الكود
local aAccount = 'Account Name'
local aGroup = 'Group Name'
local aTimeDays = 5
function aMilliSecondToDays ( aDays )
return aDays*24*60*60*1000
end
aTimerRemoveAccount = setTimer (
function ( )
if aclGetGroup ( aGroup ) == false then return outputDebugString ( 'The ACL does not exists!',1 ) end
if not isObjectInACLGroup ( 'user.'..aAccount, aclGetGroup ( aGroup ) ) then return outputDebugString ( 'The account is not in the acl group!!',1 ) end
aclGroupRemoveObject ( aclGetGroup( aGroup ),'user.'..aAccount )
end,aMilliSecondToDays ( aTimeDays ),1
)
هذا مثال بسيط والوظيفة اللي فوق هذي تساعدك تختصر الميلي سيكوند الى ايام يعني حط عدد الايام بدل رقم الـ 5 ومثال عالسريع هذا فقط
وبالنسبة للجروب تحطة اسم الاسل فية
والاكاونت اسم الاكاونت حق الاعب اللي تبي تسحب منة الرتبة
No problem any time but make sure to make a trigger to the server side and make the vehicle server side so it will be visible to all and destroy it when the player quit.
Use triggerServerEvent and use table :
local vehicle = { }
vehicle [ player ] = createVehicle ( .... )
-- P.S : player is not defined here it's just example .
للدخول الى عالم وهمي وانترور
setElementPosition
setElementDimension
setElementInterior
وحط الماركر اذا دخلت العالم الوهمي والانترور فيهم بعد و اذا بغيت ترجع حط الانترور والعالم الوهمي صفر
There is nothing MTA team can do about it, it's not their problem that the server has no protection system for such things search for it and find solutions to them in the Forum and you should check your subject title somehow they do not work for you all the time if they are here and they can help you they will not ignore you if they can do anything to help you about it they are doing their best to make this game alive.