SA-MP Hospital Spawn BUG - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SA-MP Hospital Spawn BUG (
/showthread.php?tid=454084)
SA-MP Hospital Spawn BUG -
San1 - 27.07.2013
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;
}