Posts: 75
Threads: 28
Joined: Apr 2009
Reputation:
0
When somebody dies, and if(killerid!=INVALID_PLAYER_ID), he shall spectate his killer.
if(killerid==INVALID_PLAYER_ID) he shall spectate anyone.
How can I do this?
Posts: 75
Threads: 28
Joined: Apr 2009
Reputation:
0
Well, thanks, but what's if(killerid==INVALID_PLAYER_ID)?
Posts: 493
Threads: 39
Joined: Apr 2009
Reputation:
0
It wont spec anyone, what do you want to happen if its invalid id?
Posts: 546
Threads: 22
Joined: Jul 2007
Reputation:
0
that won't check if player is alive. how can one spectate a player that is spectaing something? do another check with a global var like gSpectating[MAX_PLAYERS]
Posts: 48
Threads: 0
Joined: Jun 2009
Reputation:
0
You can check if player is on foot using GetPlayerState.
Posts: 546
Threads: 22
Joined: Jul 2007
Reputation:
0
good idea, saves memory for the server. Umm, is there a state for spectation, too?