[FilterScript] Hospital 1.0
#8

Quote:
Originally Posted by Q.I
Посмотреть сообщение
pawn Код:
#include <a_samp>

#define hospor                                                                  0xB8860BAA

new Tempo[MAX_PLAYERS];

new Tempo2[MAX_PLAYERS];

new hospital[MAX_PLAYERS];


forward HospProgresso(playerid);


public OnFilterScriptInit()
{
        print("Hospital by FenixBorn Carregado");
        return 1;
}

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

public OnPlayerSpawn(playerid)
{
    if(hospital[playerid] > 0)
    {
    Tempo2[playerid] = SetTimerEx("HospProgresso", 1000, 1, "i", playerid);
    Tempo[playerid] = 20;
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,2782.7371,-2736.4546,-0.0863);
    SetPlayerCameraPos(playerid,1197.5721,-1325.6716,26.9214);
    SetPlayerCameraLookAt(playerid, 1177.6808,-1324.3663,14.0827);
    TogglePlayerControllable(playerid, 0);
    }
    return 1;
}

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

public HospProgresso(playerid)
{
    new string[64];
    format(string, sizeof(string), "~w~Voce esta sendo ~r~Curado.", Tempo[playerid]);
    GameTextForPlayer(playerid, string, 1500, 3);
    hospital[playerid] = 0;

    if(Tempo[playerid] == 0)
    {
    KillTimer(Tempo2[playerid]);
    SpawnPlayer(playerid);
    SetPlayerHealth(playerid, 100.00);
    GivePlayerMoney(playerid, -500);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SendClientMessage(playerid, hospor,"{FF0101}Vocк ja estб melhor. {FFFFFF}os custos ficaram em {FF0101}500$ .");
    }
    Tempo[playerid]--;
}
peguei seu cod e fiz isso ae testado e aprovado acabei de testar aqui.
Obrigado..
Reply


Messages In This Thread
[FilterScript] Hospital 1.0 - by FenixBorn - 02.09.2012, 20:19
Re: [FilterScript] Hospital 1.0 - by GhosT_[] - 02.09.2012, 20:32
Re: [FilterScript] Hospital 1.0 - by Douglas_prt - 02.09.2012, 20:32
Re: [FilterScript] Hospital 1.0 - by Kuddy - 02.09.2012, 20:37
Re: [FilterScript] Hospital 1.0 - by FenixBorn - 02.09.2012, 20:38
Re: [FilterScript] Hospital 1.0 - by Douglas_prt - 02.09.2012, 20:39
Re: [FilterScript] Hospital 1.0 - by Q.I - 02.09.2012, 20:43
Re: [FilterScript] Hospital 1.0 - by FenixBorn - 02.09.2012, 20:49
Re: [FilterScript] Hospital 1.0 - by paulor - 02.09.2012, 21:07
Re: [FilterScript] Hospital 1.0 - by FenixBorn - 02.09.2012, 21:24

Forum Jump:


Users browsing this thread: 3 Guest(s)