Pawn Compiler Library Crash
#6

pawn Код:
new dead[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    dead[playerid] = 0;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(dead[playerid] == 1)
    {
        SetPlayerPos(playerid, -221.059051,1408.984008,27.773437); //hospital pos
        SetPlayerInterior(playerid,18);
        ApplyAnimation(playerid,"MEDIC","CPR",1.1,1,0,0,1,30000,1);//animation
        SetTimerEx("respawned",60000,false, "i", playerid);//1 minute in the hospital
    }
    else
    {
        SetPlayerPos(playerid, 2034.1534,-1402.6010,17.2946); //your spawn locations
        return 1;
    }
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    dead[playerid] = 1;
    return 1;//ensure return 1; is in line like how i have it
}

forward respawned(playerid); //anywhere
public respawned(playerid) //anywhere
{
    SetPlayerPos(playerid, 2034.1534,-1402.6010,17.2946); //your spawn location
    SendClientMessage(playerid,-1,"Recovered!");
    dead[playerid] = 0;
    return 1;
}
Reply


Messages In This Thread
Pawn Compiler Library Crash - by Ben_Hatfield - 21.08.2012, 22:52
Re: Pawn Compiler Library Crash - by Ben_Hatfield - 22.08.2012, 01:29
Re: Pawn Compiler Library Crash - by Kirollos - 22.08.2012, 02:10
Re: Pawn Compiler Library Crash - by Ben_Hatfield - 22.08.2012, 03:37
Re: Pawn Compiler Library Crash - by Calgon - 22.08.2012, 05:27
Re: Pawn Compiler Library Crash - by clarencecuzz - 22.08.2012, 06:55
Re: Pawn Compiler Library Crash - by Ben_Hatfield - 22.08.2012, 08:34
Re: Pawn Compiler Library Crash - by RayDcosta - 12.10.2013, 11:51
Re: Pawn Compiler Library Crash - by Astralis - 12.10.2013, 11:54
Re: Pawn Compiler Library Crash - by Zex Tan - 12.10.2013, 11:56

Forum Jump:


Users browsing this thread: 1 Guest(s)