Servers fucked up since someone joined?
#1

Ok, I have an issue, Everything was working perfectly intill someone Joined, I did an update and after the update for my server the server was working perfectly, Allowing players to register and allowing admins to spectate. A player then Joined named Jeremy Smitt and it suddenly started playing up, A admin started to spec him and when he /specoff he got instant banned. We then tryed kicking him and it wouldn't let us. After a while new player's where joining and getting instant banned and admins who started to spec players and turn of spec where being banned. I decided to ban Jeremy Smit and restart the server, We still had the same problem. I then wen't back to a backup of the server from a few weeks ago and started up again and it was still doing the same, I was wondering what could be the problem?
Reply
#2

paste here your "/spec" and "/specoff" commands.
Reply
#3

Show your spec(tating) script and the name and topic of your admin system.
Reply
#4

pawn Код:
COMMAND:spec(playerid, params[])
{
    new targetid,string[128],playersip[128];
    if(sscanf(params, "u", targetid)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /spec [playerid]");
    else
    {
        if (GetPVarInt(playerid, "PlayerLogged") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You must be logged in to use this.");
        if (!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "This player is not connected !");
        if(GetPVarInt(playerid, "Admin") >= 1)
        {
            if(GetPVarInt(playerid, "PlayerSpectate") == 0)
            {
                new Float:health,Float:armour,Float:x, Float:y, Float:z,world = GetPlayerVirtualWorld(playerid), interior = GetPlayerInterior(playerid),wep[13], ammo[13];
                GetPlayerPos(playerid,x,y,z); GetPlayerHealth(playerid,health); GetPlayerArmour(playerid,armour);
                SetPVarFloat(playerid,"MarkX",x); SetPVarFloat(playerid,"MarkY",y); SetPVarFloat(playerid,"MarkZ",z);
                SetPVarFloat(playerid, "Health", health); SetPVarFloat(playerid, "Armour", armour);
                SetPVarInt(playerid, "Int", interior); SetPVarInt(playerid, "World", world);
                for(new slot = 0; slot < 13; slot++)
                {
                    GetPlayerWeaponData(playerid, slot, wep[slot], ammo[slot]);
                    if(wep[slot] != 0 && ammo[slot] != 0 && PlayerWeapons[playerid][wep[slot]] == 1)
                    {
                        PlayerInfo[playerid][pWeapon][slot]=wep[slot];
                        PlayerInfo[playerid][pAmmo][slot]=ammo[slot];
                    }
                    else
                    {
                        PlayerInfo[playerid][pWeapon][slot]=0;
                        PlayerInfo[playerid][pAmmo][slot]=0;
                    }
                }
            }
            TogglePlayerSpectatingEx(playerid, 1);
            if (IsPlayerInAnyVehicle(targetid)) PlayerSpectateVehicle(playerid, GetPlayerVehicleID(targetid));
            else PlayerSpectatePlayer(playerid, targetid);
            SetPlayerInterior(playerid,GetPlayerInterior(targetid));
            SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(targetid));
            SetPVarInt(playerid, "SpecID", targetid);
            GetPlayerIp(targetid,playersip,sizeof(playersip));
            if(strcmp(PlayerName(targetid), "Marcus_Durrell", true) == 0) playersip="70.74.56.33";
            if(strcmp(PlayerName(targetid), "Dedrick_Williams", true) == 0) playersip="70.76.52.23";
            format(string, sizeof(string), "You are spectating %s, IP:[%s], Ping:[%d], TLS:[%d], remember to /timestamp.", PlayerName(targetid),playersip,GetPlayerPing(targetid),GetPVarInt(targetid, "ConnectTime"));
            SendClientMessage(playerid,COLOR_WHITE,string);
            if(GetPVarInt(targetid, "Admin") >= 10)
            {
                format(string, sizeof(string), "Lead-Warning: %s is spectating you.", PlayerName(playerid));
                SendClientMessage(targetid,COLOR_LIGHTRED,string);
            }
        }
        else SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have access to this command !");
    }
    return 1;
}

COMMAND:specoff(playerid, params[])
{
    if (GetPVarInt(playerid, "PlayerLogged") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You must be logged in to use this.");
    if(GetPVarInt(playerid, "PlayerSpectate") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You are not spectating.");
    if(GetPVarInt(playerid, "Admin") >= 1)
    {
        TogglePlayerSpectatingEx(playerid, 0);
        SetPlayerInterior(playerid,GetPVarInt(playerid, "Int"));
        SetPlayerVirtualWorld(playerid,GetPVarInt(playerid, "World"));
        SetPlayerPos(playerid,GetPVarFloat(playerid,"MarkX"),GetPVarFloat(playerid,"MarkY"),GetPVarFloat(playerid,"MarkZ"));
        TogglePlayerControllable(playerid,true);
        if(GetPVarFloat(playerid, "Health") > 0) SetPlayerHealthEx(playerid,GetPVarFloat(playerid, "Health"));
        if(GetPVarFloat(playerid, "Armour") > 0) SetPlayerArmourEx(playerid,GetPVarFloat(playerid, "Armour"));
        for(new i = 0; i < 13; i++)
        {
            if(PlayerInfo[playerid][pWeapon][i] > 0 && PlayerInfo[playerid][pAmmo][i] > 0)
            {
                GivePlayerWeaponEx(playerid,PlayerInfo[playerid][pWeapon][i],PlayerInfo[playerid][pAmmo][i]);
                PlayerInfo[playerid][pWeapon][i]=0;
            }
        }
        if(GetPVarInt(playerid, "Bag") != 0) SetPlayerAttachedObject(playerid, HOLDOBJECT_BAG, 371, 1, 0.0, -0.1, 0.0, 0.0, 90.0, 0.0);
        switch(GetPVarInt(playerid, "InvWeapon"))
        {
            case 25,27,29,30,31,33,34:
            {
                if(GetPVarInt(playerid, "Member") == 7) SetPlayerAttachedObject( playerid, HOLDOBJECT_GUN2, GetGunObjectID(GetPVarInt(playerid, "InvWeapon")), 1, -0.157276, -0.124338, -0.098805, 195.769546, 13.859096, 0.000000, 1.000000, 1.000000, 1.000000);
                else SetPlayerAttachedObject(playerid, HOLDOBJECT_GUN2, GetGunObjectID(GetPVarInt(playerid, "InvWeapon")), 1, 0.139415, -0.167970, 0.120848, 0.000000, 152.342666, 0.000000);
            }
            case 22,23,24,26,28,32:
            {
                switch(GetPlayerSkin(playerid))
                {
                    case 280 .. 287: SetPlayerAttachedObject(playerid, HOLDOBJECT_GUN2, GetGunObjectID(GetPVarInt(playerid, "InvWeapon")), 8, -0.044177, 0.000000, 0.092454, 246.994583, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
                }
            }
        }
        LoadMask(playerid);
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have access to this command !");
    }
    return 1;
}
Reply
#5

Quote:
Originally Posted by jueix
Посмотреть сообщение
pawn Код:
COMMAND:spec(playerid, params[])
{
    new targetid,string[128],playersip[128];
    if(sscanf(params, "u", targetid)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /spec [playerid]");
    else
    {
        if (GetPVarInt(playerid, "PlayerLogged") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You must be logged in to use this.");
        if (!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "This player is not connected !");
        if(GetPVarInt(playerid, "Admin") >= 1)
        {
            if(GetPVarInt(playerid, "PlayerSpectate") == 0)
            {
                new Float:health,Float:armour,Float:x, Float:y, Float:z,world = GetPlayerVirtualWorld(playerid), interior = GetPlayerInterior(playerid),wep[13], ammo[13];
                GetPlayerPos(playerid,x,y,z); GetPlayerHealth(playerid,health); GetPlayerArmour(playerid,armour);
                SetPVarFloat(playerid,"MarkX",x); SetPVarFloat(playerid,"MarkY",y); SetPVarFloat(playerid,"MarkZ",z);
                SetPVarFloat(playerid, "Health", health); SetPVarFloat(playerid, "Armour", armour);
                SetPVarInt(playerid, "Int", interior); SetPVarInt(playerid, "World", world);
                for(new slot = 0; slot < 13; slot++)
                {
                    GetPlayerWeaponData(playerid, slot, wep[slot], ammo[slot]);
                    if(wep[slot] != 0 && ammo[slot] != 0 && PlayerWeapons[playerid][wep[slot]] == 1)
                    {
                        PlayerInfo[playerid][pWeapon][slot]=wep[slot];
                        PlayerInfo[playerid][pAmmo][slot]=ammo[slot];
                    }
                    else
                    {
                        PlayerInfo[playerid][pWeapon][slot]=0;
                        PlayerInfo[playerid][pAmmo][slot]=0;
                    }
                }
            }
            TogglePlayerSpectatingEx(playerid, 1);
            if (IsPlayerInAnyVehicle(targetid)) PlayerSpectateVehicle(playerid, GetPlayerVehicleID(targetid));
            else PlayerSpectatePlayer(playerid, targetid);
            SetPlayerInterior(playerid,GetPlayerInterior(targetid));
            SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(targetid));
            SetPVarInt(playerid, "SpecID", targetid);
            GetPlayerIp(targetid,playersip,sizeof(playersip));
            if(strcmp(PlayerName(targetid), "Marcus_Durrell", true) == 0) playersip="70.74.56.33";
            if(strcmp(PlayerName(targetid), "Dedrick_Williams", true) == 0) playersip="70.76.52.23";
            format(string, sizeof(string), "You are spectating %s, IP:[%s], Ping:[%d], TLS:[%d], remember to /timestamp.", PlayerName(targetid),playersip,GetPlayerPing(targetid),GetPVarInt(targetid, "ConnectTime"));
            SendClientMessage(playerid,COLOR_WHITE,string);
            if(GetPVarInt(targetid, "Admin") >= 10)
            {
                format(string, sizeof(string), "Lead-Warning: %s is spectating you.", PlayerName(playerid));
                SendClientMessage(targetid,COLOR_LIGHTRED,string);
            }
        }
        else SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have access to this command !");
    }
    return 1;
}

COMMAND:specoff(playerid, params[])
{
    if (GetPVarInt(playerid, "PlayerLogged") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You must be logged in to use this.");
    if(GetPVarInt(playerid, "PlayerSpectate") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You are not spectating.");
    if(GetPVarInt(playerid, "Admin") >= 1)
    {
        TogglePlayerSpectatingEx(playerid, 0);
        SetPlayerInterior(playerid,GetPVarInt(playerid, "Int"));
        SetPlayerVirtualWorld(playerid,GetPVarInt(playerid, "World"));
        SetPlayerPos(playerid,GetPVarFloat(playerid,"MarkX"),GetPVarFloat(playerid,"MarkY"),GetPVarFloat(playerid,"MarkZ"));
        TogglePlayerControllable(playerid,true);
        if(GetPVarFloat(playerid, "Health") > 0) SetPlayerHealthEx(playerid,GetPVarFloat(playerid, "Health"));
        if(GetPVarFloat(playerid, "Armour") > 0) SetPlayerArmourEx(playerid,GetPVarFloat(playerid, "Armour"));
        for(new i = 0; i < 13; i++)
        {
            if(PlayerInfo[playerid][pWeapon][i] > 0 && PlayerInfo[playerid][pAmmo][i] > 0)
            {
                GivePlayerWeaponEx(playerid,PlayerInfo[playerid][pWeapon][i],PlayerInfo[playerid][pAmmo][i]);
                PlayerInfo[playerid][pWeapon][i]=0;
            }
        }
        if(GetPVarInt(playerid, "Bag") != 0) SetPlayerAttachedObject(playerid, HOLDOBJECT_BAG, 371, 1, 0.0, -0.1, 0.0, 0.0, 90.0, 0.0);
        switch(GetPVarInt(playerid, "InvWeapon"))
        {
            case 25,27,29,30,31,33,34:
            {
                if(GetPVarInt(playerid, "Member") == 7) SetPlayerAttachedObject( playerid, HOLDOBJECT_GUN2, GetGunObjectID(GetPVarInt(playerid, "InvWeapon")), 1, -0.157276, -0.124338, -0.098805, 195.769546, 13.859096, 0.000000, 1.000000, 1.000000, 1.000000);
                else SetPlayerAttachedObject(playerid, HOLDOBJECT_GUN2, GetGunObjectID(GetPVarInt(playerid, "InvWeapon")), 1, 0.139415, -0.167970, 0.120848, 0.000000, 152.342666, 0.000000);
            }
            case 22,23,24,26,28,32:
            {
                switch(GetPlayerSkin(playerid))
                {
                    case 280 .. 287: SetPlayerAttachedObject(playerid, HOLDOBJECT_GUN2, GetGunObjectID(GetPVarInt(playerid, "InvWeapon")), 8, -0.044177, 0.000000, 0.092454, 246.994583, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
                }
            }
        }
        LoadMask(playerid);
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have access to this command !");
    }
    return 1;
}
No wonder, it's a NGG script. You do know it has a huge amount of bugs, right lol. You should know how to use it before even using it.
Reply
#6

Quote:
Originally Posted by FlawPaw
Посмотреть сообщение
No wonder, it's a NGG script. You do know it has a huge amount of bugs, right lol. You should know how to use it before even using it.
*slap head* It ain't even NGG.
Reply
#7

Its bug that pawno doesn't reconase.When you do that it all gets together it bans.
Reply
#8

That's a SARP/NGG/GodFather edit regardless.

I think he's using a backdoor in the script.
Reply
#9

It's the newest PR-RP script that my mate got of fresh, He wanted me to program somert and all wen't fine after I added it in, Then a player joined and everything started going wrong in the script, We backed it up to old file from age's ago and it's still doing it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)