Jump to content

x [ مساعدة ] x


Guest

Recommended Posts

Just now, #!MnT7r,_.<3 said:

آيه !

GUIEditor = { gridlist = {}, window = {}, label = {}, edit = {} }
------
function loadPlayers()
    for _,player in ipairs(getElementsByType("player")) do         
        local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, getPlayerName(player), false, false) 
    end 
end
------
addEventHandler("onClientResourceStart", resourceRoot,
	function()
		GUIEditor.window[1] = guiCreateWindow(377, 203, 620, 434, ".:[ نظام توزيع الفلوس v2.5 | طرب تآيم ]:.", false)
		guiWindowSetSizable(GUIEditor.window[1], false)
		guiSetAlpha(GUIEditor.window[1], 1.00)
		guiSetVisible( GUIEditor.window[1], false )
		GUIEditor.gridlist[1] = guiCreateGridList(9, 63, 350, 348, false, GUIEditor.window[1])
		guiGridListAddColumn(GUIEditor.gridlist[1], "#اللاعبين", 0.9)
		aP = guiCreateButton(407, 253, 147, 41, "[ Give Player ]", false, GUIEditor.window[1])
		guiSetProperty(aP, "NormalTextColour", "FFFD8300")
		aG = guiCreateButton(407, 162, 147, 41, "[ Give All ]", false, GUIEditor.window[1])
		guiSetProperty(aG, "NormalTextColour", "FFEFFE00")
		Edit = guiCreateEdit(383, 387, 228, 29, "", false, GUIEditor.window[1])
		GUIEditor.label[1] = guiCreateLabel(512, 360, 67, 17, "* المبلغ : ", false, GUIEditor.window[1])
		guiSetFont(GUIEditor.label[1], "default-bold-small")
		guiLabelSetColor(GUIEditor.label[1], 0, 220, 252)
		GUIEditor.label[2] = guiCreateLabel(28, 32, 182, 15, "Created By FaNaaN | 6rB Time ", false, GUIEditor.window[1])
		guiSetFont(GUIEditor.label[2], "default-small")
		guiLabelSetColor(GUIEditor.label[2], 41, 251, 0)
		guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true)
		GUIEditor.label[3] = guiCreateLabel(383, 48, 187, 15, "مرحبا ً بك في لوحةة توزيع الفلوس !", false, GUIEditor.window[1])
		guiSetFont(GUIEditor.label[3], "default-bold-small")
		guiLabelSetColor(GUIEditor.label[3], 0, 248, 250)
		GUIEditor.label[4] = guiCreateLabel(383, 93, 187, 15, "قم بكتآبةة المبلغ في إيديت \"الفراغ\"", false, GUIEditor.window[1])
		guiSetFont(GUIEditor.label[4], "default-bold-small")
		guiLabelSetColor(GUIEditor.label[4], 0, 248, 250)
	end
)
addCommandHandler("systemGM",
	function()
		guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1]))
		showCursor(guiGetVisible(GUIEditor.window[1]))
		guiSetInputEnabled(guiGetVisible(GUIEditor.window[1]))
		loadPlayers()
	end
)
addEventHandler("onClientGUIClick", root,
	function()
		if source == aG then
			local Amount = guiGetText(Edit)
			triggerServerEvent("MoneyAction", localPlayer, "GiveAll", {Amount})
		elseif source == aP then
			local Amount = guiGetText(Edit)
			local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
			if sel and sel ~= -1 then
				local playerName = guiGridListGetItemText(GUIEditor.gridlist[1] , sel, 1)
				triggerServerEvent("MoneyAction", localPlayer, "GivePlayer", {playerName, Amount})
			else
				outputChatBox("* Please select a player first",255,0,0,true)
			end
		end 
	end
)
addEvent("MoneyAction", true)
addEventHandler("MoneyAction", root,
	function(event, data)
		if event == "GivePlayer" then
			local player = getPlayerFromName(data[1])
			if player and isElement(player) then
				givePlayerMoney(player, tonumber(data[2]))
				outputChatBox("["..getPlayerName(source).."] has gived you [ $"..data[2].." ]", player, 0, 255, 0, true)
				outputChatBox("you've gived ( "..data[1].." ) Money : $"..data[2].."", source, 0, 255, 0, true)
			end
		elseif event == "GiveAll" then
			for _,player in ipairs(getElementsByType("player")) do
				givePlayerMoney(player, tonumber(data[1]))
				outputChatBox("($"..data[1]..") بأعطاء جميع اللاعبين مبلغ ["..getPlayerName(source).."] قام اللاعب", player, 0, 255, 0, true)
				playSoundFrontEnd(player, 44)
			end
		end
	end
)

 

Link to comment
1 minute ago, #x1AhMeD,-09 said:

GUIEditor = { gridlist = {}, window = {}, label = {}, edit = {} }
------
function loadPlayers()
    for _,player in ipairs(getElementsByType("player")) do         
        local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, getPlayerName(player), false, false) 
    end 
end
------
addEventHandler("onClientResourceStart", resourceRoot,
	function()
		GUIEditor.window[1] = guiCreateWindow(377, 203, 620, 434, ".:[ نظام توزيع الفلوس v2.5 | طرب تآيم ]:.", false)
		guiWindowSetSizable(GUIEditor.window[1], false)
		guiSetAlpha(GUIEditor.window[1], 1.00)
		guiSetVisible( GUIEditor.window[1], false )
		GUIEditor.gridlist[1] = guiCreateGridList(9, 63, 350, 348, false, GUIEditor.window[1])
		guiGridListAddColumn(GUIEditor.gridlist[1], "#اللاعبين", 0.9)
		aP = guiCreateButton(407, 253, 147, 41, "[ Give Player ]", false, GUIEditor.window[1])
		guiSetProperty(aP, "NormalTextColour", "FFFD8300")
		aG = guiCreateButton(407, 162, 147, 41, "[ Give All ]", false, GUIEditor.window[1])
		guiSetProperty(aG, "NormalTextColour", "FFEFFE00")
		Edit = guiCreateEdit(383, 387, 228, 29, "", false, GUIEditor.window[1])
		GUIEditor.label[1] = guiCreateLabel(512, 360, 67, 17, "* المبلغ : ", false, GUIEditor.window[1])
		guiSetFont(GUIEditor.label[1], "default-bold-small")
		guiLabelSetColor(GUIEditor.label[1], 0, 220, 252)
		GUIEditor.label[2] = guiCreateLabel(28, 32, 182, 15, "Created By FaNaaN | 6rB Time ", false, GUIEditor.window[1])
		guiSetFont(GUIEditor.label[2], "default-small")
		guiLabelSetColor(GUIEditor.label[2], 41, 251, 0)
		guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true)
		GUIEditor.label[3] = guiCreateLabel(383, 48, 187, 15, "مرحبا ً بك في لوحةة توزيع الفلوس !", false, GUIEditor.window[1])
		guiSetFont(GUIEditor.label[3], "default-bold-small")
		guiLabelSetColor(GUIEditor.label[3], 0, 248, 250)
		GUIEditor.label[4] = guiCreateLabel(383, 93, 187, 15, "قم بكتآبةة المبلغ في إيديت \"الفراغ\"", false, GUIEditor.window[1])
		guiSetFont(GUIEditor.label[4], "default-bold-small")
		guiLabelSetColor(GUIEditor.label[4], 0, 248, 250)
	end
)
addCommandHandler("systemGM",
	function()
		guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1]))
		showCursor(guiGetVisible(GUIEditor.window[1]))
		guiSetInputEnabled(guiGetVisible(GUIEditor.window[1]))
		loadPlayers()
	end
)
addEventHandler("onClientGUIClick", root,
	function()
		if source == aG then
			local Amount = guiGetText(Edit)
			triggerServerEvent("MoneyAction", localPlayer, "GiveAll", {Amount})
		elseif source == aP then
			local Amount = guiGetText(Edit)
			local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
			if sel and sel ~= -1 then
				local playerName = guiGridListGetItemText(GUIEditor.gridlist[1] , sel, 1)
				triggerServerEvent("MoneyAction", localPlayer, "GivePlayer", {playerName, Amount})
			else
				outputChatBox("* Please select a player first",255,0,0,true)
			end
		end 
	end
)

addEvent("MoneyAction", true)
addEventHandler("MoneyAction", root,
	function(event, data)
		if event == "GivePlayer" then
			local player = getPlayerFromName(data[1])
			if player and isElement(player) then
				givePlayerMoney(player, tonumber(data[2]))
				outputChatBox("["..getPlayerName(source).."] has gived you [ $"..data[2].." ]", player, 0, 255, 0, true)
				outputChatBox("you've gived ( "..data[1].." ) Money : $"..data[2].."", source, 0, 255, 0, true)
			end
		elseif event == "GiveAll" then
			for _,player in ipairs(getElementsByType("player")) do
				givePlayerMoney(player, tonumber(data[1]))
				outputChatBox("($"..data[1]..") بأعطاء جميع اللاعبين مبلغ ["..getPlayerName(source).."] قام اللاعب", player, 0, 255, 0, true)
				playSoundFrontEnd(player, 44)
			end
		end
	end
)

 

نفس المشكلةة !!!! وش ذذآ :(

Link to comment
Just now, #!MnT7r,_.<3 said:

نفس المشكلةة !!!! وش ذذآ :(

تستهبل ؟؟؟ لسا مجربو بالسيرفر المحلي حقي 

 

_8YvyQkKRz2dV-1u-NaO2Q.png

الكود شغال من الأول بس انت الي شكلك مو معرف السيرفر سايد بالميتا او مسوي شي غلط -_- و قاعد تضيع وقتنا علي الفاضي

خد سويت لك اللمود

https://up.top4top.net/downloadf-761t655u1-zip.html

Link to comment
3 minutes ago, #x1AhMeD,-09 said:

تستهبل ؟؟؟ لسا مجربو بالسيرفر المحلي حقي 

 

_8YvyQkKRz2dV-1u-NaO2Q.png

بس انا لما اسوي مثلك بتجيني انو حدث MoneyAction غير مستقبل في سيرفر !

Link to comment
Just now, #!MnT7r,_.<3 said:

بس انا لما اسوي مثلك بتجيني انو حدث MoneyAction غير مستقبل في سيرفر !

 

https://up.top4top.net/downloadf-761t655u1-zip.htm

https://up.top4top.net/downloadf-761t655u1-zip.html

https://up.top4top.net/downloadf-761t655u1-zip.html

https://up.top4top.net/downloadf-761t655u1-zip.html

https://up.top4top.net/downloadf-761t655u1-zip.html

https://up.top4top.net/downloadf-761t655u1-zip.html

https://up.top4top.net/downloadf-761t655u1-zip.html

-___________________________________________-

Just now, #x1AhMeD,-09 said:

الكود شغال من الأول بس انت الي شكلك مو معرف السيرفر سايد بالميتا او مسوي شي غلط -_- و قاعد تضيع وقتنا علي الفاضي

 

 

Link to comment
2 minutes ago, #x1AhMeD,-09 said:

افا تدري وش مسوي انا في ، ميتا ؟ هههههههههههههههههههههههههه
 

<meta>
    <info author="iMr.FaNaaN" name="Give" version="1.0.0" type="Fn"/>
 <script src="C.lua" type="client" />
 <script src="S.lua" type="client" />

</meta>

مسوي سيرفر = client ههههههههههههههههههههههههههههههههههههههه
حشيش فآخر

ع عموم آسف آذآ ضيعت وقتك

@!#NssoR_) يغلقـ للأفــآدهـ

Link to comment
29 minutes ago, #!MnT7r,_.<3 said:

افا تدري وش مسوي انا في ، ميتا ؟ هههههههههههههههههههههههههه
 


<meta>
    <info author="iMr.FaNaaN" name="Give" version="1.0.0" type="Fn"/>
 <script src="C.lua" type="client" />
 <script src="S.lua" type="client" />

</meta>

مسوي سيرفر = client ههههههههههههههههههههههههههههههههههههههه
حشيش فآخر

ع عموم آسف آذآ ضيعت وقتك

@!#NssoR_) يغلقـ للأفــآدهـ

o.O وانا اقول

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