Sign in to follow this  
FAST_WOLFS

Kill function and invisibility for ped

Recommended Posts

:fadein: Hi, the function KillPed in my script it does not work, an example please :?:

This is for my resource "friendbot". I need to kill a bot and put invisibility, if you can :?

They take part as a helper, if any when the script is run, I mean it works.

Share this post


Link to post
:fadein: Hi, the function KillPed in my script it does not work, an example please :?:

This is for my resource "friendbot". I need to kill a bot and put invisibility, if you can :?

They take part as a helper, if any when the script is run, I mean it works.

So post the script.

Share this post


Link to post

Ok..., not work:

Example1, Server:

function A4() 
setkillPed ( perro ) 
end 
addCommandHandler("a4", A4) 

"setKilledPed" exist or put it there but does not work with KilledPed.

Example2, Client:

function B14(b) 
killPed(perro,b) 
end 
addCommandHandler("b14", B14) 

Share this post


Link to post
Thanks, but not work.

Now, i using other functions...

perro is defined ped? if yes so try this:

  
ped = createPed(id, x, y, z) 
  
function kill (source) 
killPed(ped) 
end 
addCommandHandler("kill", kill) 

If not so try this:

function kill (source) 
killPed(source) 
end 
addCommandHandler("kill", kill) 

Share this post


Link to post

Thanks, I'll try the other version into resource then, then i use in resource slothbot the function kill.

I use clientside for all.

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.