[Tutorial] How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support]
#11

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

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;
}
Edit: I have test it, it works but dont want to re-spec user on player exit or enter vehicle....
Reply


Messages In This Thread
How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Tee - 12.08.2011, 09:26
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Darnell - 12.08.2011, 09:42
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by HyperZ - 12.08.2011, 09:43
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Ironboy - 12.08.2011, 09:54
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by mrsamp - 13.08.2011, 19:31
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Tee - 21.08.2011, 02:22
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Davz*|*Criss - 21.08.2011, 13:08
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by [MWR]Blood - 21.08.2011, 15:42
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Tee - 21.08.2011, 18:43
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Roperr - 22.08.2011, 09:09
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Dragony92 - 22.08.2011, 18:14
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Tee - 02.09.2011, 00:42
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by wouter0100 - 02.09.2011, 08:55
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by HotPlayer - 02.09.2011, 09:00
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Tee - 07.09.2011, 13:05
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Luis- - 07.09.2011, 21:23
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by kiloman3 - 19.09.2011, 12:00
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by random123 - 05.10.2011, 20:03
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Surferdude - 06.10.2011, 02:28
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by wups - 07.10.2011, 10:45
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by jhn - 17.10.2011, 15:31
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Malinark - 02.11.2011, 20:37
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Ћilvėnas - 04.11.2011, 16:16
Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - by Tee - 20.11.2011, 06:09

Forum Jump:


Users browsing this thread: 4 Guest(s)