Author Topic: vest and health on 1.3.1  (Read 1094 times)

0 Members and 1 Guest are viewing this topic.

Offline Nubism

  • Major
  • *
  • Posts: 58
vest and health on 1.3.1
« on: August 03, 2008, 05:19:25 pm »
i saw a server somewhere on 1.3.1 but dno which one
and one that server u can make !vest and get a vest
and !Health and u got full life, anyone got a script for it
or knows the "spawn command" (hope its right)  for vest and health?
has to be possible on 1.3.1 not on any newer version...
if anyone knows the "spawncommands" or whatever its called
than i'll try to make the scripts alone but dont even got the start for it so -,-
thanks for every help

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: vest and health on 1.3.1
« Reply #1 on: August 04, 2008, 03:37:43 am »
well in 1.4.2 it would be

Code: [Select]
procedure OnPlayerSpeak(ID: Byte; Text: string)
begin
  if (Text = !health) then
  begin
    SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),16);
  end
  if (Text = !vest) then
  begin
    SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),19);
  end
end;
what this does is when someone types !health he gets full health, and if someone types !vest he gets a vest.
this should work on 99%
but in 1.3.1 versions... i dont know... i think its the same though

Offline PorN

  • Major
  • *
  • Posts: 55
Re: vest and health on 1.3.1
« Reply #2 on: August 07, 2008, 05:13:46 am »
well in 1.4.2 it would be

Code: [Select]
procedure OnPlayerSpeak(ID: Byte; Text: string)
begin
  if (Text = !health) then
  begin
    SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),16);
  end
  if (Text = !vest) then
  begin
    SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),19);
  end
end;
what this does is when someone types !health he gets full health, and if someone types !vest he gets a vest.
this should work on 99%
but in 1.3.1 versions... i dont know... i think its the same though

spawnobject dont work on 1.3.1 if im not wrong

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: vest and health on 1.3.1
« Reply #3 on: August 07, 2008, 06:57:36 am »
then use GiveBonus(ID,16) and GiveBonus(ID,19) :)

Offline PorN

  • Major
  • *
  • Posts: 55
Re: vest and health on 1.3.1
« Reply #4 on: August 08, 2008, 07:13:20 am »
tested SpawnObject and GiveBonus on soldatserver 2.5.2
and the result is that both dont work.
so are you sure that you saw it on 1.3.1?...


Offline Nubism

  • Major
  • *
  • Posts: 58
Re: vest and health on 1.3.1
« Reply #5 on: August 11, 2008, 11:29:24 am »
got the same 2 errors but im pretty sure that i saw it on 1.3.1