Get the "killers" client
Hello,
I am new to sourcemod scripting, and I wonder how I can fetch data from the "killer" in a game. I basically want the killer to die, if he doesn't kill the correct player. So, bascially something like this (and no it is not real code) Code:
if(killer Killed badPlayer) { Any ideas? |
Re: Get the "killers" client
What will determine the right player? Steam ID, etc.?
|
Re: Get the "killers" client
To get the client of the one who was killed, we are using this:
Quote:
|
Re: Get the "killers" client
Quote:
Also, if you want to get the User ID of the killer, you need to hook the player_death event. PHP Code:
|
Re: Get the "killers" client
I tried this, but it doesn't seem to work.
Quote:
|
Re: Get the "killers" client
I had to add this "ForcePlayerSuicide(attacker);"
and now it is working correct, thank you! |
All times are GMT -4. The time now is 20:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.