22.08.2011, 18:14
(
Last edited by Dragony92; 24/08/2011 at 08:40 AM.
)
You didn't define color Grey, spectatorid, specid....than string in command spec and you didn't comment two lines...
I think that's all I didn't test it...
Edit: And also Float:
new Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS], Float:SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
and argument 2
Edit: I have test it, it works but dont want to re-spec user on player exit or enter vehicle....
I think that's all I didn't test it...
Edit: And also Float:
new Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS], Float:SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
and argument 2
Code:
public OnPlayerDisconnect(playerid, reason) { if(IsBeingSpeced[playerid] == 1)//If the player being spectated, disconnects, then turn off the spec mode for the spectator. { TogglePlayerSpectating(spectatorid,0);// This justifies what's above, if it's not off then you'll be either spectating your connect screen, or somewhere in blueberry (I don't know why) } return 1; }