Jump to content

شويه طلبات #


Adham

Recommended Posts

سلام عليكم ابي كودين

اول كود

انا عامل button اسمه

Sleep عاوز اليضعط عليه ينام

واليضعط عليه تاني يصحي

اسم ال button

GUIEditor.button[3]

--------

الطلب التاني

انا عامل buutton اسمه

Set عاوز اليضعط عليه

يجلس و اليضعط عليه تاني يقف .

-----------

الطلب التات انا عامل button اسمو

Go AFK

عاوزا ليضعط غليه يروح افك.

Link to comment
معلش ممكن الكودات جاهزه "؟

قلت لك الافضل تحاول تسويه و احنا بنساعدك ,

لو غلط في شي انا و الكل هنا بنساعدك ,

+ ترا والله بسيط ,

كله حدث يوم يضغط الزر ,

يسوي ترقير و يعطية حركة بس !

Link to comment
لا انا عاوز اعمله

علي button

وتعطيني حتا اكتب فيها اسم الbuton

الرجال ما قصر معك ,

اعطاك اهم شي مطلوب ,

يبيك انت تسويه بنفسك ,

مو كل يوم تطلب ,

انت الى راح تستفيد راح تتعلم اكثر و تعتمد على نفسك ,

انت حوله من كلمه في اف8 الى زر !

Link to comment

طيب

ايش الخطا كدا؟

addEventHandler("onClientGUIClick",resourceRoot, function ( ) 
if source == GUIEditor.button[3] then 
setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') 
end) 
if source == GUIEditor.button[3] then 
setPedAnimation(localPlayer , nil) 
end) 

Link to comment
طيب

ايش الخطا كدا؟

addEventHandler("onClientGUIClick",resourceRoot, function ( ) 
if source == GUIEditor.button[3] then 
setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') 
end) 
if source == GUIEditor.button[3] then 
setPedAnimation(localPlayer , nil) 
end) 

اسم الزرر متشابهين نفس بعضهم

Link to comment
طيب

ايش الخطا كدا؟

addEventHandler("onClientGUIClick",resourceRoot, function ( ) 
if source == GUIEditor.button[3] then 
setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') 
end) 
if source == GUIEditor.button[3] then 
setPedAnimation(localPlayer , nil) 
end) 

addEventHandler("onClientGUIClick",resourceRoot, function ( ) 
if source == GUIEditor.button[3] then 
setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') 
elseif source == GUIEditor.button[3] then 
setPedAnimation(localPlayer , nil) 
end 
end) 

+ الاعب بس راح يشوف نفسه نايم

اما عند الاعبين الثانين صاحي !

Link to comment
مشكور ما قصرت ..

بس طلب تاني ابي كود زي انت ما عطني

Set عاوز اليضعط عليه

انا عامل مثلن button اسمه

Set

اليضعط عليه يجلس

غير اسم الحركة بس ,

addEventHandler("onClientGUIClick",resourceRoot, function ( ) 
if source == GUIEditor.button[3] then 
setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') 
elseif source == GUIEditor.button[4] then 
setPedAnimation(localPlayer , nil) 
elseif source == GUIEditor.button[5] then 
setPedAnimation(localPlayer,"CRIB", "PED_Console_Loop") 
end 
end) 

اظن ذي الحركة الى تبيها

Link to comment
addEventHandler("onClientGUIClick",resourceRoot, function ( ) 
if source == GUIEditor.button[9] then 
setPedAnimation ( localPlayer ,'CRACK', 'BD_Fire1') 
elseif source == GUIEditor.button[5] then 
setPedAnimation(localPlayer , nil) 
elseif source == GUIEditor.button[5] then 
setPedAnimation(localPlayer,"CRIB", "BD_Fire1") 
end 
end) 

Link to comment
addEventHandler("onClientGUIClick",resourceRoot, function ( ) 
if source == GUIEditor.button[9] then 
setPedAnimation ( localPlayer ,'CRACK', 'BD_Fire1') 
elseif source == GUIEditor.button[5] then 
setPedAnimation(localPlayer , nil) 
elseif source == GUIEditor.button[5] then 
setPedAnimation(localPlayer,"CRIB", "BD_Fire1") 
end 
end) 

حاط نفس حركة النوم انت

+ ما تقول تبيه يجلس !

اعطتيك فوق حطه و خلااص

Link to comment

ذا اللى تقصده ؟

كلنت

local screenW, screenH = guiGetScreenSize() 
window = guiCreateWindow((screenW - 174) / 2, (screenH - 80) / 2, 174, 80, "", false) 
guiWindowSetSizable(window, false) 
guiSetAlpha(window, 1.00) 
button = guiCreateButton(9, 26, 155, 44, "AFK", false, window) 
  
addEventHandler("onClientGUIClick",root, function() 
if (source == button )then 
triggerServerEvent("afk",localPlayer) 
end 
end) 

سيرفر

addEvent("afk",true) 
addEventHandler("afk",root,function () 
afk = not afk 
setPedAnimation (source,'BEACH', 'ParkSit_M_loop') 
setElementFrozen (source, true ) 
if afk == false then 
setPedAnimation (source, nil) 
setElementFrozen (source, false ) 
end 
end) 
Link to comment

بالنسبه للأفك

الولد قصدهـ كذا

function AFK (    ) 
        if ( source == اسم الزر ) then 
        setElementInterior ( localPlayer, 0, x, y, z  ) -- بالاحداثيات فالمكان الي يعجبك داخل الانترو x, y, z بدل 0 بالانترو الي تبيه ينتقل له وبدل 
        setElementFrozen ( localPlayer, true ) 
        outputChatBox ( "* تم نقلكـ لعالم الافك", 255, 255, 255, true ) 
    else 
        setElementInterior ( localPlayer, 0, x, y, z ) --بالاحداثيات الي تبيه يرجع لها للعالم الحقيقي x, y, z بدل 
        setElementFrozen ( localPlayer, false ) 
        outputChatBox ( "* تم الرجوع للعالم الحقيقي", 255, 255, 255, true ) 
    end 
end 
addEventHandler ( "onClientGUIClick", getRootElement (    ), AFK ) 
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...