Raised This Month: $ Target: $400
 0% 

Get the "killers" client


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Porcellian
Member
Join Date: Oct 2017
Old 09-02-2018 , 05:03   Get the "killers" client
Reply With Quote #1

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) {
makeDeath(killer);
} else {
print ("you killed the right player");
}
I don't really know how to do this, I've looked trough several plugins source code to see if I can use anything of that, but I can't find anything relevant. So preferably, if it's easy I could use a finished code for that. Or I just need to know how to get the client of the "killer" so I can use it somehow.

Any ideas?
Porcellian is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode