Jump to content

طلب اكواد


Rockyz

Recommended Posts

السلام عليكم ابي كود حفض الاماكن

يعني قريد ليست انتقالات يحفض الاماكن يقدر يسوي مكان جديد

للي مافهم

يعني فيه قريد ليست انتقالات

مثلا رحت بيت سي جي اضغط حفض يطلع ليي في القريد ليست و اقدر انتقل له

Link to comment
addEventHandler ( "onClientClick" , root, 
function () 
local aa = guiGridListGetSelectedItem(gridList) 
guiGridListGetItemText ( aa , row , column ) 
local Serial = getPlayerSerial() 
guiSetText (EditName, ..tostring(Serial) ) 
 end 
) 

X

يبي لما يضغط على لاعب يطلع سيرياله يحدده مثل القريد ليست

Link to comment

Client side #

addEventHandler ("onClientGUIClick", resourceRoot,  
  function () 
    if (source == gridlist) then 
      local row = guiGridListGetSelectedItem (gridlist) 
      local select = guiGridListGetItemText (gridlist, row, 1) 
      if (select and select ~= "") then 
        local plr = getPlayerFromName (select) 
        if (plr) then 
          triggerServerEvent ("getPlayerSerial_", localPlayer, plr) 
        end 
      end 
    end 
  end 
) 
  
addEvent ("ReplyFromServer", true) 
addEventHandler ("ReplyFromServer", root,  
  function (serial) 
    guiSetText (edit, serial) 
  end 
) 

Server side #

addEvent ("getPlayerSerial_", true) 
addEventHandler ("getPlayerSerial_", root,  
  function (plr) 
    triggerClientEvent (source, "ReplyFromServer", source, getPlayerSerial (plr)) 
  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...