Jump to content

x[مساعدة]x


Doffy

Recommended Posts

Posted
3 minutes ago, Master_MTA said:

اها اخي هل غيرت هذي؟

    guiSetText(lbl,getElementData(localPlayer,"health"))
وهذي

 guiSetText(lbl,"0")
 

غير

lbl

    if getElementData(localPlayer,"health") or 0 >0 and getElementData(localPlayer,"health") or 0 ~=0 then
 

وغير هذا السطر

ادري غيرت وبرضو -_- 

Posted
1 minute ago, KinG_Himoo12 said:

ادري غيرت وبرضو -_- 

مستحيل يقلبي

جربت الكود انا +_+

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
3 minutes ago, KinG_Himoo12 said:

ادري غيرت وبرضو -_- 

تأكد من تغيير اسم الليبل بـ اسم الليبل حقك ^^

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

Posted
1 minute ago, Abu-Solo said:

تأكد من تغيير اسم الليبل بـ اسم الليبل حقك ^^

يخوي تأكدت ونفس القصة يعطيني وانا ما معي نقاط حتي -_-

+ كمان ما ينقص من اللابيل

Posted
2 minutes ago, KinG_Himoo12 said:

يخوي تأكدت ونفس القصة يعطيني وانا ما معي نقاط حتي -_-

+ كمان ما ينقص من اللابيل

o.O

الاخ ماستر يقول انه شغال عنده

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

Posted
Just now, Abu-Solo said:

o.O

الاخ ماستر يقول انه شغال عنده

طيب انا موب شغال + جرب انت لو موب مصدق سوي زي الي انا مسويه وجرب @_@

Posted

طيب عطني الكود كامل عشان أساعدك زين ، وين كود زر الشراء؟

الحين فهمت اللي تبي تسويه ، تفضل

Client

healthPoint = 0

addEventHandler ( 'onClientGUIClick', root, 
	function ( )
		if ( source == GUIEditor.button[2] ) then 
			if ( healthPoint <= 10 ) then
				triggerServerEvent ( "buy:Health", localPlayer, localPlayer )
				guiAntiFlood(GUIEditor.button[2],900)
				healthPoint = healthPoint + 1
			end
		end 
	end 
) 

bindKey("h","down",
	function ( )
		if ( healthPoint >= 1 ) then
			setElementHealth(localPlayer,100)
			healthPoint = healthPoint - 1
			guiSetText(GUIEditor.label[5],healthPoint)
		else
			outputChatBox('# You dont have a health point.',255,255,255,true)
		end
    end
)

Server

addEvent("buy:Health",true)
addEventHandler("buy:Health", root,
	function ( aPlayer )
		if ( getPlayerMoney(aPlayer) >= 10000 ) then 
			takePlayerMoney(aPlayer, 10000)
			outputChatBox('# You bought a health point succesfully.',255,255,255,true)
		else
			outputChatBox('# You dont have enough money.',255,255,255,true)
		end
	end
)

 

 

 

Posted (edited)
1 hour ago, N3xT said:

طيب عطني الكود كامل عشان أساعدك زين ، وين كود زر الشراء؟

الحين فهمت اللي تبي تسويه ، تفضل

Client


healthPoint = 0

addEventHandler ( 'onClientGUIClick', root, 
	function ( )
		if ( source == GUIEditor.button[2] ) then 
			if ( healthPoint <= 10 ) then
				triggerServerEvent ( "buy:Health", localPlayer, localPlayer )
				guiAntiFlood(GUIEditor.button[2],900)
				healthPoint = healthPoint + 1
			end
		end 
	end 
) 

bindKey("h","down",
	function ( )
		if ( healthPoint >= 1 ) then
			setElementHealth(localPlayer,100)
			healthPoint = healthPoint - 1
			guiSetText(GUIEditor.label[5],healthPoint)
		else
			outputChatBox('# You dont have a health point.',255,255,255,true)
		end
    end
)

Server


addEvent("buy:Health",true)
addEventHandler("buy:Health", root,
	function ( aPlayer )
		if ( getPlayerMoney(aPlayer) >= 10000 ) then 
			takePlayerMoney(aPlayer, 10000)
			outputChatBox('# You bought a health point succesfully.',255,255,255,true)
		else
			outputChatBox('# You dont have enough money.',255,255,255,true)
		end
	end
)

 

هو يبيها محفوظه

+

اتوقع الكود حقي مافيه خطا؟

Edited by Master_MTA

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

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