Author Topic: I need a little thing for this script !  (Read 733 times)

0 Members and 3 Guests are viewing this topic.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 558
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
I need a little thing for this script !
« on: March 08, 2010, 06:38:51 pm »
Code: [Select]
procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);
  begin
    if Killer = Victim then
      begin
         writeConsole(Killer, 'you cant kill yourself for money you silly bear', RGB(0, 255, 255));
      end else
      begin
        money[Killer] := money[Killer]+100;
        writeConsole(Killer, 'You just got $100 your money is now: $' + inttostr(money[Killer]), RGB(0, 255, 255));
      end;
  end;
can u put a onflagscore that give 500$
« Last Edit: March 08, 2010, 06:47:11 pm by mich1103 »

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: I need a little thing for this script !
« Reply #1 on: March 09, 2010, 08:05:58 am »
yes, u can

see the OnFlagScore()'s procedure and increment the variable money[1..32] (array with some related to player's ID)

please try to understand how to build scripts, see method syntax ... is very easy to understand, really!

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: I need a little thing for this script !
« Reply #2 on: March 09, 2010, 11:02:23 am »
Code: (pascal) [Select]
procedure OnFlagScore(ID, TeamFlag: byte)
begin
money[ID] := money[ID]+500;
writeConsole(ID, 'You just got $500 for capping. Your money is now: $' + inttostr(money[ID]), RGB(0, 255, 255));
end;
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 558
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: I need a little thing for this script !
« Reply #3 on: March 09, 2010, 04:01:40 pm »
Error



10-03-09 15:59:52 
  • Weapon_shop -> [Hint] (42:10): Variable 'Result' never used

10-03-09 15:59:52 
  • Weapon_shop -> [Error] (70:1): 'BEGIN' expected

10-03-09 15:59:52 
  • Compilation Failed.

10-03-09 15:59:52 Shutting down server...
10-03-09 15:59:52 Shutting down admin server...
10-03-09 15:59:52 Shutting down ScriptCore...

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: I need a little thing for this script !
« Reply #4 on: March 09, 2010, 05:46:57 pm »
Send me the whole script on pm.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.