Jump to content

طلب اكواد


Recommended Posts

ذذ

المهم عندي سؤال اانا الاكواد ما ارتبها عادي صح؟؟

ومثلن ابي اللوحه تفتح بزر لها كود؟؟

تفتح بزر؟

bindKey 
guiSetVisible 
showCursor 

مافي كود أسمه فتح النافذة بزر

هـ الأكواد أنت تبرمجها مافي شيء عطني كود فتح لوحة بزر في وظائف تساعدك بالشيء الي تبيه مثل الي حطيته لكـ فوق ^

Link to comment
  • Replies 60
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150)

setMarkerColor ( myMarker, 158, 0, 0, 215 )

GUIEditor = {

button = {},

window = {}

}

addEventHandler("onClientResourceStart", resourceRoot,

function()

GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false)

guiWindowSetSizable(GUIEditor.window[1], false)

guiSetVisible ( GUIEditor.window[1], false)

GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1])

GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1])

GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1])

GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1])

GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1])

GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1])

GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1])

guiSetVisible( GUIEditor.window[1],false )

end

)

addEventHandler ("onClientMarkerHit",myMarker,

function (element)

if (element) == localPlayer then

guiSetVisible (GUIEditor.window[1],true)

showCursor ( true )

end

end,false

)

addEventHandler ("onClientGUIClick",resourceRoot, function ( )

if ( source == GUIEditor.button[1] ) then

setWorldSpecialPropertyEnabled ( "aircars", true )

outputChatBox("تم تشغيل الطيران")

elseif ( source == GUIEditor.button[2]) then

triggerServerEvent ( "setarmor", localPlayer)

outputChatBox ( "تم اعطائك درع" )

elseif ( source == GUIEditor.button[3] ) then

triggerServerEvent ( "setahealth",localPlayer)

outputChatBox ( "تم اعطائك دم 200" )

elseif ( source == GUIEditor.button[4] ) then

setWorldSpecialPropertyEnabled ( "hovercars", false )

outputChatBox("تم أيقاف المشي فوق الماء")

elseif ( source == GUIEditor.button[5] ) then

setWorldSpecialPropertyEnabled ( "hovercars", true )

outputChatBox("تم تشغيل المشي على الماء")

elseif ( source == GUIEditor.button[6] ) then

setWorldSpecialPropertyEnabled ( "aircars", false )

outputChatBox("تم أيقاف الطيران")

elseif ( source == GUIEditor.button[7] ) then

guiSetVisible ( GUIEditor.window[1], false)

showCursor ( false )

end

end

)

bindKey("f1",'down', function ( )

guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1]))

showCursor ( guiGetVisible (GUIEditor.window[1]))

end )

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...