Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: LORD KILLA on October 14, 2009, 07:09:29 am

Title: GiveBonus
Post by: LORD KILLA 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
Title: Re: GiveBonus
Post by: CurryWurst 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 (http://devs.soldat.pl/wiki/index.php/GiveBonus)
Title: Re: GiveBonus
Post by: GSx_Major on October 14, 2009, 07:18:10 am
Fail! I got beat by 2 seconds >_>