Author Topic: Vest on cap  (Read 1510 times)

0 Members and 1 Guest are viewing this topic.

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Vest on cap
« on: January 01, 2009, 05:44:30 pm »
My first script. Thanks to #soldat.devs guys for helping me out.

Script Name: Vest on cap
Script Description Vest, simple
Author: Niko
Compile Test: Passed
Core Version: 2.6.3
Hosted by: Soldat Central - http://soldatcentral.com/

Full Description:
This script automatically gives a bulletproof vest to anyone who caps. It also shows a message indicating that you won it.

Code: [Select]
procedure OnFlagScore(ID, TeamFlag: byte);

begin
GiveBonus(ID, 3);
DrawText(0,'You won a vest by capping',300,RGB(255,255,255),0.10,0,20);
end;

In game it doesn't say "earnt". It says "won". I was too lazy to make another screenie.



(Size 411 B)
- http://soldatcentral.com/index.php?page=script&f=81 -


** Script hosted by Soldat Central! Please visit the author's script page and Rate this script **

Offline GSx_Major

  • Major
  • *
  • Posts: 97
Re: Vest on cap
« Reply #1 on: January 01, 2009, 11:15:13 pm »
It draws the text to all players...?
...and headbutt the sucker through your banana suit!

Offline Iq Unlimited

  • Flagrunner
  • ****
  • Posts: 864
  • mr. foobar2000
Re: Vest on cap
« Reply #2 on: January 01, 2009, 11:51:58 pm »
Might want to make it
DrawText(ID,'You won a vest by capping',300,RGB(255,255,255),0.10,0,20);

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Vest on cap
« Reply #3 on: January 02, 2009, 12:54:04 am »
Also, I'd suggest using WriteConsole for this, as it won't overwrite the "x Team has Scored" text.

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: Vest on cap
« Reply #4 on: January 02, 2009, 07:18:07 am »
ok I'll make these changes when I have time.

Offline Vyka

  • Major
  • *
  • Posts: 59
Re: Vest on cap
« Reply #5 on: January 02, 2009, 01:01:07 pm »
Code: [Select]
procedure OnFlagScore(ID, TeamFlag: byte);

begin
GiveBonus(ID, 3);
WriteConsole(ID,'You won a vest by capping',$ff0000);
end;

take