SA-MP Forums Archive
[FilterScript] [FS]Player On Hospital(POH) By: Splitx - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]Player On Hospital(POH) By: Splitx (/showthread.php?tid=27470)

Pages: 1 2


[FS]Player On Hospital(POH) By: Splitx - splitx - 24.02.2008

Hi

I Have Made A Player On Hospital(POH) [FS]


Info


V.0.1 This FS Make When You Die You Will Need To Wait 60sec(1min) Before Re Spawn You Will See The Hospital...

Pic.



DownLoad. V. 0.1
.pwn
.amx
PasteBin

DownLoad. V. 0.2 (With Count Down From 60 Sec to 0 Then Spawn..)
PasteBin
.pwn
.amx

Next Version..Plz Give ideas xD

Mirrors Allowed


Keep My Credits Thx..


Re: [FS]Player On Hospital(POH) By: Splitx - Freestyler - 24.02.2008

Whoa, nice


Re: [FS]Player On Hospital(POH) By: Splitx - splitx - 24.02.2008

Thx xD


Re: [FS]Player On Hospital(POH) By: Splitx - snipe69 - 24.02.2008

nice script men


Re: [FS]Player On Hospital(POH) By: Splitx - Rks25 - 24.02.2008

This was what i needed, but splitx , i would love it, if it would have this.
A type of countdown
You will respawn in 60
You will respawn in 59
etc.

Understand, is that possible?

Rksss


Re: [FS]Player On Hospital(POH) By: Splitx - Sandra18[NL] - 24.02.2008

Quote:
Originally Posted by [NL
Rksss ]
This was what i needed, but splitx , i would love it, if it would have this.
A type of countdown
You will respawn in 60
You will respawn in 59
etc.

Understand, is that possible?

Rksss
>>>THIS<<< has a countdown


Re: [FS]Player On Hospital(POH) By: Splitx - splitx - 24.02.2008

It is possible but i dont know how.... but i will try to learn or i know eacyer way but longer..


and thx ppl


Re: [FS]Player On Hospital(POH) By: Splitx - Rks25 - 24.02.2008

Sandra or anyone else, can you combine the timer of
http://forum.sa-mp.com/index.php?top...5737#msg325737
With this fs, cuz that would be better.

Rksss


Re: [FS]Player On Hospital(POH) By: Splitx - Sandra18[NL] - 24.02.2008

Quote:
Originally Posted by Splitx
It is possible but i dont know how....
It's quite easy:

//On top of your script:
Код:
new Count[MAX_PLAYERS];
new CountdownTimer[MAX_PLAYERS];
//OnPlayerDeath
Код:
CountdownTimer[playerid] = SetTimerEx("HospitalCountdown", 1000, 1, "i", playerid);
Count[playerid] = 60;
Код:
forward HospitalCountdown(playerid);
public HospitalCountdown(playerid)
{
  new string[64];
  format(string, sizeof(string), "You will respawn in %d seconds", Count[playerid]);
  GameTextForPlayer(playerid, string, 1500, 3);
  if(Count[playerid] == 0)
  {
    KillTimer(CountdownTimer[playerid]);
    // Player is healed, and ready to spawn
  }
  Count[playerid]--;
}



Re: [FS]Player On Hospital(POH) By: Splitx - splitx - 24.02.2008

Hmmm....

pawn Код:
C:\DOCUME~1\Peter\SKRIVB~1\SA-MPS~1\FILTER~1\poh.pwn(32) : error 001: expected token: ";", but found "public"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
line 32 public OnFilterScriptInit()

MUHAHAAAH GOT it xD

Ps Sandra i will give u credits for count if u want?


Re: [FS]Player On Hospital(POH) By: Splitx - snipe69 - 24.02.2008

Quote:
Originally Posted by Splitx
Hmmm....

pawn Код:
C:\DOCUME~1\Peter\SKRIVB~1\SA-MPS~1\FILTER~1\poh.pwn(32) : error 001: expected token: ";", but found "public"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
line 32 public OnFilterScriptInit()

MUHAHAAAH GOT it xD

Ps Sandra i will give u credits for count if u want?
Код:
forward HospitalCountdown(playerid);
go on top of script


Re: [FS]Player On Hospital(POH) By: Splitx - splitx - 24.02.2008

Updated thx snipe


Re: [FS]Player On Hospital(POH) By: Splitx - Sandra18[NL] - 24.02.2008

Quote:
Originally Posted by Splitx
Ps Sandra i will give u credits for count if u want?
Sure, good luck with it


P.s. Sorry, i forgot a ;


Re: [FS]Player On Hospital(POH) By: Splitx - Freestyler - 24.02.2008

now it's better ^^


Re: [FS]Player On Hospital(POH) By: Splitx - splitx - 24.02.2008

Thx :P

Ps np sandra


Re: [FS]Player On Hospital(POH) By: Splitx - Maniek - 24.02.2008

J heve question. What programme J create pos kamera?


Re: [FS]Player On Hospital(POH) By: Splitx - splitx - 24.02.2008

A debug Filter script search for it


Re: [FS]Player On Hospital(POH) By: Splitx - Numhaken - 24.02.2008

Nice one! Want a mirror?


Re: [FS]Player On Hospital(POH) By: Splitx - splitx - 24.02.2008

Quote:
Originally Posted by Numhaken
Nice one! Want a mirror?
Yes Read the first post xD MIRRORS Allowed xD


Re: [FS]Player On Hospital(POH) By: Splitx - P1nd3r - 24.02.2008

Nice one Splitx