Author Topic: request:no suicide  (Read 1002 times)

0 Members and 1 Guest are viewing this topic.

Offline 1221995

  • Soldier
  • **
  • Posts: 206
request:no suicide
« on: October 07, 2007, 10:56:23 am »
Hi. I am wondering if it is possible to make a script that makes so u cant shoot yourself(you can butn it will do no damage). I think this would just be kinda fun cause u could use your own explosions to ricochet(fly around). please post, or leave the script if possible ASAP.

Thanks,
1221995
« Last Edit: October 07, 2007, 11:22:43 am by 1221995 »

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: request:no suicide
« Reply #1 on: October 07, 2007, 11:52:59 am »
Code: [Select]
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer): integer;
begin
  if Shooter = Victim then Result := 0 else Result := Damage;
end;
Note that /kill will no longer work..

Offline 1221995

  • Soldier
  • **
  • Posts: 206
Re: request:no suicide
« Reply #2 on: October 07, 2007, 04:50:31 pm »
ok, tahnks alot DorkeyDear :) ;) one maore problem. it no work. it just loads the old scripts. hers my folder setup. HELP PLEASE!!! [pigtail]
                                  >Default>Default pas files
soldatserver>scrpits>
                                  >Nosuicide>nosuicide.pas, includes.txt
Includes.txt has:
nosuicide.pas
in it and thats all. Help? [medikit]
please respond

1221995
« Last Edit: October 07, 2007, 08:23:59 pm by 1221995 »

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: request:no suicide
« Reply #3 on: October 08, 2007, 05:10:07 pm »
no error or crash? it just has no effect on server?
what other scripts u got on the server? one might try to set the damage back to what it was...

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: request:no suicide
« Reply #4 on: October 08, 2007, 08:28:13 pm »
Read the damn readme.txt in /scripts/ folder.... It clearly says at the top

  NOTE: DO NOT PLACE *.PAS FILES IN THIS DIRECTORY! ONLY IN SUB-FOLDERS!

Which you have done.

Offline 1221995

  • Soldier
  • **
  • Posts: 206
Re: request:no suicide
« Reply #5 on: October 09, 2007, 03:01:33 pm »
no i havnt. its in a folder "nosuicide" In scripts folder i have default, nosuicide (which this script is in) and README.txt. It is in a sub folder, and i read readme.txt 6 times, and it still no work after i redo everything like... 5oo times.

EDIT: I tried it 1 more time, this time i named the .pas file the EXACT SAME THING as the folder, and instead of includes.txt and damage.txt, i named them includes and damage.

YAAAY!!! ;D
« Last Edit: October 09, 2007, 03:05:32 pm by 1221995 »