Hey, small question - 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)
+--- Thread: Hey, small question (
/showthread.php?tid=593615)
Hey, small question -
DemME - 07.11.2015
Hey, it's possible to do like OnPlayerKillPlayer and the gun used, I mean, I read about that OnPlayerShootPlayer
But I don't think thats what I need, I just trying to make some kind of admin alert when player kills another player with a gun, such as
Код:
ADMLOG: %s just killed %s with %s (Weapon Name)
Thanks for helpers, +rep.
Re: Hey, small question -
SecretBoss - 07.11.2015
OnPlayerKillPlayer is similar with OnPlayerDeath, you can use killerid to get killer's id and playerid to get victims id, to get weapon name you will need
GetWeaponName function
Re: Hey, small question -
DemME - 07.11.2015
Quote:
Originally Posted by SecretBoss
OnPlayerKillPlayer is similar with OnPlayerDeath, you can use killerid to get killer's id and playerid to get victims id, to get weapon name you will need GetWeaponName function
|
There is nothing about OnPlayerKillPlayer, you mean that I need to create a new public which will be called like this or be a copycat of OnPlayerDeath, then to seprate killer id and victim id, or what? didn't got it yet
Re: Hey, small question -
DemME - 07.11.2015
Quote:
Originally Posted by SecretBoss
OnPlayerKillPlayer is similar with OnPlayerDeath, you can use killerid to get killer's id and playerid to get victims id, to get weapon name you will need GetWeaponName function
|
Nevermind, I got it. thanks.