السلام عليكم ورحمة الله ..
انا مسوي لوحة تفتح ب الاسل
هي شغاله و تمام , لاكن اذ سويت من نفس تصميم اللوحه لوحه ثانيه واضفت خاصيه جديده الاثنين م يشتغلوا و م عرفت لها اي حل
-- Server
addEvent( "Open:Window",true )
addEventHandler( "Open:Window",root,
function ( )
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Z12")) then
triggerClientEvent( source,"Open2",source )
end
end
)
Vehicle = { }
addEvent ( "Take:Vehicle", true)
addEventHandler( "Take:Vehicle",root,
function ( )
if Vehicle[source] and isElement ( Vehicle[source] ) then return
outputChatBox ("* لأ يمكنك تنزيل مركبة أخري في وجود مركبة اولأ", source,255,0,0,true ) end
x,y,z = getElementPosition ( source )
Vehicle[source] = createVehicle ( 585, x, y, z )
warpPedIntoVehicle ( source, Vehicle[source] )
outputChatBox( "* Done you give Car.",source,0,255,0,true)
end
)
addEvent ( "Destroy", true )
addEventHandler ( "Destroy", root,
function ( )
if ( isElement( Vehicle[source] ) ) then
destroyElement( Vehicle[source] )
outputChatBox( "* Done Destroy Car",source,0,255,0,true)
else
outputChatBox ("* ليس لديك مركبة", source,255,0,0,true )
end
end
)
addEvent ( "Fix", true )
addEventHandler ( "Fix", root,
function ( )
if ( isElement( Vehicle[source] ) ) then
fixVehicle ( Vehicle[source] )
outputChatBox( "* Done Fix car",source,0,255,0,true)
else
outputChatBox ("* ليس لديك مركبة", source,255,0,0,true )
end
end
)
addEvent ( "addNitro", true )
addEventHandler ( "addNitro", root,
function ( )
if ( isElement( Vehicle[source] ) ) then
addVehicleUpgrade ( Vehicle[source], 1010 )
outputChatBox( "* تم نيترو",source,0,255,0,true)
else
outputChatBox ("* ليس لديك مركبة", source,255,0,0,true )
end
end
)
الي يعرف يساعدني :]
وشكرا ..