Hospital System
#1

Hello guys!

Im making some simple hospital system and spectacting stuff is messed up.

Whats wrong here?

And after respawn the animations are not cleared...

pawn Код:
if(PlayerInfo[playerid][Dead] == true)
    {
        TogglePlayerControllable(playerid, 0);
        ApplyAnimation(playerid,"CRACK","crckdeth2",4.0, 1, 0, 0, 0, 1);
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectatePlayer(playerid, playerid);
        SetPlayerInterior(playerid,3);
        new Random = random(sizeof(LigoninesLovos));
        SetPlayerPos(playerid, LigoninesLovos[Random][0], LigoninesLovos[Random][1], LigoninesLovos[Random][2]);
        GameTextForPlayer(playerid,"~w~Gydomas",30000,6);
        SetTimerEx("HospitalHealing",30000,false,"i",playerid);
    }

forward HospitalHealing(playerid);
public HospitalHealing(playerid)
{
    PlayerInfo[playerid][Dead] = false;
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-2647.3794,696.2032,27.9391);
    GameTextForPlayer(playerid,"~w~Pagydytas",3000,6);
    TogglePlayerControllable(playerid,1);
    TogglePlayerSpectating(playerid,0);
    SetCameraBehindPlayer(playerid);
    ClearAnimations(playerid)
    return 1;
}
Reply


Messages In This Thread
Hospital System - by Dziugsas - 23.06.2014, 16:12

Forum Jump:


Users browsing this thread: 1 Guest(s)