![]() |
(playerkillsplayer)
I was wondering if there was something that can check if the player kills another player..
I would use ap but a flag would be much easier. :) |
I think there is. How else could Stefan make the AP thing? I don't know what the code would be though. Try different variables for the server kills data. Then you could put it on a timeout to use it.
- shrugs. Other then that I have no idea. |
I saw that command on some NPC scripting site, never paid attention to it though
|
You could do it if you had it in a system npc and used triggeraction i do belive....
|
Joey...
You can see if a player kills another player by using client.strings or this.strings Like this. NPC Code: Something like this.. I know the NPC Code:Probably will not work.. but ohwhell im just supposed to be showing you how its done.. damn im tired :asleep:if (playerap=<this.ap) |
[screen_name says:]
there are problems with that script, but it is in the right direction Quote:
|
Um but if u have 0 AP or the guy u kiled had? wouldn't really work ;)
there is no scripting command counting the kills or death u can use... um no command I knew ;) |
Hmm. Couldn't it be done somehow with the (playerdies) command?
|
Quote:
|
you could use theplayerdies and playertouchsother, possibly, but the playerdies command is only active for the current player, meaning it would only register on the player that dies, it would be too complicated...i guess you could just do some sory of playercount thing...its possible, but it would take a lot of workarounds...A LOT! you could do a variation of the other guy's thing...
like: NPC Code: not exactly, but a lot like that. |
Quote:
|
Quote:
|
Quote:
|
it can be done, you would have to use testplayer, and indexes, and maybe triggeraction, it would be very difficult, i am trying to make one, but if you wanted to use ap, you would have to set the ap at 100 all the time, and if it lowered you would know the player killed someone, but then you could not longer use ap
|
Quote:
the best way doing this should be a complete new Weapon system (self coded sword and stuff) working with trigegractions so it could be done |
if (playerkillsplayer)
#r(0) is the account name of the killed player #r(1) is the account name of the killer #r(2) is the ap loss |
Quote:
|
No. But there really should be one like that. I'll post in the future improvements.
|
lol well thats interasting, posting non-existant commands...ook
|
Kumada,
You could check if a player killed someone like that, yes. I don't think Stefan coded it like that though. How else would you do it when you said `showkills`. It would be a waist of time to use this.kills and stuff. |
Quote:
|
| All times are GMT +2. The time now is 04:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.