• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Filterscript] Kill Assist [killAssist.fs]
#4
Sometimes something simple can be very neat.

I do have a question tho:



Code:
        if((killAssist[playerid][a]!= INVALID_PLAYER_ID) && (killAssist[playerid][a] != killerid))

        {

            OnPlayerKillAssist(killAssist[playerid][a], playerid, killerid);

Quote:- If you want to change the reward for the player:

edit the lines under: (...)



Why not make an include of and use CallLocalFunction() (or even CallRemoteFunction() if you insist of it being used as a filterscript)?

That way people can easily hook OnPlayerKillAsist (which then'd be a callback [public function, thus needs forwarding]) so they can script more easily what they want to do when someone used kill assist?

Then they can do things with gamemode variables (eg. variables that holds player cash) aswell without having to do too much effort. It's a nice idea that can be improved to something even nicer ;)
  Reply


Messages In This Thread
Kill Assist [killAssist.fs] - by billz - 2020-06-30, 12:24 PM
RE: Kill Assist [killAssist.fs] - by xbruno1000x - 2020-07-05, 03:33 AM
RE: Kill Assist [killAssist.fs] - by Snow - 2020-10-16, 11:18 PM
RE: Kill Assist [killAssist.fs] - by Kwarde - 2020-10-17, 09:42 PM
RE: Kill Assist [killAssist.fs] - by billz - 2021-02-03, 08:47 AM

Forum Jump: