Hospital Spawn On Death Help :S
#1

hey guys i added spawn at hospital cmd in pawno, it works but not for factions,

how can i do this?


thanks,
Reply
#2

What?
Reply
#3

wen u die spawn at hospital,


and dont reply with the hospital spawn fs coz itried it dont work right,
Reply
#4

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;
}
Reply
#5

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
Reply
#6

Speak English please.
Go to OnPlayerDeath, when the player dies. Set him at the Hospital.
Reply
#7

yeh i did, but it only happens to civs factions just go to there hq i dont want that.
Reply
#8

just set the coords at the hospital?
Reply
#9

They need to make sure that they pick a stable condition of a hospital!


_________________
compression hosiery

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)