27.07.2013, 17:37
When Players Die they are spawned at Las Venturas instead of the Hospital Still..
pawn Код:
public OnPlayerSpawn(playerid)
{
SpawnChar(playerid);
return 1;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[playerid][pDeaths] += 1;
PlayerInfo[killerid][pKills] += 1;
Dead[playerid] = 1;
return 1;
}
pawn Код:
stock SpawnChar(playerid)
{
if(Dead[playerid] == 1)
{
SetPlayerPos(playerid,1177.0392,-1323.2452,14.0510);
SetPlayerFacingAngle(playerid, -90);
SendClientMessage(playerid, COLOR_WHITE, "You have been rushed to All Saints and fully recovered but have lost some memory(30 Minutes).");
SendClientMessage(playerid, COLOR_RED, "Medical Fees:{FFFFFF}$2000.");
GivePlayerCash(playerid, -2000);
}
return 1;
}