Sign in to follow this  
SWAT-M7MD

onClientPedDamage

Recommended Posts

addEventHandler("onClientPedDamage",resourceRoot,
function ( )
if ped then
cancelEvent()
end
)

عم احاول اسوي كود يخلي البيد اللي في السيرفر ما يقتلهم الاعبين بس ما زبطت معي

Share this post


Link to post
Posted (edited)

 

MrPed = createPed(0 ,x ,y, z)

addEventHandler("onClientPedDamage",MrPed,
  function()
    cancelEvent()
  end
);  

x, y, z احداثيات البيد حقك

Edited by #BrosS

Share this post


Link to post
11 minutes ago, #BrosS said:

 


MrPed = createPed(0 ,x ,y, z)

addEventHandler("onClientPedDamage",MrPed,
  function()
    cancelEvent()
  end
);  

x, y, z احداثيات البيد حقك

انا ابي اسوي البيد اللي ف كل السرفر

مو واحد فقط

Share this post


Link to post

وحط روت  MrPedبدل

Share this post


Link to post
5 hours ago, SWAT-M7MD said:

انا ابي اسوي البيد اللي ف كل السرفر

مو واحد فقط

أعتقد كذا جرب


addEventHandler("onClientPedDamage",root,
  function()
    	if isElement == "ped" then
    		cancelEvent()
     	end
  end
);  

 

  • Like 1

Share this post


Link to post
1 minute ago, +Source|> said:

أعتقد كذا جرب


addEventHandler("onClientPedDamage",root,
  function()
    	if isElement == "ped" then
    		cancelEvent()
     	end
  end
);  

 

وش مسوي انت 😂😂

  • Haha 1

Share this post


Link to post
Just now, #,xiRocKyz said:

وش مسوي انت 😂😂

العيد صح

Share this post


Link to post
function Damage ( attacker )
  
	cancelEvent() 
  
end

addEventHandler ( "onClientPedDamage", root, Damage )

 

  • Like 1

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.