Jump to content

مساعده ضروريه


Recommended Posts

	شباب هسسا انا مسوي محل اسلحه هسا هذول 3 اسلحه انا مسويهن مع بعض
يعني لما اشتري طلقه من ديقل واشتري كمان طلقه من قولت يصير عندي طلقتين 
بس هون في مشكله لما اشتري 3000 طلقه من ديقل واشتري طلقه من لمسدس ثاني يرجع لمسدس 1 
شباب يرحم والديكم تساعدوني#

local Text = tonumber(guiGetText(source))
	if source == edit_1 then
		guiSetText(edit_2, "0")
		guiSetText(edit_3, "0")
		local Ammo = getPedTotalAmmo(localPlayer, 3)
		if not Text  or Text < 0 then
			guiSetText(source, "0")
		elseif Text+Ammo > SilncedSetting["Max"] then
			guiSetText(source, SilncedSetting["Max"]-Ammo >= 0 and SilncedSetting["Max"]-Ammo or "0")
		end
		SilncedCost = tonumber(guiGetText(source)) * SilncedSetting["Cost"]
	elseif source == edit_2 then
		guiSetText(edit_3, "0")
		guiSetText(edit_1, "0")
		local Ammo = getPedTotalAmmo(localPlayer, 3)
		if not Text  or Text < 0 then
			guiSetText(source, "0")
		elseif Text+Ammo > Colt45Setting["Max"] then
			guiSetText(source, Colt45Setting["Max"]-Ammo >= 0 and Colt45Setting["Max"]-Ammo or "0")
		end
		Colt45Cost = tonumber(guiGetText(source)) * Colt45Setting["Cost"]
	elseif source == edit_3 then
		guiSetText(edit_1, "0")
		guiSetText(edit_2, "0")
		local Ammo = getPedTotalAmmo(localPlayer, 3)
		if not Text  or Text < 0 then
			guiSetText(source, "0")
		elseif Text+Ammo > DeagleSetting["Max"] then
			guiSetText(source, DeagleSetting["Max"]-Ammo >= 0 and DeagleSetting["Max"]-Ammo or "0")
		end
		DeagleCost = tonumber(guiGetText(source)) * DeagleSetting["Cost"]

 

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