Jump to content

كود --


Recommended Posts

Posted

انت كفووو

اخر حاجة

كود يخلي الوحة تفتح للي محطوت سيريالو

و

انا معي لوحة فيها 4 ايدت

عاوز الي يكتب في ال 4 ايدت دول

و يدوس غلي بطن اسمو ارسال

المود ينشئ ملف توب باد اي شئ مثل هذا

و يحط فيها المعلومات الي اتكتبت في ال 4 ايدت

كلمة شكرا لا تكفي

تعبتك معي

560x95_FFFFFF_FF9900_000000_000000.png
  • Replies 71
  • Created
  • Last Reply

Top Posters In This Topic

Posted

عندي فكره لك ,

تعمل 3 ايدات واذا يضعط علي بطن

يجي الكلام في ال3 الرو الفي الكلوم

الفي قريد لست في اللوحة التانيه ,

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

بالنسبه , لفكشنات الفوق القلتلك عليها

addEventHandler + "onClientGUIClick" 
if ( guiGetText ( editname ) and guiGetText ( edit ) and guiGetText ( edit ) ~= '' ) then 
guiGridListAddRow 
guiGridListSetItemText + ,guiGetText 
guiGridListSetItemText + ,guiGetText 
guiGridListSetItemText + ,guiGetText 
triggerServerEvent 
executeSQLQuery -- لحفظ الكلام الفي القريد لست لين يطلع ويخش 
triggerClientEvent 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

الكود الاول في خطأ ؟

Serial = { 
[" "] = true, 
[" "] = true, 
} 
  
local Key = "o" 
  
bindKey(Key,"down",function ( ) 
        local PlayerSerial = getPlayerSerial(localPlayer) 
        if ( Serial[PlayerSerial] ) then   
            guiSetVisible( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) 
            showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
     else 
            outputChatBox ( "لا تملك التصريح لـفـتح نـظـام الإسـتـئـجـار", math.random( 255 ), math.random( 255 ), math.random( 255 ), true) 
        end 
end ) 

ثواني بجهز التاني

560x95_FFFFFF_FF9900_000000_000000.png
Posted

getPlayerSerial

Note: The client side version of getPlayerSerial has been deprecated as it can return the wrong value for some players, and is potentially insecure. The following article assumes that the function is serverside only.

p_234mkkd1.gif
Posted

Serial = { 
["Serial"] = true, 
} 
bindKey ( "o", "down", function ( ) 
if Serial[getPlayerSerial(localPlayer)] then 
guiSetVisible (GUIEditor.window[1],not guiGetVisible (GUIEditor.window[1])) 
showCursor (guiGetVisible (GUIEditor.window[1])) 
else 
outputChatBox ( "لا تملك التصريح لـفـتح نـظـام الإسـتـئـجـار", math.random( 255 ), math.random( 255 ), math.random( 255 ), true) 
end 
end) 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

الوحة مش بتفتح

local screenW, screenH = guiGetScreenSize() 
GUIEditor.window[2] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) 
guiWindowSetSizable(GUIEditor.window[2], false) 
guiSetProperty(GUIEditor.window[2], "CaptionColour", "FFF1BE0D") 
      
GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[2]) 
GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "", false, GUIEditor.window[2]) 
GUIEditor.label[4] = guiCreateLabel(14, 39, 72, 19, "  -< التاج >-  ", false, GUIEditor.window[2]) 
GUIEditor.label[5] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[2]) 
GUIEditor.button[7] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") 
GUIEditor.button[8] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[9] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[10] = guiCreateButton(10+95, 140, 95, 17, "-< حذف  التاج >-", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFFFFFFF") 
GUIEditor.label[6] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[2]) 
guiSetFont(GUIEditor.label[6], "sa-gothic") 
guiLabelSetColor(GUIEditor.label[6], 239, 200, 21) 
GUIEditor.label[7] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[2]) 
guiLabelSetColor(GUIEditor.label[7], 254, 254, 254) 
GUIEditor.label[8] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[2]) 
guiLabelSetColor(GUIEditor.label[8], 254, 5, 5)   
 guiSetVisible ( GUIEditor.window[2],false )   

addEventHandler("onClientGUIClick",root,function() 
 if  guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == true then 
guiSetVisible( GUIEditor.window[2], true) -- لو حددت ع التشيك بوكس يفتح اللوحه 
guiSetVisible( GUIEditor.window[1], false) 
end 
 if(source == GUIEditor.button[8]) then 
guiSetVisible( GUIEditor.window[2], false) -- لو شيلت التحديد يقفل اللوحه 
guiSetVisible( GUIEditor.window[1], true) 
end 
 end 
 ) 

الشيك بوكس الي لما احدد عليه تفتح الوحة

        GUIEditor.checkbox[5] = guiCreateCheckBox(10, 79, 136, 15, "تاج في الشات             ", false, false, GUIEditor.gridlist[2]) 
        guiSetProperty(GUIEditor.checkbox[5], "NormalTextColour", "FF5C60FE") 

560x95_FFFFFF_FF9900_000000_000000.png
Posted

GUIEditor = {checkbox = {},label = {},edit = {},button = {},window = {},} 
  
local screenW, screenH = guiGetScreenSize() 
GUIEditor.window[2] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) 
guiWindowSetSizable(GUIEditor.window[2], false) 
guiSetProperty(GUIEditor.window[2], "CaptionColour", "FFF1BE0D") 
  
GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[2]) 
GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "", false, GUIEditor.window[2]) 
GUIEditor.label[4] = guiCreateLabel(14, 39, 72, 19, "  -< التاج >-  ", false, GUIEditor.window[2]) 
GUIEditor.label[5] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[2]) 
GUIEditor.button[7] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") 
GUIEditor.button[8] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[9] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[10] = guiCreateButton(10+95, 140, 95, 17, "-< حذف  التاج >-", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFFFFFFF") 
GUIEditor.label[6] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[2]) 
guiSetFont(GUIEditor.label[6], "sa-gothic") 
guiLabelSetColor(GUIEditor.label[6], 239, 200, 21) 
GUIEditor.label[7] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[2]) 
guiLabelSetColor(GUIEditor.label[7], 254, 254, 254) 
GUIEditor.label[8] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[2]) 
guiLabelSetColor(GUIEditor.label[8], 254, 5, 5)   
guiSetVisible( GUIEditor.window[2], false) 
--------- 
GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") 
GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[1]) 
GUIEditor.checkbox[5] = guiCreateCheckBox(10, 79, 136, 15, "تاج في الشات             ", false, false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.checkbox[5], "NormalTextColour", "FF5C60FE") 
--------- 
addEventHandler("onClientGUIClick",root,function() 
if  guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == true then 
guiSetVisible( GUIEditor.window[2], true) 
guiSetVisible( GUIEditor.window[1], false) 
end 
if(source == GUIEditor.button[8]) then 
guiSetVisible( GUIEditor.window[2], false) 
guiSetVisible( GUIEditor.window[1], true) 
guiCheckBoxSetSelected(GUIEditor.checkbox[5],false) 
end 
end) 

لا اله الا انت سبحانك اني كنت من الظالمين

TehLMGN.png?1

My Group : https://www.facebook.com/groups/992678147519191/

Posted

SaedAmer ^

الكود الطلبتو مني في الخاص ^

addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == Close ) then 
            guiSetVisible(wnd,false) 
            showCursor(false) 
        elseif ( source == Buton ) then 
            if ( guiGetText ( editname ) and guiGetText ( editname ) and guiGetText ( editrname ) ~= '' ) then 
                local row = guiGridListAddRow ( GRID) 
                guiGridListSetItemText (GRID,row,Column1,guiGetText(editmail),false,false) 
               guiGridListSetItemText (GRID,row,Column2,guiGetText(editmail),false,false) 
               guiGridListSetItemText (GRID,row,Column3,guiGetText(dito),false,false) 
              end 
        end 
    end 
) 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

addEventHandler("onPlayerChat",root,function (msg)  
local tag = getElementData(source,"tag") or 'Guest' 
outputChatBox(tag ..' '.. getPlayerName(source) .. ' : '.. msg,root, r, g, b, true) 
return cancelEvent() 
end) 

اخي الكود ده حق التاج الي في الشات مثال

              *[هنا الكلام الي يتحط في الادت -- يظهر هنا] SaedAmer:            

انا عاوز كود يغير لون الكلام الي في الشات مثال

             *[saed] SaedAemer:   هنا لون الكلام يتغير              

560x95_FFFFFF_FF9900_000000_000000.png
Posted

ايه الخطأ هنا

الكود شغال بس لا يرسل الكلام الي الكريد لست

addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == GUIEditor.button[3] ) then 
            guiSetVisible(GUIEditor.window[1],false) 
            showCursor(false) 
        elseif ( source ==  GUIEditor.button[1] ) then 
            if ( guiGetText ( GUIEditor.edit[1] ) and guiGetText ( GUIEditor.edit[2] ) and guiGetText ( GUIEditor.edit[3] ) ~= '' ) then 
                local row = guiGridListAddRow (GUIEditor.gridlist[1]) 
               guiGridListSetItemText (GUIEditor.gridlist[1],guiGetText(GUIEditor.edit[1]),false,false) 
               guiGridListSetItemText (GUIEditor.gridlist[1],guiGetText(GUIEditor.edit[2]),false,false) 
               guiGridListSetItemText (GUIEditor.gridlist[1],guiGetText(GUIEditor.edit[3]),false,false) 
              end 
        end 
    end 
) 

560x95_FFFFFF_FF9900_000000_000000.png
Posted

اطرح اكواد الكلوم تبعك لان في شي لازم تتعمل ^

ال3 كلومات الفي فريد لست

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

سوي

اذا عندك ال3 كلوم كذا

guiGridListAddColumn(GRID, "Name", 0.3) 
guiGridListAddColumn(GRID, "MailName", 0.3) 
guiGridListAddColumn(GRID, "Card", 0.3)  

سوي قبلهم كذا

Column1 = guiGridListAddColumn(GRID, "Name", 0.3) 
        Column2 = guiGridListAddColumn(GRID, "MailName", 0.3) 
        Column3 = guiGridListAddColumn(GRID, "Card", 0.3)  

وراح تشتغل معك ^

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

اشتغل

طيب لو عاوز اضيف طريقة الدفع

------

عاوز لما اضغط علي المعلومات تظهر في ال 4 ايدت باطريقة الدفع **

560x95_FFFFFF_FF9900_000000_000000.png
Posted

GuiComboBoxGetItemText

Example

local item = guiComboBoxGetSelected(comboBox) 
local text = guiComboBoxGetItemText(comboBox, item) 
  
outputChatBox("You have selected: " .. text) 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

addEventHandler("onPlayerChat",root,function (msg)  
local tag = getElementData(source,"tag") or 'Guest' 
outputChatBox(tag ..' '.. getPlayerName(source) .. ' : '.. msg,root, r, g, b, true) 
return cancelEvent() 
end) 

اخي الكود ده حق التاج الي في الشات مثال

              *[هنا الكلام الي يتحط في الادت -- يظهر هنا] SaedAmer:            

انا عاوز كود يغير لون الكلام الي في الشات مثال

             *[saed] SaedAemer:   هنا لون الكلام يتغير              

560x95_FFFFFF_FF9900_000000_000000.png
Posted

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

-- Server Side

addCommandHandler ( 'هنا الامر الي تبي تكتبه بأف 8', 
    function ( thePlayer ) 
        accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ('user.'..accName, aclGetGroup ( "هنا اسم قروب الاسل الي تبي تعطيه الصلاحيه" ) ) then 
            triggerClientEvent( thePlayer, 'open', thePlayer )  
        else 
            outputChatBox ( "* You Don't Have Permissions !!", thePlayer, 255, 0, 0, true ) 
        end 
    end 
) 

-- Client Side

  
    addEvent ( 'open', true ) 
addEventHandler ( 'open', root, 
    function ( ) 
        if guiGetVisible ( اسم لوحتك) then 
            guiSetVisible ( اسم لوحتك, false ) 
            showCursor ( false ) 
            guiSetInputEnabled ( false ) 
        else 
            guiSetVisible ( اسم لوحتك, true ) 
            showCursor ( true ) 
            guiSetInputEnabled ( true ) 
        end 
    end 
) 

+ وضح طلبك السابق على شان نقدر نساعدك

I'am Back MTA  sa World !

p_513w5ap31.jpg

Spoiler

p_581zud1f1.png

 

 

 

 

Posted

شوف اخي

لما العب يكتب باليدت اي كلام مثلا

*[console]

يغير تاجو بالشات للي كاتبو باليدت

بس لا يتكرر التاج مع التاج الاصلي

و الاديت التاني يغير لو الكلام الي يكتبه مثلا

الاساسي *[Console]xSaedAmer: السلام عليكم

بعد ما يضيف الون

*[Console]xSaedAmer: السلام عليكم

و كل الي فوق مرتبطين ب 2 بوطن واحد يفعل التاج و الثاني يحذفه

كود ال 2 بطن

GUIEditor.button[9] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[10] = guiCreateButton(10+95, 140, 95, 17, "-< حذف  التاج >-", false, GUIEditor.window[2]) 
guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFFFFFFF") 

560x95_FFFFFF_FF9900_000000_000000.png
Posted

GUIEditor = { 
button = {}, 
window = {}, 
label = {}, 
edit = {}} 
local screenW, screenH = guiGetScreenSize() 
GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") 
          
GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "#AA0000Admin", false, GUIEditor.window[1]) 
GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "#00FF00", false, GUIEditor.window[1]) 
GUIEditor.label[1] = guiCreateLabel(14, 39, 72, 19, "  -< التاج >-  ", false, GUIEditor.window[1]) 
GUIEditor.label[2] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[1]) 
GUIEditor.button[1] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
GUIEditor.button[2] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[3] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") 
GUIEditor.button[4] = guiCreateButton(10+95, 140, 95, 17, "-< حذف  التاج >-", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFFFFFF") 
GUIEditor.label[3] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.label[3], "sa-gothic") 
guiLabelSetColor(GUIEditor.label[3], 239, 200, 21) 
GUIEditor.label[4] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[1]) 
guiLabelSetColor(GUIEditor.label[4], 254, 254, 254) 
GUIEditor.label[5] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[1]) 
guiLabelSetColor(GUIEditor.label[5], 254, 5, 5)     
----- 
addEventHandler("onClientGUIClick",root,function() 
if(source == GUIEditor.button[3]) then 
if guiGetText (GUIEditor.edit[1]) ~= '' then 
setElementData (localPlayer,'tag',guiGetText (GUIEditor.edit[1])) 
setElementData (localPlayer,'colour',guiGetText (GUIEditor.edit[2])) 
end 
elseif(source == GUIEditor.button[4]) then 
setElementData (localPlayer,'tag',false) 
setElementData (localPlayer,'colour',false) 
end 
end) 

addEventHandler("onPlayerChat",root,function (msg,Colour) 
local tag = getElementData(source,"tag") or '#FF0000[#005588Player#FF0000]'   
local colour = getElementData(source,"colour") or '#FFFFFF'   
outputChatBox(tag ..' '.. getPlayerName(source) .. ''..colour..' : '.. msg,root, r, g, b, true) 
return cancelEvent() 
end) 

لا اله الا انت سبحانك اني كنت من الظالمين

TehLMGN.png?1

My Group : https://www.facebook.com/groups/992678147519191/

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