Author Topic: GiveBonus  (Read 575 times)

0 Members and 1 Guest are viewing this topic.

Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
GiveBonus
« on: October 14, 2009, 07:09:29 am »
Hi again.
This time i checked eC help, but i could not find anything.
I need to know the prameters info.


LK

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: GiveBonus
« Reply #1 on: October 14, 2009, 07:17:12 am »
procedure GiveBonus(ID, Bonus: byte);

Parameter Info:
 ID (Byte): ID of the player.
 Bonus (Byte): Type of the bonus to give:
   1 - Predator
   2 - Berserker
   3 - Bulletproof vest
   4 - Grenades
   5 - Cluster grenades

Description:
 Gives the bonus directly to the specified player. No kits are spawned, so this thing always works. You can also give the bonus even
 if the old effect hasn't ended yet (like with pred)
 This procedure isn't documented in the eC manual, the IDs are got experimentally.
 Also note, that you can't give a medkit using this function (afaik), you can instead do negative damage with the DoDamage procedure.

Copied and pasted from soldat devs wiki
Soldat Global Account System: #soldat.sgas @ quakenet

Offline GSx_Major

  • Major
  • *
  • Posts: 97
Re: GiveBonus
« Reply #2 on: October 14, 2009, 07:18:10 am »
Fail! I got beat by 2 seconds >_>
...and headbutt the sucker through your banana suit!