How to script an Assists system ?
#1

Hey guys, I am working on a TDM mode, do you have a suggestion on how to build an Assist system ?
I mean, how can I detect if someone actually "assisted" on killing someone ?
Reply
#2

You may like to look out for OnPlayerWeaponShot and OnPlayerGetHit / OnPlayerHit.
Reply
#3

u mean u like in iG los santos apocalypse?

Script an assisst system at your own this section is for help not for creating an whole script for u. First create at your own then if u get errors show your code here.
Reply
#4

Quote:
Originally Posted by Owen007
Посмотреть сообщение
u mean u like in iG los santos apocalypse?

Script an assisst system at your own this section is for help not for creating an whole script for u. First create at your own then if u get errors show your code here.
You probably can't understand English, I am looking for Suggestions, I don't want people to script for me.

Quote:
Originally Posted by TheDrx
Посмотреть сообщение
You may like to look out for OnPlayerWeaponShot and OnPlayerGetHit / OnPlayerHit.
Thanks!
Reply
#5

You also may try to get the attackers and set the killer as the most damanging attacker.
Look out for https://sampwiki.blast.hk/wiki/OnPlayerGiveDamageActor
Reply
#6

Quote:
Originally Posted by TheDrx
Посмотреть сообщение
You also may try to get the attackers and set the killer as the most damanging attacker.
Look out for https://sampwiki.blast.hk/wiki/OnPlayerGiveDamageActor
You mean this ?
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot

And like the one who gave the most damage won ?
Reply
#7

Yes, you may also use OnPlayerWeaponShot, but you may look out for the range and the update time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)