Author Topic: Extra points for killing flagger/with flagger etc..  (Read 1257 times)

0 Members and 1 Guest are viewing this topic.

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Extra points for killing flagger/with flagger etc..
« on: December 20, 2007, 12:30:53 pm »
hi! i search script: Extra points for killing flagger etc. Please help me. :)



Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Extra points for killing flagger/with flagger etc..
« Reply #1 on: December 20, 2007, 01:40:22 pm »
Here is:

Quote
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin

 if GetPlayerStat(Victim, 'Flagger') = True then // Is victim flagger?
  SetScore(Killer,GetPlayerStat(Killer,'Kills')+5); // This will add 5 points to killer's score

end;
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: Extra points for killing flagger/with flagger etc..
« Reply #2 on: December 20, 2007, 04:37:59 pm »
ok script are good :) but id like to add text e.q. : 5 Extra points for Killing flagger!
how?



Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Extra points for killing flagger/with flagger etc..
« Reply #3 on: December 20, 2007, 05:16:05 pm »
I think you could do that. Easy.

Here is:

Quote
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin

 if GetPlayerStat(Victim, 'Flagger') = True then begin // Is victim flagger?
  SetScore(Killer,GetPlayerStat(Killer,'Kills')+5); // This will add 5 points to killer's score
  WriteConsole(Killer,'You Gained 5 Extra Points for Killing Flagger',$EE81FAA1);
 end;


end;
« Last Edit: December 20, 2007, 05:19:05 pm by xmRipper »
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: Extra points for killing flagger/with flagger etc..
« Reply #4 on: December 20, 2007, 05:24:23 pm »
thx :) script is working :) but i search script: Extra Points For killing AS flagger? :)

What i must change in this script?

Quote
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin

 if GetPlayerStat(Victim, 'Flagger') = True then // Is victim flagger?
  SetScore(Killer,GetPlayerStat(Killer,'Kills')+5); // This will add 5 points to killer's score

end;
« Last Edit: December 20, 2007, 05:44:32 pm by Szewczuq »



Offline KwS Pall

  • Major(1)
  • Posts: 49
  • I'm going to write Tibia for Soldat
Re: Extra points for killing flagger/with flagger etc..
« Reply #5 on: December 21, 2007, 01:57:02 am »
Code: [Select]
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin
 if GetPlayerStat(Victim, 'Flagger') = True then begin // Is victim flagger?
  SetScore(Killer,GetPlayerStat(Killer,'Kills')+5); // This will add 5 points to killer's score
  WriteConsole(Killer,'You Gained 5 Extra Points for Killing Flagger',$EE81FAA1);
 end;
if GetPlayerStat(Killer, 'Flagger') = True then // Is Killer flagger?
  SetScore(Killer,GetPlayerStat(Killer,'Kills')+3); // This will add 3 points to killer's score
  WriteConsole(Killer,'You Gained 3 Extra Points for Killing as a Flagger',$EE81FAA1);
 end;
end;

maybe sth like this?
I'm going to write Tibia for Soldat

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: Extra points for killing flagger/with flagger etc..
« Reply #6 on: December 21, 2007, 05:52:41 am »
sorry but this script is not working :( { Shut Down Server}



Offline KwS Pall

  • Major(1)
  • Posts: 49
  • I'm going to write Tibia for Soldat
Re: Extra points for killing flagger/with flagger etc..
« Reply #7 on: December 21, 2007, 10:12:49 am »
Code: [Select]
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin
if GetPlayerStat(Victim, 'Flagger') = True then begin // Is victim flagger?
  SetScore(Killer,GetPlayerStat(Killer,'Kills')+5); // This will add 5 points to killer's score
  WriteConsole(Killer,'You Gained 5 Extra Points for Killing Flagger',$EE81FAA1);
end;
if GetPlayerStat(Killer, 'Flagger') = True then begin // Is Killer flagger?
  SetScore(Killer,GetPlayerStat(Killer,'Kills')+3); // This will add 3 points to killer's score
  WriteConsole(Killer,'You Gained 3 Extra Points for Killing as a Flagger',$EE81FAA1);
end;
end;
do you can run ss in sth like dos?
if the server crash down you'll see what's went wrong...
I'm going to write Tibia for Soldat

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: Extra points for killing flagger/with flagger etc..
« Reply #8 on: December 21, 2007, 10:34:30 am »
script is working thx! :)