Hospital Spawn On Death Help :S - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Hospital Spawn On Death Help :S (
/showthread.php?tid=70843)
Hospital Spawn On Death Help :S -
Jaztek_Hodzic - 28.03.2009
hey guys i added spawn at hospital cmd in pawno, it works but not for factions,
how can i do this?
thanks,
Re: Hospital Spawn On Death Help :S -
56avenue - 28.03.2009
What?
Re: Hospital Spawn On Death Help :S -
Jaztek_Hodzic - 28.03.2009
wen u die spawn at hospital,
and dont reply with the hospital spawn fs coz itried it dont work right,
Re: Hospital Spawn On Death Help :S -
farse - 28.03.2009
new spital[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
if(spital[playerid] ==1)
{
SetPlayerPos(playerid,X,y,z);//x,y,z of spital
spital[playerid]=0;
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
spital[playerid] =1;
return 1;
}
Re: Hospital Spawn On Death Help :S -
Jaztek_Hodzic - 28.03.2009
ok, thats totally weird,
Farse idid your reply and this happened
Код:
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\pawno\include\utils.inc(52) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(1735) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(1890) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(1900) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(1919) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(1929) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(1988) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(1989) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(2088) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(2111) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(2129) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(2500) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(2505) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(2681) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(2716) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(2729) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Owner\Desktop\GTA San Andreas\JaztekRP\gamemodes\JazRP.pwn(2739) : warning 219: local variable "string" shadows a variable at a preceding level
Re: Hospital Spawn On Death Help :S -
MenaceX^ - 28.03.2009
Speak English please.
Go to OnPlayerDeath, when the player dies. Set him at the Hospital.
Re: Hospital Spawn On Death Help :S -
Jaztek_Hodzic - 28.03.2009
yeh i did, but it only happens to civs factions just go to there hq i dont want that.
Re: Hospital Spawn On Death Help :S -
SPFoxy - 28.03.2009
just set the coords at the hospital?
Re: Hospital Spawn On Death Help :S -
chenrose18 - 08.06.2009
They need to make sure that they pick a stable condition of a hospital!
_________________
compression hosiery