SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 08/04/2020, 05:50 PM   #1
Ertouq
Huge Clucker
 
Ertouq's Avatar
 
Join Date: Jul 2014
Posts: 233
Reputation: 4
Default spectating

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.
Ertouq is offline   Reply With Quote
Old 08/04/2020, 07:49 PM   #2
Symon
Gangsta
 
Symon's Avatar
 
Join Date: Apr 2019
Location: Italy
Posts: 883
Reputation: 85
Default Re: spectating

Probably something like this? (OnPlayerDeath)

pawn Code:
if(IsBeingSpeced[playerid] == 1)
{
    /* -- Loop -- */ if(spectatorid[i] == playerid) PlayerSpectatePlayer(i, playerid);
}
Symon is offline   Reply With Quote
Old 08/04/2020, 08:17 PM   #3
Ertouq
Huge Clucker
 
Ertouq's Avatar
 
Join Date: Jul 2014
Posts: 233
Reputation: 4
Default Re: spectating

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?
Ertouq is offline   Reply With Quote
Old 08/04/2020, 11:22 PM   #4
MissMute
Little Clucker
 
MissMute's Avatar
 
Join Date: Mar 2020
Posts: 48
Reputation: 3
Default Re: spectating

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://forum.sa-mp.com/showthread.php?p=3376297
MissMute is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
spectating Bussyman Scripting Help 2 10/07/2017 10:01 PM
Spectating help +rep! [M.A]Angel[M.A] Scripting Help 4 09/08/2012 11:46 PM
Spectating help [M.A]Angel[M.A] Scripting Help 0 09/08/2012 06:32 PM
Spectating Anzhelov Help Archive 1 18/06/2011 01:52 PM
Spectating... Mikep. Help Archive 1 24/10/2009 01:27 PM


All times are GMT. The time now is 08:33 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.