Jw8. Posted July 26, 2017 Share Posted July 26, 2017 سلام عليككم ممكن كود كل ما تحدد لاعب قريد ليست ويضغط بوتين يرسل له لوحة لاني ما اعرف للقريد ليست اتمنى المساعده Link to comment
#BrosS Posted July 26, 2017 Share Posted July 26, 2017 "onClientGUIClick" guiGridListGetSelectedItem guiGridListGetItemText triggerServerEvent -- مع اللاعب المحدد بالسيرفر سوي تريقر باللاعب اللي محدد للكلنت عشان يفتح له اللوحة Link to comment
Jw8. Posted July 26, 2017 Author Share Posted July 26, 2017 --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
#BrosS Posted July 26, 2017 Share Posted July 26, 2017 اسماء الجريد ليست مختلف عن الثاني . وقلت ارسل اللاعب المحدد بالترايقر غير معرفة player وسطر 16 بسيرفر وليش ماتجرب قبل ماتسأل اذا صحيح او خطأ Link to comment
Jw8. Posted July 26, 2017 Author Share Posted July 26, 2017 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
Jw8. Posted July 26, 2017 Author Share Posted July 26, 2017 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
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