سؤال خارج الموضوع شوي : انت من اليمن .؟
==
تصحيح الكود :
addEvent( "Open:Window",true )
addEventHandler( "Open:Window",root,
function ( )
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Zombie-professional-1")) 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 ( 500, 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
)