Death Bug
#1

I added a new FS to my server. HeadShot FS It is working way too fine but when we kill a person he dies, but doesn't respawn and still able to chat, rob and walk. Not only by HS but if we use /kill, we are still not respawning, and person is moving with 0 health :/

EDIT:- The player doesn't respawn until an admin uses /spawn command!
Reply
#2

Post the code from the filterscript and the gamemode. OnPlayerDeath and OnPlayerTakeDamage.
Reply
#3

Use SpawnPlayer under OnPlayerDeath
Reply
#4

I dont have OnplayerDeath! on mah fs! Should i add that!
Reply
#5

Yes.

https://sampwiki.blast.hk/wiki/OnPlayerDeath

That is called when a player dies. Put your code of after death here. If nothing is written here, obviously, nothing will happen.
Reply
#6

You mean put the code of afterdeath on Gm in Fs??
Reply
#7

no, just put

Код:
public OnPlayerDeath ( playerid, killerid, reason )
{
    return 1;
}
You will be spawned automatically, not needed to add SpawnPlayer(playerid) tho.
Reply
#8

Still player doesn't spawns sometimes after being killed! We have to use /spawn command:/
Reply
#9

Did you tried adding SpawnPlayer inside OnPlayerDeath as I said above?
Reply
#10

Quote:
Originally Posted by Exhibit
Посмотреть сообщение
Post the code from the filterscript and the gamemode. OnPlayerDeath and OnPlayerTakeDamage.
Nobody can help you unless you post the code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)