[Ajuda]Sistema
#5

Quote:
Originally Posted by Ч iReadyTK є
Посмотреть сообщение
Tenta assim:

pawn Код:
new bool:SpawnHospital[ MAX_PLAYERS ];

public OnPlayerDeath(playerid, killerid, reason)
{
    SpawnHospital[ playerid ] = true;
    return 1;
}

public OnPlayerSpawn( playerid )
{
    if( SpawnHospital[ playerid ] == true )
    {
        SetPlayerPos(playerid, x, y, z);
        SetPlayerCameraPos(playerid, x, y, z);
        SetPlayerCameraLookAt(playerid, x, y, z);
        SetTimerEx("LiberarHospital", 10000, false, "i", playerid);
    }
    return 1;
}

public LiberarHospital(playerid)
{
    SpawnHospital[ playerid ] = false;
    SetPlayerInterior(playerid, 0);
    SpawnPlayer(playerid);
    SetPlayerPos(playerid, x, y, z);
    return 1;
}
exatamente o que eu queria... valeu =)
Reply


Messages In This Thread
[Ajuda]Sistema - by DrTHE - 26.12.2011, 12:39
Re: [Ajuda]Sistema - by Lуs - 26.12.2011, 12:52
Re: [Ajuda]Sistema - by DrTHE - 26.12.2011, 12:56
Re: [Ajuda]Sistema - by Ч iReadyTK є - 26.12.2011, 13:06
Re: [Ajuda]Sistema - by DrTHE - 26.12.2011, 13:15
Re: [Ajuda]Sistema - by Ч iReadyTK є - 26.12.2011, 13:22
Re: [Ajuda]Sistema - by DrTHE - 26.12.2011, 13:22
Re: [Ajuda]Sistema - by Lуs - 26.12.2011, 13:54

Forum Jump:


Users browsing this thread: 5 Guest(s)