17.05.2013, 19:18
(
Last edited by HurtLocker; 17/05/2013 at 08:07 PM.
)
pawn Code:
public OnPlayerSpawn(playerid)
{
if(JustDied[playerid]>0)
{
FadeColorForPlayer(playerid,255,0,0,255,255,0,0,0,25,0);
switch(JustDiedCase[playerid])
{
case 1:
{
SendClientMessage(playerid, COLOR_ORANGE, ". : : All Saints General Hospital : : .");
SendClientMessage(playerid, SERVERCOLOR, "You have been beaten unconsious!");
SendClientMessage(playerid, SERVERCOLOR, "You are now in the All Saints General Hospital to rest!");
Player[playerid][Hospitalized] = 300;
SetPlayerPos(playerid, --198.6134,-1790.6299,675.7859);
SetPlayerFacingAngle(playerid, 351.7826);
SetPlayerSkin(playerid, 62);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 3);
}
case 2:
{
SendClientMessage(playerid, COLOR_ORANGE, ". : : All Saints General Hospital : : .");
SendClientMessage(playerid, SERVERCOLOR, "You have been in flames!");
SendClientMessage(playerid, SERVERCOLOR, "Docters are curing your burn wounds!");
SendClientMessage(playerid, SERVERCOLOR, "You are now in the All Saints General Hospital to rest!");
Player[playerid][Hospitalized] = 300;
SetPlayerPos(playerid, -201.6592,-1788.9675,675.7859);
SetPlayerFacingAngle(playerid, 88.725);
SetPlayerSkin(playerid, 62);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 3);
}
case 3:
{
.....