Jump to content

طلب تصحيح


yazan

Recommended Posts

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

aOpen_ = function ( plr_ ) 
    local plrAccount = getPlayerAccount ( plr_ ) 
    if plrAccount and not isGuestAccount ( plrAccount ) then 
        if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then 
            triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) 
        end 
    end 
end 

فقط ذذ and كان ناقص

Link to comment
aOpen_ = function ( plr_ ) 
    local plrAccount = getPlayerAccount ( plr_ ) 
    if plrAccount and not isGuestAccount ( plrAccount ) then 
        if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then 
            triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) 
        end 
    end 
end 

فقط ذذ and كان ناقص

لا صحيح الاند مافيةة شيء ذذ بس بيجية باد ارقمنت في البايند كي -_- لان الفنكشن تحتة ذذ

Link to comment
المشكله في بعض الاعضاء يطرحون

طلبات غير معقوله ما تنفهم

><" يبون درس لغه عربيه

ههههههههههه يب بس انا مو منهم المهم قصدي يطلع على الوحه 2 كود يلي عطوطني ياه يطلع بل شات شلون يطلع على لوحه 2

Link to comment
المشكله في بعض الاعضاء يطرحون

طلبات غير معقوله ما تنفهم

><" يبون درس لغه عربيه

ههههههههههه يب بس انا مو منهم المهم قصدي يطلع على الوحه 2 كود يلي عطوطني ياه يطلع بل شات شلون يطلع على لوحه 2

اخوي مشكورين بس الكلام يضهر بل شات شلون اخليه يضهر بلوحه رقم 2 وتختفي
guiSetText 
guiSetVisible 

يعني شيل الي يطلع بالشات وخل بداله يغير الكلام الي في اللبل او اي شيء جوي تستخدم

guiSetText 

اضغط عليه8 يجيك له مثال بالويكي

Link to comment

وش غلط ؟

و شلون اضهر لوحه

aOpen_ = function ( plr_ ) 
    local plrAccount = getPlayerAccount ( plr_ ) 
    if not isGuestAccount ( plrAccount ) then 
        if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then 
            triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) 
        end 
    end 
end 
  
addEvent ( "onSendDataToAll", true ) 
addEventHandler ( "onSendDataToAll", root, 
    function ( Data ) 
        if tostring ( Data ) then 
            guiSetText ( "GUIEditor_Window[2],Label,["..getPlayerName(source).."] : "..Data, root, 225, 0, 0, true ) 
        end 
    end 
) 
  
for _, v in ipairs (getElementsByType ( "player" ) ) do 
    bindKey  ( v, "f12", "down", aOpen_ ) 
end 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        bindKey  ( source, "F12", "down", aOpen_ ) 
    end 
) 

:oops:

Link to comment

كلنت

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[2] = guiCreateWindow(190,268,395,153,"By yaZan",false) 
guiSetVisible(GUIEditor_Window[2],false) 
guiSetAlpha(GUIEditor_Window[2],1) 
GUIEditor_Image[2] = guiCreateStaticImage(9,93,377,51,"images/mtalogo.png",false,GUIEditor_Window[2]) 
Label = guiCreateLabel(67,29,306,37,"",false,GUIEditor_Window[2]) 
  
GUIEditor_Window[1] = guiCreateWindow(190,53,392,187,"By yaZan",false) 
guiSetVisible(GUIEditor_Window[1],false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Edit[1] = guiCreateEdit(66,76,280,49,"",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(67,29,306,37,"ارسل رسال بل كتابه في صندوق الحوار و اضغط ارسال",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(97,141,208,36,"ارسل للكل",false,GUIEditor_Window[1]) 
  
addEvent ( "onOpenDataWindow", true ) 
addEventHandler ( "onOpenDataWindow", root, 
    function ( ) 
        guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
        showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) 
        guiSetInputEnabled ( guiGetVisible( GUIEditor_Window[1] ) ) 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == GUIEditor_Button[1] then 
            local Data = guiGetText ( GUIEditor_Edit[1] )       
            if Data == "" then return end 
            triggerServerEvent ( "onSendDataToAll", localPlayer, Data ) 
        end 
    end 
) 

سيرفر

aOpen_ = function ( plr_ ) 
    local plrAccount = getPlayerAccount ( plr_ ) 
    if not isGuestAccount ( plrAccount ) then 
        if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then 
            triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) 
        end 
    end 
end 
  
addEvent ( "onSendDataToAll", true ) 
addEventHandler ( "onSendDataToAll", root, 
    function ( Data ) 
        if tostring ( Data ) then 
            guiSetText ( "Label,["..getPlayerName(source).."] : "..Data, root, 225, 0, 0, true ) 
        end 
    end 
) 
  
for _, v in ipairs (getElementsByType ( "player" ) ) do 
    bindKey  ( v, "f12", "down", aOpen_ ) 
end 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        bindKey  ( source, "f12", "down", aOpen_ ) 
    end 
) 

Link to comment
كلنت
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[2] = guiCreateWindow(190,268,395,153,"By yaZan",false) 
guiSetVisible(GUIEditor_Window[2],false) 
guiSetAlpha(GUIEditor_Window[2],1) 
GUIEditor_Image[2] = guiCreateStaticImage(9,93,377,51,"images/mtalogo.png",false,GUIEditor_Window[2]) 
Label = guiCreateLabel(67,29,306,37,"",false,GUIEditor_Window[2]) 
  
GUIEditor_Window[1] = guiCreateWindow(190,53,392,187,"By yaZan",false) 
guiSetVisible(GUIEditor_Window[1],false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Edit[1] = guiCreateEdit(66,76,280,49,"",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(67,29,306,37,"ارسل رسال بل كتابه في صندوق الحوار و اضغط ارسال",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(97,141,208,36,"ارسل للكل",false,GUIEditor_Window[1]) 
  
addEvent ( "onOpenDataWindow", true ) 
addEventHandler ( "onOpenDataWindow", root, 
    function ( ) 
        guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
        showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) 
        guiSetInputEnabled ( guiGetVisible( GUIEditor_Window[1] ) ) 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == GUIEditor_Button[1] then 
            local Data = guiGetText ( GUIEditor_Edit[1] )       
            if Data == "" then return end 
            triggerServerEvent ( "onSendDataToAll", localPlayer, Data ) 
        end 
    end 
) 

سيرفر

aOpen_ = function ( plr_ ) 
    local plrAccount = getPlayerAccount ( plr_ ) 
    if not isGuestAccount ( plrAccount ) then 
        if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then 
            triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) 
        end 
    end 
end 
  
addEvent ( "onSendDataToAll", true ) 
addEventHandler ( "onSendDataToAll", root, 
    function ( Data ) 
        if tostring ( Data ) then 
            guiSetText ( "Label,["..getPlayerName(source).."] : "..Data, root, 225, 0, 0, true ) 
        end 
    end 
) 
  
for _, v in ipairs (getElementsByType ( "player" ) ) do 
    bindKey  ( v, "f12", "down", aOpen_ ) 
end 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        bindKey  ( source, "f12", "down", aOpen_ ) 
    end 
) 

وينة اللبل اللي تبية يصير الكلام ذذ

Link to comment
-- Client Side 
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[2] = guiCreateWindow(190,268,395,153,"By yaZan",false) 
guiSetVisible(GUIEditor_Window[2],false) 
guiSetAlpha(GUIEditor_Window[2],1) 
GUIEditor_Image[2] = guiCreateStaticImage(9,93,377,51,"images/mtalogo.png",false,GUIEditor_Window[2]) 
Label = guiCreateLabel(67,29,306,37,"",false,GUIEditor_Window[2]) 
  
GUIEditor_Window[1] = guiCreateWindow(190,53,392,187,"By yaZan",false) 
guiSetVisible(GUIEditor_Window[1],false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Edit[1] = guiCreateEdit(66,76,280,49,"",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(67,29,306,37,"ارسل رسال بل كتابه في صندوق الحوار و اضغط ارسال",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(97,141,208,36,"ارسل للكل",false,GUIEditor_Window[1]) 
  
addEvent ( "onOpenDataWindow", true ) 
addEventHandler ( "onOpenDataWindow", root, 
    function ( ) 
        guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) 
        showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) 
        guiSetInputEnabled ( guiGetVisible( GUIEditor_Window[1] ) ) 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == GUIEditor_Button[1] then 
            local Data = guiGetText ( GUIEditor_Edit[1] )       
            if Data == "" then return end 
            triggerServerEvent ( "onSendDataToAll", localPlayer, Data ) 
        end 
    end 
) 
  
addEvent ( "onSendDataToPlayers", true ) 
addEventHandler ( "onSendDataToPlayers", root, 
    function ( name, data ) 
        guiSetText ( Label, "["..name.."] : "..data ) 
    end 
) 

-- Server Side 
aOpen_ = function ( plr_ ) 
    local plrAccount = getPlayerAccount ( plr_ ) 
    if not isGuestAccount ( plrAccount ) then 
        if isObjectInACLGroup ("user."..getAccountName ( plrAccount ), aclGetGroup ( "Admin" ) ) then 
            triggerClientEvent ( plr_, "onOpenDataWindow", plr_ ) 
        end 
    end 
end 
  
addEvent ( "onSendDataToAll", true ) 
addEventHandler ( "onSendDataToAll", root, 
    function ( Data ) 
        if tostring ( Data ) then 
            triggerClientEvent ( root, "onSendDataToPlayers", root, getPlayerName(source), Data ) 
        end 
    end 
) 
  
for _, v in ipairs (getElementsByType ( "player" ) ) do 
    bindKey  ( v, "f12", "down", aOpen_ ) 
end 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        bindKey  ( source, "f12", "down", aOpen_ ) 
    end 
) 

Link to comment

الوده الكود كامل ما عرف يعمل وقت و يختفي يبدل الكود ذا

  
addEvent ( "onSendDataToPlayers", true ) 
addEventHandler ( "onSendDataToPlayers", root, 
    function ( name, data ) 
        guiSetText ( Label, "["..name.."] : "..data ) 
guiSetVisible(GUIEditor_Window[2],true) 
setTimer ( function()    
guiSetVisible(GUIEditor_Window[2],false) 
end, 1000, 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...