Spectating the player who killed you on death
#2

Well you've got almost everything right except one thing, if you want it to start at 5 and finish at 0, then you need to set the PVar to 5 in the first place!

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    TogglePlayerSpectating(playerid, 1);
    PlayerSpectatePlayer(playerid, killerid);
    SetPVarInt(playerid,"rCount",5); // See here, set it to 5 before the countdown starts
    spectateTimer[playerid] = SetTimerEx("respawnCounter", 1000, true, "d" , playerid);
    return 1;
}
That should fix the issue
Reply


Messages In This Thread
Spectating the player who killed you on death - by Haydz - 25.10.2010, 09:38
Re: Spectating the player who killed you on death - by JaTochNietDan - 25.10.2010, 09:43
Re: Spectating the player who killed you on death - by Haydz - 25.10.2010, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)