Post: Kill to player help
08-25-2015, 10:53 AM #1
ByteSource
League Champion
(adsbygoogle = window.adsbygoogle || []).push({}); Im wondering if anyone can help me with kill to player code.

Im trying to script if player kill enemy but cant seem to figure it out.
08-26-2015, 09:00 PM #11
ByteSource
League Champion
Originally posted by Numb View Post
Yeah, wasn't that what you was looking for? McCoy


it somewhat is but i got a more simple function for it thanks alot thoe

    
self.pers["kills"]
08-26-2015, 09:29 PM #12
-Numb
You talkin to me?
Originally posted by XD View Post
it somewhat is but i got a more simple function for it thanks alot thoe

    
self.pers["kills"]


Lol I thought you asked for how you kill a player..
Yes self.pers["kills"] will tell you how many kills you have ^^
08-27-2015, 05:29 PM #13
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by XD View Post
Im wondering if anyone can help me with kill to player code.

Im trying to script if player kill enemy but cant seem to figure it out.


If you're trying to see if someone killed another player:

    
monitorKills()
{
self endon("death");
self endon("disconnect");
kills = self.pers["kills"];

for(;Winky Winky
{
if(self.pers["kills"] != kills)
{
kills++;
self notify("killed_enemy_player");
}
wait 0.02;
}
}
waitForKill()
{
self endon("death");
self endon("disconnect");

for(;Winky Winky
{
self waittill( "killed_enemy_player");

victim = self.lastkilledvictim;
}
}

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo