06.10.2013, 13:21
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;
}