السلام عليكم و رحمة الله تعالى و بركاته
شباب عندي كود السيارة الخاصة اللي سويته بمساعدة منكم سابقا
ابي تعديل عليه
هو الحين اذا كتبت الكومند : /vehicle
تجي السيارة حقي ، لكن انا ابيها تكون مثل حق الفريروم / مثلا
vehicle 411 .. vehicle 522 .. vehicle "id"
مو كل مرة اذا ابي سيارة لازم اغير الايدي من السكربت
الكود :
addCommandHandler ( "vehicle",
function ( thePlayer )
if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "RPC" ) ) then
x, y, z = getElementPosition ( thePlayer )
theVehicle = createVehicle ( 411, x, y + 3, z )
end
end
)
addEventHandler ( "onVehicleStartEnter", root,
function ( thePlayer, theSeat )
if source == theVehicle then
if ( theSeat == 0 ) and ( getPlayerSerial ( thePlayer ) ~= "MY SERIAL HERE" ) then
cancelEvent ( )
outputChatBox ( "* ~][ هذه السيارة خاصة ][~", thePlayer, 255, 255, 0, true )
else
outputChatBox ( "* ~][ مرحبـآ بك سيدي ][~", thePlayer, 255, 0, 0, true )
setVehicleDamageProof(theVehicle, true)
end
end
end
)