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. My best resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=12389
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) My best resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=12389
Enargy, Posted December 20, 2015 Posted December 20, 2015 at serverside. addCommandHandler("a4", function(p) killPed(p) end) - Inactivo.
FAST_WOLFS Posted December 23, 2015 Author Posted December 23, 2015 Thanks, but not work. Now, i using other functions... My best resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=12389
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. My best resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=12389
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