Spec Problem
#2

Try this:
pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(AccInfo[i][SpecID] == playerid)
            {
                if(AccInfo[i][SpecType] == ADMIN_SPEC_TYPE_PLAYER)
                {
                    if(i != playerid)
                    {
                        SetPlayerInterior(i, newinteriorid);
                        SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(playerid));
                        PlayerSpectatePlayer(i, playerid, SPECTATE_MODE_NORMAL);
                    }
                }
            }
        }
    }
    return 1;
}
NOTE: Untested
Reply


Messages In This Thread
Spec Problem - by kbalor - 12.09.2012, 06:33
Re: Spec Problem - by clarencecuzz - 12.09.2012, 06:41
Re: Spec Problem - by kbalor - 12.09.2012, 06:48

Forum Jump:


Users browsing this thread: 1 Guest(s)