SA-MP Forums Archive
fake kill - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: fake kill (/showthread.php?tid=140180)



fake kill - Headshot1108 - 07.04.2010

hello.
How can i make a fake kill or something, because i like test functions in onplayerdeath and alone is impossible. I must kill a other player that the function called.


Re: fake kill - aircombat - 07.04.2010

the function is : SendDeathMessage


Re: fake kill - Headshot1108 - 07.04.2010

but onplayerdeath won't called with this.


Re: fake kill - aircombat - 07.04.2010

it will trust me , i use it , u just need to make params for the killerid and the playerid and SendDeathMessage(killerid,playerid,reason);


Re: fake kill - Headshot1108 - 07.04.2010

yes it shows, but onplayerdeath won't called.
because i made if a player kills oneplayer he recieves random money from the player whos killed and it won't show up, thats why it won't called.


Re: fake kill - Nero_3D - 07.04.2010

Just call it by yourself somewhere

pawn Код:
OnPlayerDeath(playerid, playerid, 0);



Re: fake kill - Headshot1108 - 07.04.2010

Quote:
Originally Posted by ♣ Joker ♠
Just call it by yourself somewhere

pawn Код:
OnPlayerDeath(playerid, playerid, 0);
haha, thx