SycroX Posted June 29, 2016 Share Posted June 29, 2016 اه اوك ما انا بقول كدا بردو function getAllPlayers() guiGridListClear(YourGrid) for i,v in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(YourGrid) guiGridListSetItemText(YourGrid,row,1,getPlayerName(v),false,false) guiGridListSetItemColor(YourGrid,row, 1, 0, 255, 0) end end addEventHandler("onClientPlayerJoin", resourceRoot, getAllPlayers) addEventHandler("onClientPlayerQuit", resourceRoot, getAllPlayers) addEventHandler("onClientResourceStart", resourceRoot, getAllPlayers) addEventHandler("onClientGUIDoubleClick", root, function() local row = guiGridListGetSelectedItem( YourGrid ) local playerName = guiGridListGetItemText( YourGrid, row, 1 ) if source == YourGrid and row ~= -1 then triggerServerEvent("CheakSerial", localPlayer, playerName) end end ) addEvent("SetSerial", true) addEventHandler("SetSerial", root, function(Serial) guiSetText(yourEdit, Serial) end) --#Server SIDE addEvent("CheakSerial", true) addEventHandler("CheakSerial", root, function(playerName) local player = getPlayerFromName(playerName) local Serial = getPlayerSerial(player) triggerServerEvent(source, "SetSerial", source, Serial) end) في خطا في السيرفر انت حاط triggerServerEvent وهي تجي triggerClientEvent ارجع ورا هتلاقيني قايل لك الصح - اسف اتلخبط و انا بكتب الكود Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now