Jump to content

طلب بسيط


saef

Recommended Posts

السلامممم عليكم ورحة الله و بركاتو

اليوم ابي تساعدون لاهنت اذا تقدرون

اول: انا سيوت لوحه

فيه ادت بوكس اثنين الاول ينحط في سريال العب

و الثاني: تاحج العب

buttonوفيه تحته زرين

واحد ي ركب التاج لي العب

و الثاني يحذفه

ساعدوني تكفونء

Link to comment
"onClientGUIClick" 
setElementData 
getElementData 
getPlayerFromSerial 
triggerServerEvent 
"onPlayerChat 
  
 

سفاح شوف

الكلنت

  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(369, 181, 507, 463, "x[لـــوحـــة تـــآجــآت خـــآصــه]x", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.edit[1] = guiCreateEdit(110, 63, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(110, 116, 319, 31, "", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(44, 67, 95, 33, "PlayerTag", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 35, 243, 7) 
        GUIEditor.label[2] = guiCreateLabel(48, 116, 95, 33, "PlayerSerial", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 250, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(293, 218, 157, 47, "STOP-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC8F108") 
        GUIEditor.button[2] = guiCreateButton(110, 218, 157, 47, "Start-Tag", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF65E22")     
    end 
) 
  
  
        guiSetVisible (GUIEditor.window[1] , false) 
function OpenWin() 
    if guiGetVisible (GUIEditor.window[1] ) then    
       guiSetVisible (GUIEditor.window[1] , false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible (GUIEditor.window[1] , true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F6", "down", OpenWin) 
  
  
  
  
  
function getPlayerFromSerial ( serial ) 
    assert ( type ( serial ) == "string" and #serial == 32, "getPlayerFromSerial - invalid serial" ) 
    for index, player in ipairs ( getElementsByType ( "player" ) ) do 
        if ( getPlayerSerial ( player ) == serial ) then 
            return player 
        end 
    end 
    return false 
end 
  
  
function setSerialData(serial,key,value) 
 if( value and type(serial) == "string") then 
  setElementData(root,serial.."&"..key,value) 
  end 
end 
  
  
function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
 return value 
end 

سيرفر

  
function getPlayerFromSerial ( serial ) 
    assert ( type ( serial ) == "string" and #serial == 32, "getPlayerFromSerial - invalid serial" ) 
    for index, player in ipairs ( getElementsByType ( "player" ) ) do 
        if ( getPlayerSerial ( player ) == serial ) then 
            return player 
        end 
    end 
    return false 
end 
  
  
addEventHandler ( "onPlayerChat", root, function ( msg ) 
   if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) ~= "START" ) then 
       return 
   end 
   cancelEvent (   ) 
   outputChatBox (" ( "..getSerialData ( getPlayerSerial ( source ), "playerTag" ).." ) "..getPlayerName ( source )..": #FFFFFF"..msg, root, 255, 255, 255, true ) 
end ) 
  
   
function getSerialData(serial,key) 
 if ( key and type(serial) == "string") then 
  value = getElementData(root,serial.."&"..key) 
 end 
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...