View Full Version : [FilterScript] [FS]Player On Hospital(POH) By: Splitx
splitx
24/02/2008, 10:46 AM
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.
http://files.uploadffs.com/66019662b03b18ed5556e730fccd4b1f_sa-mp-067.png
http://files.uploadffs.com/79c14c838aca49ee81576e57ae63f05f_sa-mp-068.png
DownLoad. V. 0.1
.pwn (http://up.delux-host.com/?f=826)
.amx (http://up.delux-host.com/?f=827)
PasteBin (http://splitxs.pastebin.ca/916161)
DownLoad. V. 0.2 (With Count Down From 60 Sec to 0 Then Spawn..)
PasteBin (http://splitxs.pastebin.ca/916211)
.pwn (http://up.delux-host.com/?f=828)
.amx (http://up.delux-host.com/?f=829)
Next Version..Plz Give ideas xD
Mirrors Allowed
Keep My Credits Thx..
Freestyler
24/02/2008, 10:49 AM
Whoa, nice ;)
splitx
24/02/2008, 10:51 AM
Thx xD
snipe69
24/02/2008, 10:51 AM
nice script men 8)
Rks25
24/02/2008, 10:52 AM
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
Sandra18[NL]
24/02/2008, 11:01 AM
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<<< (http://forum.sa-mp.com/index.php?topic=44414.msg325737#msg325737) has a countdown
splitx
24/02/2008, 11:02 AM
It is possible but i dont know how.... but i will try to learn or i know eacyer way but longer..
and thx ppl :D
Rks25
24/02/2008, 11:05 AM
Sandra or anyone else, can you combine the timer of
http://forum.sa-mp.com/index.php?topic=44414.msg325737#msg325737
With this fs, cuz that would be better.
Rksss
Sandra18[NL]
24/02/2008, 11:15 AM
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]--;
}
splitx
24/02/2008, 11:31 AM
Hmmm....
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?
snipe69
24/02/2008, 11:34 AM
Hmmm....
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
splitx
24/02/2008, 11:38 AM
Updated thx snipe
Sandra18[NL]
24/02/2008, 11:39 AM
Ps Sandra i will give u credits for count if u want?
Sure, good luck with it ;)
P.s. Sorry, i forgot a ;
Freestyler
24/02/2008, 11:40 AM
now it's better ^^
splitx
24/02/2008, 11:43 AM
Thx :P
Ps np sandra
Maniek
24/02/2008, 01:53 PM
J heve question. What programme J create pos kamera?
splitx
24/02/2008, 02:14 PM
A debug Filter script search for it
Numhaken
24/02/2008, 03:11 PM
Nice one! Want a mirror?
splitx
24/02/2008, 03:14 PM
Nice one! Want a mirror?
Yes Read the first post xD MIRRORS Allowed xD
P1nd3r
24/02/2008, 03:37 PM
Nice one Splitx :)
splitx
24/02/2008, 03:55 PM
Thx Pinder xD
dacads
24/02/2008, 03:59 PM
This is pretty handy for RP
splitx
24/02/2008, 04:01 PM
I know ;)
GaMeouT
28/02/2008, 10:44 PM
HOW TO PUT THE PLAYER TO STAY PUT UP TO THE MINUTE end?
oOPacsterOo
28/02/2008, 11:50 PM
Nice FilterScript but I found a bug, on your second death the timer is going at about 30 seconds left and you spawn. I think its because the second death bypasses the rest of the timer for some reason, if you could fix this in next update it would be great.
Numhaken
29/02/2008, 12:23 AM
Mirror -
http://www.crazyhost.info/download.php?file=738Poh.rar
GaMeouT
29/02/2008, 09:52 AM
HOW TO PUT THE PLAYER TO STAY PUT UP TO THE MINUTE end?
splitx
29/02/2008, 12:58 PM
Down loade that 1 with count its mutch better :P
diamondo25
29/02/2008, 01:29 PM
Tip, SplitX:
Let the player see the nearest hospital, with IsPlayerInCube or IsPlayerInArea or something ;)
splitx
29/02/2008, 02:58 PM
Nice Idea! i will look at it
Puffmac
29/02/2008, 03:15 PM
for the counter...
forward CountTimer();
new Count[MAX_PLAYERS];
public OnGameModeInit()
{
SetTimer("CountTimer",1000,1);
}
public CountTimer()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Count[i] > 0)
{
new str[256];
format(str,sizeof(str),"~y~You will respawn in~n~~b~%d ~g~seconds",Count[i]);
GameTextForPlayer(i,str,3000,3);
Count[i] --;
}
}
}
public OnPlayerDeath(playerid,killerid,reason)
{
Count[playerid] = 60; // Change it to the number the counter starts at
}
Something like that would do it :).
Zh3r0
14/03/2008, 05:42 PM
:)Nice Man That Very Nice 8)Thx a lot i really needed :mrgreen: Cya :roll:
[IB]Scorcher
15/03/2008, 01:27 PM
Thanks alot
negima
15/03/2008, 01:34 PM
Ho? Error Map -*-
GaMeouT
15/03/2008, 06:31 PM
I want the player freeze in the 60 seconds..
Howw?
Rks25
15/03/2008, 08:14 PM
TogglePlayerControllable??
Jaztek_Hodzic
07/04/2009, 07:58 AM
I love you?
haha this is what ive been looking for
Oxside
07/04/2009, 08:58 AM
Not very diffucult to make, timer + GameTextForPlayer + SetPlayerFacing Angle!
But nice i was looking for this, i was lzay to make one by my self :D
DMSOrg
10/04/2009, 04:25 PM
This is nice! I'm glad this isn't just some dumb "Respawn at hospital when u die omgz im a leet hax0r and skriptoor cuz me make this" script. It's actually... functional! Good job!
kukars22
12/04/2009, 07:39 PM
Ehh man.. I have seen this in IM. You have stoled it :s
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.