==> OnPlayerDeath Help!<==
#1

So I just simply tried to make a script so that when a player dies, he respawns at Fort Carson hospital and loses some money but when I tried it, the player spawns at the hospital but stays there for like 2 seconds and respawns at the place where you spawn when you connect. So could someone help me out, this is how my script looks like:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerPos(playerid , -320.0716 , 1049.2888 , 20.3403);
    GivePlayerMoney(playerid , -500);
    SendClientMessage(playerid , 0x489048FF , "You have been transported to Fort Carson hospital E.R");
    return 1;
}
Reply


Messages In This Thread
==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 13:21
Re: ==> OnPlayerDeath Help!<== - by Konstantinos - 06.10.2013, 13:23
Re: ==> OnPlayerDeath Help!<== - by Matnix - 06.10.2013, 13:37
Re: ==> OnPlayerDeath Help!<== - by Iron3man - 06.10.2013, 13:58
Re: ==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 14:01
Re: ==> OnPlayerDeath Help!<== - by Iron3man - 06.10.2013, 14:05
Re: ==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 14:08
Re: ==> OnPlayerDeath Help!<== - by Iron3man - 06.10.2013, 14:12
Re: ==> OnPlayerDeath Help!<== - by QuaTTrO - 06.10.2013, 14:12
Re: ==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 14:17

Forum Jump:


Users browsing this thread: 1 Guest(s)