spectating
#1

Hello,

Is there any way to do that if the spectator is specteing Karl and Karl dies, will he be automatically spectee without using the command again? I know it's with timers, but I don't know the way. Thank you.
Reply
#2

Probably something like this? (OnPlayerDeath)

pawn Code:
if(IsBeingSpeced[playerid] == 1)
{
    /* -- Loop -- */ if(spectatorid[i] == playerid) PlayerSpectatePlayer(i, playerid);
}
Reply
#3

Quote:
Originally Posted by Symon
View Post
Probably something like this? (OnPlayerDeath)

pawn Code:
if(IsBeingSpeced[playerid] == 1)
{
    /* -- Loop -- */ if(spectatorid[i] == playerid) PlayerSpectatePlayer(i, playerid);
}
Hello, I didn't understand much, can you explain more specific?

Do I have to put the spectator variable to the one who uses the spec?
Reply
#4

Quote:
Originally Posted by Ertouq
View Post
Hello,

Is there any way to do that if the spectator is specteing Karl and Karl dies, will he be automatically spectee without using the command again? I know it's with timers, but I don't know the way. Thank you.
https://sampforum.blast.hk/showthread.php?pid=3376297#pid3376297
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)