FAST_WOLFS Posted December 19, 2015 Posted December 19, 2015 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.
1LoL1 Posted December 19, 2015 Posted December 19, 2015 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.
FAST_WOLFS Posted December 19, 2015 Author Posted December 19, 2015 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)
Enargy, Posted December 20, 2015 Posted December 20, 2015 at serverside. addCommandHandler("a4", function(p) killPed(p) end)
FAST_WOLFS Posted December 23, 2015 Author Posted December 23, 2015 Thanks, but not work. Now, i using other functions...
1LoL1 Posted December 24, 2015 Posted December 24, 2015 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)
FAST_WOLFS Posted December 24, 2015 Author Posted December 24, 2015 Thanks, I'll try the other version into resource then, then i use in resource slothbot the function kill. I use clientside for all.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now