Jump to content

X[مساعده في اكواد ]X


Recommended Posts

السلام وعليكم يعيال كيفكم

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

يجي يفتح اللوحة من 0

طبعا اللوحة لقروب معين

يجي يحط الاسم في الايديت  تلقائي يطلع له المعلومات بتاعته السيريال و الاسم و اسم الحساب و القروب

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

هذي الاكواد يا ريت تساعدوني

--كلينت
setTimer(function()
triggerServerEvent( "callServerAccountName", localPlayer, localPlayer ) 
end, 100, 1, true)

local accountName = getElementData(localPlayer, "account-name")
local ip = getPlayerIP(localPlayer)
local group = getPlayerGroup(localPlayer)
local name = getPlayerName(localPlayer)
local serial = getPlayerSerial(localPlayer)
local name =  getPlayerName( localPlayer ):gsub('#%x%x%x%x%x%x', '')
--------------------------------------------



fileDelete ("client.lua")

--سيرفر
addEvent("onPlayerM3P",true)
addEventHandler("onPlayerM3P",root,
function ()
acc = getPlayerAccount(source)
if not isGuestAccount(acc) then 
if isObjectInACLGroup( "user.".. getAccountName(acc),aclGetGroup ( "ful.admin" ) ) then
triggerClientEvent(source,"opennn",source)
end
end
end
)

------------------------------
addEvent("callServerAccountName", true)
addEventHandler("callServerAccountName", root, 
	function (thePlayer)
		if thePlayer then
			local account = getPlayerAccount(thePlayer)
			if account then
				if isGuestAccount(account) then
					setElementData(thePlayer,"account-name", "Not Logged in")
				else
					local accountName = getAccountName(account)
					setElementData(thePlayer, "account-name", accountName)
				end
			end
		end
	end
)

addEventHandler("onPlayerLogin", root, 
	function()
		local accountName = getAccountName(getPlayerAccount(source))
		setElementData(source, "account-name", accountName)
	end
)

addEventHandler("onPlayerLogout", root, 
	function()
		setElementData(source, "account-name", "Not Logged in")
	end
)
fileDelete("server.lua")

يا ريت تساعدوني

Link to comment
5 hours ago, Omoi said:

لو تبي نساعدك اطرح اكوادك كامله ماني شايف اي ايديت موجود ؟

اوك هي الكلينت كامل



GUIEditor = {
    label = {}
}

local screenW, screenH = guiGetScreenSize()
wnd = guiCreateWindow((screenW - 428) / 2, (screenH - 416) / 2, 428, 416, ".:[ M3lomat Player By |M.r|LooFe| ]:.", false)
guiWindowSetSizable(wnd, false)
guiSetProperty(wnd, "CaptionColour", "FFFF0000")
guiSetVisible(wnd, false)
name-player = guiCreateEdit(101, 39, 171, 33, "", false, wnd)
GUIEditor.label[1] = guiCreateLabel(287, 49, 141, 20, "اسم اللاعب : ", false, wnd)
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 66, 254, 0)
name = guiCreateLabel(14, 97, 404, 15, "Name : ", false, wnd)
guiSetFont(name, "default-bold-small")
guiLabelSetColor(name, 66, 254, 0)
serial = guiCreateLabel(14, 122, 404, 15, "Serial : ", false, wnd)
guiSetFont(serial, "default-bold-small")
guiLabelSetColor(serial, 66, 254, 0)
accaount = guiCreateLabel(14, 147, 404, 15, "Accaount Name : ", false, wnd)
guiSetFont(accaount, "default-bold-small")
guiLabelSetColor(accaount, 66, 254, 0)
ip = guiCreateLabel(14, 172, 404, 15, "IP : ", false, wnd)
guiSetFont(ip, "default-bold-small")
guiLabelSetColor(ip, 66, 254, 0)
group = guiCreateLabel(14, 197, 404, 15, "Groups : ", false, wnd)
guiSetFont(group, "default-bold-small")
guiLabelSetColor(group, 66, 254, 0)
copy-serial = guiCreateButton(295, 240, 113, 49, "نسخ السيريال", false, wnd)
guiSetFont(copy-serial, "default-bold-small")
guiSetProperty(copy-serial, "NormalTextColour", "FF42FE00")
copy-accaount = guiCreateButton(24, 240, 113, 49, "نسخ اسم الحساب", false, wnd)
guiSetFont(copy-accaount, "default-bold-small")
guiSetProperty(copy-accaount, "NormalTextColour", "FF42FE00")
exx = guiCreateButton(156, 314, 113, 49, "اغلاق", false, wnd)
guiSetFont(exx, "default-bold-small")
guiSetProperty(exx, "NormalTextColour", "FF42FE00")
----------
key = "0"
bindKey(key,"down",
function ()
triggerServerEvent("onPlayerM3P",localPlayer)
end
)

addEvent("opennn",true)
addEventHandler("opennn",root,
function ()
if  guiGetVisible (wnd ) == false  then             
guiSetVisible (wnd,true) 
showCursor(true)
else              
guiSetVisible (wnd,false) 
showCursor(false)
              end
		end 

)

----------


setTimer(function()
triggerServerEvent( "callServerAccountName", localPlayer, localPlayer ) 
end, 100, 1, true)

local accountName = getElementData(localPlayer, "account-name")
local ip = getPlayerIP(localPlayer)
local group = getPlayerGroup(localPlayer)
local name = getPlayerName(localPlayer)
local serial = getPlayerSerial(localPlayer)
local name =  getPlayerName( localPlayer ):gsub('#%x%x%x%x%x%x', '')
--------------------------------------------



fileDelete ("client.lua")

 

Link to comment

استعمل انه يجيب جميع الحسابات وانت مستعمل

getPlayerSerial -- getPlayerIP ذا للسيرفر + لو حطيته وبحثت عنه بيطلع حقك فقط

يعني خل البحث عن الحساب مو عن الاسم

Link to comment
5 hours ago, #MR.NaiF said:

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

ضيف حسابه و اسمه و سيرياله و الايبي الخ..

وبعدين حطهم في جريد ليستد

م يحتاج كل ذا بس يجيب معلومات الحساب ويحفظها طبعا

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...