On Player Death shows Spawn button
#6

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:
            {
            .....
Reply


Messages In This Thread
On Player Death shows Spawn button - by Stefand - 17.05.2013, 18:09
AW: On Player Death shows Spawn button - by HurtLocker - 17.05.2013, 18:41
Re: On Player Death shows Spawn button - by Stefand - 17.05.2013, 18:53
AW: On Player Death shows Spawn button - by HurtLocker - 17.05.2013, 18:59
Re: On Player Death shows Spawn button - by Stefand - 17.05.2013, 19:06
AW: On Player Death shows Spawn button - by HurtLocker - 17.05.2013, 19:18
Re: On Player Death shows Spawn button - by Stefand - 17.05.2013, 19:27
AW: On Player Death shows Spawn button - by HurtLocker - 17.05.2013, 19:29
Re: On Player Death shows Spawn button - by Stefand - 17.05.2013, 19:42
AW: On Player Death shows Spawn button - by HurtLocker - 17.05.2013, 20:08

Forum Jump:


Users browsing this thread: 1 Guest(s)