Jump to content

x | طلب | x


Recommended Posts

"onClientGUIClick"
guiGridListGetSelectedItem
guiGridListGetItemText
triggerServerEvent -- مع اللاعب المحدد

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

Link to comment
--ClientSide
addEventHandler("onClientGUIClick",root,
function()
local aplayer = guiGridListGetItemText ( gridplayer, guiGridListGetSelectedItem ( Gwine ), 1 ) -- Window
outputChatBox(aplayer)
triggerServerEvent("Chanllage", localPlayer)
end
)

--ServerSide
addEvent ("Chanllage",true)
addEventHandler ("Chanllage",root,
    function ( p )
        local Chan = getPlayerFromName(p)
        if ( Chan ) then
            outputChatBox ( "[Chanllage System]"..Chan.." Seclect Player", player, 0, 255, 0 )
        end
    end
)

كذا؟  ي بروس

Link to comment

اسماء الجريد ليست مختلف عن الثاني . وقلت ارسل اللاعب المحدد بالترايقر

غير معرفة player وسطر 16 بسيرفر 

وليش ماتجرب قبل ماتسأل اذا صحيح او خطأ

Link to comment
15 minutes ago, #BrosS said:

اسماء الجريد ليست مختلف عن الثاني . وقلت ارسل اللاعب المحدد بالترايقر

غير معرفة player وسطر 16 بسيرفر 

وليش ماتجرب قبل ماتسأل اذا صحيح او خطأ


function update () 
guiGridListClear(gridplayer) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (gridplayer) 
guiGridListSetItemText (gridplayer,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

الاسماء 

رد لاهنت

Link to comment
addEventHandler("onClientGUIClick",root,
function()
if guiGridListGetSelectedItem(gridplayer) ~= -1 or source == bu then
guiSetVisible(Gwin,true)
local NameP = guiGridListGetItemText(gridplayer,guiGridListGetSelectedItem(gridplayer),1)
triggerServerEvent("Chanllage", localPlayer, NameP)
showCursor(true)
elseif source == accept then
triggerServerEvent("accept",localPlayer)
elseif source == naccept then
guiSetVisible(Gwin,false)
elseif source == cl then
guiSetVisible(win,false)
showCursor(false)
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...