Sparrow Posted March 8, 2012 Share Posted March 8, 2012 كيف أقوم بسكريبت التي تبحث عن الاعب في الأدمينية Link to comment
Sparrow Posted March 8, 2012 Author Share Posted March 8, 2012 أنا أعمل على الأدمينية (admin panel) كيف أضع الأديت تبحث عن الاعبين Link to comment
JR10 Posted March 8, 2012 Share Posted March 8, 2012 function onClientGUIChanged() local name = guiGetText(source) for index, player in pairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), name:lower()) then --CODE end end end addEventHandler("onClientGUIChanged", guiEdit, onClientGUIChanged) Link to comment
SpriN' Posted March 16, 2012 Share Posted March 16, 2012 (account) وهل توجد طريقة لجعلها تبحث بحساب اللاعب ? Link to comment
JR10 Posted March 16, 2012 Share Posted March 16, 2012 server: addEventHandler("onPlayerLogin",root, function(_,account) setElementData(source,"accountName",getAccountName(account)) end) client: function onClientGUIChanged() local name = guiGetText(source) for index, player in pairs">pairs(getElementsByType("player")) do local accountName = getElementData(player,"accountName") or "" if string.find(accountName:lower(), name:lower()) then --CODE end end end addEventHandler("onClientGUIChanged", guiEdit, onClientGUIChanged) Link to comment
TAPL Posted March 18, 2012 Share Posted March 18, 2012 ما هي ال guiEdit? https://wiki.multitheftauto.com/wiki/GuiCreateEdit Link to comment
Sparrow Posted March 18, 2012 Author Share Posted March 18, 2012 ah, it's playersSearchEdit here :3 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