Jump to content

مشكله


Jw8.

Recommended Posts

ابي كل ما حد يقتل شخص يعطيه اكس بي

--Server
addEventHandler("onPlayerSpawn",root,
function()
    local xp = getAccountData(account,xp)
if (xp >= +15) then
triggerClientEvent("kill",localPlayer)
end
end
)
--Client
addEvent("kill",true)
addEventHandler("kill",root,
function()
if ( xp ) then
triggerServerEvent("kill",localPlayer)      
end
end)

 

Link to comment
function onKilled(ammo, killer, killerweapon, bodypart)
  if (getElementType(killer) == "player") then
   	 -- كود اعطاء الأكس بي
	 -- source = المقتول
   	 -- killer = القاتل
  end
end
addEventHandler ( "onPlayerWasted", getRootElement(), onKilled )

 

Link to comment
function onKilled(ammo, killer, killerweapon, bodypart)
  if (getElementType(killer) == "player") then
    	if not killer == source then
           -- كود اعطاء الأكس بي
           -- source = المقتول
           -- killer = القاتل
     	end
  end
end
addEventHandler ( "onPlayerWasted", getRootElement(), onKilled )

 

  • Like 1
Link to comment
11 minutes ago, #BrosS said:

هذا بما انه مكثر طلباته مبين مود اللفل منشور واعرفه ذذ

محفوظ بالسكل

ههههههههههه كل الفلات منشوره لا تفكر انت صنعه يجيبونه من ذا بزوكا ويسويه دي اكس -_-

10 minutes ago, #BrosS said:

Trust me

++دايما حاقد !

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