Jump to content

كود


Jw8.

Recommended Posts

ابي حد يعدلي الكود ذه على داتا كوينز 

 addEvent( "BuyW", true)
addEventHandler( "BuyW", getRootElement(),
function ( tPM , gWA, wID )
local PlayerMoney = getPlayerMoney(source)
	if PlayerMoney >= tPM then
	giveWeapon (source, wID, gWA )
	takePlayerMoney(source, tPM)
	end
end )

 

Link to comment
addEvent( "BuyW", true)
addEventHandler( "BuyW", getRootElement(),
function ( tPM , gWA, wID )
local PData = getElementData(source,"Your Data Name")
	if PData >= tPM then
	giveWeapon (source, wID, gWA )
	setElementData (source,"Data Name", PData - tPM)
	
    end
    else outputChatBox("you don't have points",255,255,255,true)
end )

حط الداتا حقك ، لو معرفها ~#

Edited by [T]|O|[P]George
Link to comment
8 minutes ago, [T]|O|[P]George said:

addEvent( "BuyW", true)
addEventHandler( "BuyW", getRootElement(),
function ( tPM , gWA, wID )
local PData = getElementData(source,"Your Data Name")
	if PData >= tPM then
	giveWeapon (source, wID, gWA )
	setElementData (source,"Data Name", PData - tPM)
	
    end
    else outputChatBox("you don't have points",255,255,255,true)
end )

حط الداتا حقك ، لو معرفها ~#

 راجع كودك عندك خطأ في التحقق

 

Link to comment
10 hours ago, KillerX said:

 راجع كودك عندك خطأ في التحقق

 

addEvent( "BuyW", true)
addEventHandler( "BuyW", getRootElement(),
function ( tPM , gWA, wID )
local PData = getElementData(source,"Your Data Name")
	if PData >= tPM then
	giveWeapon (source, wID, gWA )
	setElementData (source,"Data Name", PData - tPM)
    else
    outputChatBox("you don't have points",255,255,255,true)
    end
end )

 

Link to comment
7 hours ago, +Source|> said:

addEvent( "BuyW", true)
addEventHandler( "BuyW", getRootElement(),
function ( tPM , gWA, wID )
local PData = getElementData(source,"Your Data Name")
	if PData >= tPM then
	giveWeapon (source, wID, gWA )
	setElementData (source,"Data Name", PData - tPM)
    else
    outputChatBox("you don't have points",255,255,255,true)
    end
end )

 

خطا

دا سيرفر سايد وبالتالي لازم تحط الاعب اللي تظهر لة الرسالة

 

  • Thanks 1
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...