Hey, small question
#1

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.
Reply
#2

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
Reply
#3

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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)