SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 08/01/2013, 09:38 AM   #1
Mado
Huge Clucker
 
Mado's Avatar
 
Join Date: Aug 2012
Location: The Netherlands
Posts: 278
Reputation: 47
Default Custom weapon damage problems with kill-logs?

Hello,

I am thinking of adding a custom damage system for my script. Currently kill-logs are tracked at OnPlayerDeath and these are needed for several things, just as the whole function;

- To record kills and deaths done by players so admins can look them up
- To detect whether a kill was done by a hitman killing his target

Now if I use a custom damage system with SetPlayerHealth below OnPlayerTakeDamage, will it affect the logs?

Like if Player A shoots Player B and kills him, will it still be seen as such at OnPlayerDeath? And if no, is there any other way?
Mado is offline   Reply With Quote
Old 08/01/2013, 09:40 AM   #2
zombieking
Huge Clucker
 
Join Date: Jun 2011
Posts: 435
Reputation: 33
Default Re: Custom weapon damage problems with kill-logs?

I tried this and.. every kill returned reason 255 and killerid 65535
zombieking is offline   Reply With Quote
Old 08/01/2013, 09:43 AM   #3
Mado
Huge Clucker
 
Mado's Avatar
 
Join Date: Aug 2012
Location: The Netherlands
Posts: 278
Reputation: 47
Default Re: Custom weapon damage problems with kill-logs?

hmmm
Mado is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
More weapon damage, need help! dafuq Scripting Help 6 12/01/2013 11:44 AM
Weapon Damage Blackazur Scripting Help 3 23/10/2012 03:31 PM
Logout with weapon logs. aintaro Scripting Help 0 12/08/2012 06:36 PM
Weapon Damage.. FirziKs Scripting Help 2 11/11/2011 11:27 PM
[HELP]when player logs off he loses the weapon Lilcuete Help Archive 8 20/10/2009 09:16 PM


All times are GMT. The time now is 11:58 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.