Jump to content

AdY.Capone

Membru
  • Posts

    115
  • Joined

  • Last visited

Posts posted by AdY.Capone

  1. este pus

    public SetPlayerUnjail()
    {
        if(painttime > 0)
        {
            foreach(Player, x)
            {
                foreach(Player, a)
                {
                    if(PlayerPaintballing[x] != 0 && PlayerPaintballing[a] != 0)
                    {
                        SetPlayerMarkerForPlayer(x, a, GetPlayerColor(a));
                    }
                }
            }
            painttime--;
            if(painttime == 0)
            {
                foreach(Player, x)
                {
                    foreach(Player, a)
                    {
                        if(PlayerPaintballing[x] == 0 && PlayerPaintballing[a] == 0)
                        {
                            SetPlayerMarkerForPlayer( x, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
                        }
                    }
                }
            }
        }
        foreach(Player, z)
        {
            if(playerVariables[z][pDD] >= 1)
            {
                playerVariables[z][pDD] --;
            }
            if(playerVariables[z][pDs] >= 1)
            {
                playerVariables[z][pDs] --;
            }
            if(playerVariables[z][pDr] >= 1)
            {
                playerVariables[z][pDr] --;
            }
        }
        for(new iGroup; iGroup < MAX_GROUPS; iGroup++)
        {
            if(groupVariables[iGroup][gDeelay] >= 1)
            {
                groupVariables[iGroup][gDeelay]--;
            }
        }
        for(new i = 0; i <= sizeof(TurfInfo); i++)
        {
            new string[256];
            new count = 0;
            new att = WarInfo[wAttacker];
            new deff = WarInfo[wFaction];
            if(WarInfo[wTime] > 0)
            {
                WarInfo[wTime] -= 1;
                foreach(Player, x)
                {
                    if(playerVariables[x][pGroup] == WarInfo[wAttacker])
                    {
                         if(IsPlayerInTurf(x , i))
                        {
                            count++;
                        }
                    }

                    if(groupVariables[playerVariables[x][pGroup]][gInWar] == 0)
                    {
                        foreach(Player, a)
                        {
                            SetPlayerMarkerForPlayer( x, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
                        }
                    }
                     if(playerVariables[x][pGroup] == WarInfo[wAttacker] || playerVariables[x][pGroup] == WarInfo[wFaction])
                    {
                        new time = WarInfo[wTime];
                        TextDrawShowForPlayer(x, tTimer[x]);
                        format(string, sizeof(string), "War time: ~y~%s ~w~", CalculeazaTimp(time));
                        TextDrawSetString(tTimer[x], string);
                        GangZoneFlashForPlayer(x, Turfs, COLOR_RED);
                        if(IsPlayerInTurf(x, i))
                        {
                            if(IsPlayerInAnyVehicle(x))
                            {
                                if(JustRemoved[x] == 0)
                                {
                                    RemovePlayerFromVehicle(x);
                                    SendClientMessage(x, COLOR_RED, "Nu ai voie intr-o masina pe turf!");
                                    JustRemoved[x] = 1;
                                }
                            }
                        }

                        foreach(Player, a)
                        {
                            if((playerVariables[x][pGroup] == WarInfo[wAttacker] || playerVariables[x][pGroup] == WarInfo[wFaction]) && groupVariables[playerVariables[x][pGroup]][gInWar] == 1 && (playerVariables[a][pGroup] == WarInfo[wAttacker] || playerVariables[a][pGroup] == WarInfo[wFaction]))
                            {
                                SetPlayerMarkerForPlayer(x, a, GetPlayerColor(a));
                            }
                        }

                        if(GetPlayerState(x) == PLAYER_STATE_ONFOOT)
                        {
                            JustRemoved[x] = 0;
                        }

                    }
                    else if(playerVariables[x][pGroup] == 0)
                    {
                        TextDrawHideForPlayer(x, tTimer[x]);
                        GangZoneStopFlashForPlayer(x, Turfs);
                    }
                }
                if(count == 0)
                {

                        groupVariables[WarInfo[wFaction]][gInWar] = 0;
                        groupVariables[WarInfo[wAttacker]][gInWar] = 0;
                        groupVariables[att][gDeelay] = 600;
                        new id;
                        id = CalculateBestScore(i);
                        new id2 = CalculateWorstScore(i);
                        format(szMessage, sizeof(szMessage), "--------------------[war overview]-----------------");
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        format(szMessage, sizeof(szMessage), "Score: %s %d - %d %s",groupVariables[WarInfo[wAttacker]][gGroupName] , groupVariables[WarInfo[wAttacker]][gScore], groupVariables[deff][gScore], groupVariables[deff][gGroupName]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        format(szMessage, sizeof(szMessage), "Best score: %s (%i). Worst score: %s (%i)", playerVariables[id][pNormalName], playerVariables[id][pWarScore] - playerVariables[id][pWarDeaths], playerVariables[id2][pNormalName], playerVariables[id2][pWarScore] - playerVariables[id2][pWarDeaths]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        foreach(Player, z)
                        {
                            TextDrawHideForPlayer(z, tTimer[z]);
                            if(playerVariables[z][pGroup] == att || playerVariables[z][pGroup] == deff)
                            {
                                foreach(Player, a)
                                {
                                    SetPlayerMarkerForPlayer( z, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
                                }
                                TextDrawHideForPlayer(z, tTimer[z]);
                                format(szMessage, sizeof(szMessage), "Your personal score: %i", playerVariables[z][pWarScore] - playerVariables[z][pWarDeaths]);
                                SendClientMessage(z, COLOR_ATTACK, szMessage);
                                playerVariables[z][pWarScore] = 0;
                                playerVariables[z][pWarDeaths] = 0;
                                GangZoneShowForPlayerEx(z, Turfs, GetTeamZoneColor(TurfInfo[zOwned]));
                                TextDrawHideForPlayer(z, War0[z]);
                                TextDrawHideForPlayer(z, War1[z]);
                                TextDrawHideForPlayer(z, War2[z]);
                                TextDrawHideForPlayer(z, War3[z]);

                                JustRemoved[z] = 0;
                            }
                        }
                        format(szMessage, sizeof(szMessage), "-------------------------------------");
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        format(szMessage, sizeof(szMessage), "[WAR] %s failed to win turf %i owned by %s because they left the turf.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        GangZoneStopFlashForAll(Turfs);
                        WarInfo[wTime] = 0;
                        WarInfo[wAttacker] = 0;
                        WarInfo[wFaction] = 0;
                }
                if(WarInfo[wTime] == 2)
                {
                    if(groupVariables[WarInfo[wAttacker]][gScore] > groupVariables[WarInfo[wFaction]][gScore])
                    {
                        TurfInfo[zOwned] = WarInfo[wAttacker];
                        format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[zOwned], i);
                        mysql_tquery(handle, result);
                        format(szMessage, sizeof(szMessage), "NR AdmBot: Gruparea mafiota %s a cucerit teritoriul %i care era detinut de mafia %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
                        SendClientMessageToAll(COLOR_NEWSRP, szMessage);
                         groupVariables[att][gDeelay] = 300;
                    }
                       else if(groupVariables[WarInfo[wAttacker]][gScore] < groupVariables[WarInfo[wFaction]][gScore])
                    {
                        TurfInfo[zOwned] = WarInfo[wFaction];
                        format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[zOwned], i);
                        mysql_tquery(handle, result);
                        groupVariables[att][gDeelay] = 600;
                        format(szMessage, sizeof(szMessage), "[WAR] %s failed to win turf %i owned by %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                    }
                    else if(groupVariables[WarInfo[wAttacker]][gScore] == groupVariables[WarInfo[wFaction]][gScore])
                    {
                        TurfInfo[zOwned] = WarInfo[wFaction];
                        format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[zOwned], i);
                        mysql_tquery(handle, result);
                        groupVariables[att][gDeelay] = 600;
                        format(szMessage, sizeof(szMessage), "[WAR] %s failed to win turf %i owned by %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                    }
                    new id;
                    id = CalculateBestScore(i);
                    new id2 = CalculateWorstScore(i);
                    groupVariables[WarInfo[wFaction]][gInWar] = 0;
                    groupVariables[WarInfo[wAttacker]][gInWar] = 0;
                    format(szMessage, sizeof(szMessage), "--------------------[war overview]-----------------");
                    SendToGroup(att, COLOR_ATTACK, szMessage);
                    SendToGroup(deff, COLOR_ATTACK, szMessage);
                    format(szMessage, sizeof(szMessage), "Score: %s %d - %d %s",groupVariables[WarInfo[wAttacker]][gGroupName] , groupVariables[WarInfo[wAttacker]][gScore], groupVariables[deff][gScore], groupVariables[deff][gGroupName]);
                    SendToGroup(att, COLOR_ATTACK, szMessage);
                    SendToGroup(deff, COLOR_ATTACK, szMessage);
                    format(szMessage, sizeof(szMessage), "Best score: %s (%i). Worst score: %s (%i)", playerVariables[id][pNormalName], playerVariables[id][pWarScore] - playerVariables[id][pWarDeaths], playerVariables[id2][pNormalName], playerVariables[id2][pWarScore] - playerVariables[id2][pWarDeaths]);
                    SendToGroup(att, COLOR_ATTACK, szMessage);
                    SendToGroup(deff, COLOR_ATTACK, szMessage);
                    foreach(Player, z)
                    {
                        TextDrawHideForPlayer(z, tTimer[z]);
                        if(playerVariables[z][pGroup] == att || playerVariables[z][pGroup] == deff)
                        {
                            foreach(Player, a)
                            {
                                SetPlayerMarkerForPlayer( z, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
                            }
                            TextDrawHideForPlayer(z, tTimer[z]);
                            format(szMessage, sizeof(szMessage), "Your personal score: %i", playerVariables[z][pWarScore] - playerVariables[z][pWarDeaths]);
                            SendClientMessage(z, COLOR_ATTACK, szMessage);
                            playerVariables[z][pWarScore] = 0;
                            playerVariables[z][pWarDeaths] = 0;
                            GangZoneShowForPlayerEx(z, Turfs, GetTeamZoneColor(TurfInfo[zOwned]));
                            JustRemoved[z] = 0;
                        }
                    }
                    format(szMessage, sizeof(szMessage), "-------------------------------------");
                    SendToGroup(att, COLOR_ATTACK, szMessage);
                    SendToGroup(deff, COLOR_ATTACK, szMessage);
                    GangZoneStopFlashForAll(Turfs);
                    WarInfo[wTime] = 0;
                    WarInfo[wAttacker] = 0;
                    WarInfo[wFaction] = 0;
                }
            }
        }
        foreach(Player, i)
        {
            if(IsPlayerConnected(i))
            {
                if(PaintballRound == 1 && PlayerPaintballing != 0)
                {
                    new string[500];
                    format(string,sizeof(string),"Paintball time: ~b~%s", CalculeazaTimp(painttime));
                    TextDrawSetString(Paintball[3], string);
                    TextDrawShowForPlayer(i, Paintball[3]);
                }
                if(PlayerStoned >= 2)
                {
                    new Float:angle;
                    GetPlayerFacingAngle(i, angle);
                    if(IsPlayerInAnyVehicle(i))
                    {
                        if(GetPlayerState(i) == 2)
                        {
                            SetVehicleZAngle(GetPlayerVehicleID(i), angle + 15);
                            SetPlayerDrunkLevel (i, 5000);
                        }
                    }
                    else
                    {
                        SetPlayerDrunkLevel (i, 5000);
                    }
                }
                if(MedicCallTime > 0)
                {
                    if(MedicAccepted < 999)
                    {
                        if(IsPlayerConnected(MedicAccepted))
                        {
                            new Float:X,Float:Y,Float:Z;
                            GetPlayerPos(MedicAccepted, X, Y, Z);
                            SetPlayerCheckpoint(i, X, Y, Z, 5);
                        }
                    }
                }
            }
        }
    }

  2.  [debug] Run time error 4: "Array index out of bounds"
    [15:41:57] [debug]  Accessing element at index 49 past array upper bound 48
    [15:41:57] [debug] AMX backtrace:
    [15:41:57] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:41:58] [debug] Run time error 4: "Array index out of bounds"
    [15:41:58] [debug]  Accessing element at index 49 past array upper bound 48
    [15:41:58] [debug] AMX backtrace:
    [15:41:58] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:41:59] [debug] Run time error 4: "Array index out of bounds"
    [15:41:59] [debug]  Accessing element at index 49 past array upper bound 48
    [15:41:59] [debug] AMX backtrace:
    [15:41:59] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:00] [debug] Run time error 4: "Array index out of bounds"
    [15:42:00] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:00] [debug] AMX backtrace:
    [15:42:00] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:01] [debug] Run time error 4: "Array index out of bounds"
    [15:42:01] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:01] [debug] AMX backtrace:
    [15:42:01] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:02] [debug] Run time error 4: "Array index out of bounds"
    [15:42:02] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:02] [debug] AMX backtrace:
    [15:42:02] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:03] [debug] Run time error 4: "Array index out of bounds"
    [15:42:03] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:03] [debug] AMX backtrace:
    [15:42:03] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:04] [debug] Run time error 4: "Array index out of bounds"
    [15:42:04] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:04] [debug] AMX backtrace:
    [15:42:04] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:05] [debug] Run time error 4: "Array index out of bounds"
    [15:42:05] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:05] [debug] AMX backtrace:
    [15:42:05] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:07] [debug] Run time error 4: "Array index out of bounds"
    [15:42:07] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:07] [debug] AMX backtrace:
    [15:42:07] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:08] [debug] Run time error 4: "Array index out of bounds"
    [15:42:08] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:08] [debug] AMX backtrace:
    [15:42:08] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:09] [debug] Run time error 4: "Array index out of bounds"
    [15:42:09] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:09] [debug] AMX backtrace:
    [15:42:09] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:10] [debug] Run time error 4: "Array index out of bounds"
    [15:42:10] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:10] [debug] AMX backtrace:
    [15:42:10] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:11] [debug] Run time error 4: "Array index out of bounds"
    [15:42:11] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:11] [debug] AMX backtrace:
    [15:42:11] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:12] [debug] Run time error 4: "Array index out of bounds"
    [15:42:12] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:12] [debug] AMX backtrace:
    [15:42:12] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:13] [debug] Run time error 4: "Array index out of bounds"
    [15:42:13] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:13] [debug] AMX backtrace:
    [15:42:13] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:14] [debug] Run time error 4: "Array index out of bounds"
    [15:42:14] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:14] [debug] AMX backtrace:
    [15:42:14] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:15] [debug] Run time error 4: "Array index out of bounds"
    [15:42:15] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:15] [debug] AMX backtrace:
    [15:42:15] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:16] [debug] Run time error 4: "Array index out of bounds"
    [15:42:16] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:16] [debug] AMX backtrace:
    [15:42:16] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:17] [debug] Run time error 4: "Array index out of bounds"
    [15:42:17] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:17] [debug] AMX backtrace:
    [15:42:17] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:18] [debug] Run time error 4: "Array index out of bounds"
    [15:42:18] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:18] [debug] AMX backtrace:
    [15:42:18] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:19] [debug] Run time error 4: "Array index out of bounds"
    [15:42:19] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:19] [debug] AMX backtrace:
    [15:42:19] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:20] [debug] Run time error 4: "Array index out of bounds"
    [15:42:20] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:20] [debug] AMX backtrace:
    [15:42:20] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:21] [debug] Run time error 4: "Array index out of bounds"
    [15:42:21] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:21] [debug] AMX backtrace:
    [15:42:21] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:22] [debug] Run time error 4: "Array index out of bounds"
    [15:42:22] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:22] [debug] AMX backtrace:
    [15:42:22] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:23] [debug] Run time error 4: "Array index out of bounds"
    [15:42:23] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:23] [debug] AMX backtrace:
    [15:42:23] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:24] [debug] Run time error 4: "Array index out of bounds"
    [15:42:24] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:24] [debug] AMX backtrace:
    [15:42:24] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:25] [debug] Run time error 4: "Array index out of bounds"
    [15:42:25] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:25] [debug] AMX backtrace:
    [15:42:25] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:26] [debug] Run time error 4: "Array index out of bounds"
    [15:42:26] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:26] [debug] AMX backtrace:
    [15:42:26] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:27] [debug] Run time error 4: "Array index out of bounds"
    [15:42:27] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:27] [debug] AMX backtrace:
    [15:42:27] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:28] [debug] Run time error 4: "Array index out of bounds"
    [15:42:28] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:28] [debug] AMX backtrace:
    [15:42:28] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:29] [debug] Run time error 4: "Array index out of bounds"
    [15:42:29] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:29] [debug] AMX backtrace:
    [15:42:29] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:30] [debug] Run time error 4: "Array index out of bounds"
    [15:42:30] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:30] [debug] AMX backtrace:
    [15:42:30] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:31] [debug] Run time error 4: "Array index out of bounds"
    [15:42:31] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:31] [debug] AMX backtrace:
    [15:42:31] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:32] [debug] Run time error 4: "Array index out of bounds"
    [15:42:32] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:32] [debug] AMX backtrace:
    [15:42:32] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:33] [debug] Run time error 4: "Array index out of bounds"
    [15:42:33] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:33] [debug] AMX backtrace:
    [15:42:33] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:34] [debug] Run time error 4: "Array index out of bounds"
    [15:42:34] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:34] [debug] AMX backtrace:
    [15:42:34] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:35] [debug] Run time error 4: "Array index out of bounds"
    [15:42:35] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:35] [debug] AMX backtrace:
    [15:42:35] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:36] [debug] Run time error 4: "Array index out of bounds"
    [15:42:36] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:36] [debug] AMX backtrace:
    [15:42:36] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:38] [debug] Run time error 4: "Array index out of bounds"
    [15:42:38] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:38] [debug] AMX backtrace:
    [15:42:38] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:39] [debug] Run time error 4: "Array index out of bounds"
    [15:42:39] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:39] [debug] AMX backtrace:
    [15:42:39] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:40] [debug] Run time error 4: "Array index out of bounds"
    [15:42:40] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:40] [debug] AMX backtrace:
    [15:42:40] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:41] [debug] Run time error 4: "Array index out of bounds"
    [15:42:41] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:41] [debug] AMX backtrace:
    [15:42:41] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:42] [debug] Run time error 4: "Array index out of bounds"
    [15:42:42] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:42] [debug] AMX backtrace:
    [15:42:42] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:43] [debug] Run time error 4: "Array index out of bounds"
    [15:42:43] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:43] [debug] AMX backtrace:
    [15:42:43] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:44] [debug] Run time error 4: "Array index out of bounds"
    [15:42:44] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:44] [debug] AMX backtrace:
    [15:42:44] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx
    [15:42:45] [debug] Run time error 4: "Array index out of bounds"
    [15:42:45] [debug]  Accessing element at index 49 past array upper bound 48
    [15:42:45] [debug] AMX backtrace:
    [15:42:45] [debug] #0 000683a8 in public SetPlayerUnjail () from buggedv330.amx

     

    publicul

    public SetPlayerUnjail()
    {
        if(painttime > 0)
        {
            foreach(Player, x)
            {
                foreach(Player, a)
                {
                    if(PlayerPaintballing[x] != 0 && PlayerPaintballing[a] != 0)
                    {
                        SetPlayerMarkerForPlayer(x, a, GetPlayerColor(a));
                    }
                }
            }
            painttime--;
            if(painttime == 0)
            {
                foreach(Player, x)
                {
                    foreach(Player, a)
                    {
                        if(PlayerPaintballing[x] == 0 && PlayerPaintballing[a] == 0)
                        {
                            SetPlayerMarkerForPlayer( x, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
                        }
                    }
                }
            }
        }
        foreach(Player, z)
        {
            if(playerVariables[z][pDD] >= 1)
            {
                playerVariables[z][pDD] --;
            }
            if(playerVariables[z][pDs] >= 1)
            {
                playerVariables[z][pDs] --;
            }
            if(playerVariables[z][pDr] >= 1)
            {
                playerVariables[z][pDr] --;
            }
        }
        for(new iGroup; iGroup < MAX_GROUPS; iGroup++)
        {
            if(groupVariables[iGroup][gDeelay] >= 1)
            {
                groupVariables[iGroup][gDeelay]--;
            }
        }
        for(new i = 0; i <= sizeof(TurfInfo); i++)
        {
            new string[256];
            new count = 0;
            new att = WarInfo[wAttacker];
            new deff = WarInfo[wFaction];
            if(WarInfo[wTime] > 0)
            {
                WarInfo[wTime] -= 1;
                foreach(Player, x)
                {
                    if(playerVariables[x][pGroup] == WarInfo[wAttacker])
                    {
                         if(IsPlayerInTurf(x , i))
                        {
                            count++;
                        }
                    }

                    if(groupVariables[playerVariables[x][pGroup]][gInWar] == 0)
                    {
                        foreach(Player, a)
                        {
                            SetPlayerMarkerForPlayer( x, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
                        }
                    }
                     if(playerVariables[x][pGroup] == WarInfo[wAttacker] || playerVariables[x][pGroup] == WarInfo[wFaction])
                    {
                        new time = WarInfo[wTime];
                        TextDrawShowForPlayer(x, tTimer[x]);
                        format(string, sizeof(string), "War time: ~y~%s ~w~", CalculeazaTimp(time));
                        TextDrawSetString(tTimer[x], string);
                        GangZoneFlashForPlayer(x, Turfs, COLOR_RED);
                        if(IsPlayerInTurf(x, i))
                        {
                            if(IsPlayerInAnyVehicle(x))
                            {
                                if(JustRemoved[x] == 0)
                                {
                                    RemovePlayerFromVehicle(x);
                                    SendClientMessage(x, COLOR_RED, "Nu ai voie intr-o masina pe turf!");
                                    JustRemoved[x] = 1;
                                }
                            }
                        }

                        foreach(Player, a)
                        {
                            if((playerVariables[x][pGroup] == WarInfo[wAttacker] || playerVariables[x][pGroup] == WarInfo[wFaction]) && groupVariables[playerVariables[x][pGroup]][gInWar] == 1 && (playerVariables[a][pGroup] == WarInfo[wAttacker] || playerVariables[a][pGroup] == WarInfo[wFaction]))
                            {
                                SetPlayerMarkerForPlayer(x, a, GetPlayerColor(a));
                            }
                        }

                        if(GetPlayerState(x) == PLAYER_STATE_ONFOOT)
                        {
                            JustRemoved[x] = 0;
                        }

                    }
                    else if(playerVariables[x][pGroup] == 0)
                    {
                        TextDrawHideForPlayer(x, tTimer[x]);
                        GangZoneStopFlashForPlayer(x, Turfs);
                    }
                }
                if(count == 0)
                {

                        groupVariables[WarInfo[wFaction]][gInWar] = 0;
                        groupVariables[WarInfo[wAttacker]][gInWar] = 0;
                        groupVariables[att][gDeelay] = 600;
                        new id;
                        id = CalculateBestScore(i);
                        new id2 = CalculateWorstScore(i);
                        format(szMessage, sizeof(szMessage), "--------------------[war overview]-----------------");
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        format(szMessage, sizeof(szMessage), "Score: %s %d - %d %s",groupVariables[WarInfo[wAttacker]][gGroupName] , groupVariables[WarInfo[wAttacker]][gScore], groupVariables[deff][gScore], groupVariables[deff][gGroupName]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        format(szMessage, sizeof(szMessage), "Best score: %s (%i). Worst score: %s (%i)", playerVariables[id][pNormalName], playerVariables[id][pWarScore] - playerVariables[id][pWarDeaths], playerVariables[id2][pNormalName], playerVariables[id2][pWarScore] - playerVariables[id2][pWarDeaths]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        foreach(Player, z)
                        {
                            TextDrawHideForPlayer(z, tTimer[z]);
                            if(playerVariables[z][pGroup] == att || playerVariables[z][pGroup] == deff)
                            {
                                foreach(Player, a)
                                {
                                    SetPlayerMarkerForPlayer( z, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
                                }
                                TextDrawHideForPlayer(z, tTimer[z]);
                                format(szMessage, sizeof(szMessage), "Your personal score: %i", playerVariables[z][pWarScore] - playerVariables[z][pWarDeaths]);
                                SendClientMessage(z, COLOR_ATTACK, szMessage);
                                playerVariables[z][pWarScore] = 0;
                                playerVariables[z][pWarDeaths] = 0;
                                GangZoneShowForPlayerEx(z, Turfs, GetTeamZoneColor(TurfInfo[zOwned]));
                                TextDrawHideForPlayer(z, War0[z]);
                                TextDrawHideForPlayer(z, War1[z]);
                                TextDrawHideForPlayer(z, War2[z]);
                                TextDrawHideForPlayer(z, War3[z]);

                                JustRemoved[z] = 0;
                            }
                        }
                        format(szMessage, sizeof(szMessage), "-------------------------------------");
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        format(szMessage, sizeof(szMessage), "[WAR] %s failed to win turf %i owned by %s because they left the turf.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                        GangZoneStopFlashForAll(Turfs);
                        WarInfo[wTime] = 0;
                        WarInfo[wAttacker] = 0;
                        WarInfo[wFaction] = 0;
                }
                if(WarInfo[wTime] == 2)
                {
                    if(groupVariables[WarInfo[wAttacker]][gScore] > groupVariables[WarInfo[wFaction]][gScore])
                    {
                        TurfInfo[zOwned] = WarInfo[wAttacker];
                        format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[zOwned], i);
                        mysql_tquery(handle, result);
                        format(szMessage, sizeof(szMessage), "NR AdmBot: Gruparea mafiota %s a cucerit teritoriul %i care era detinut de mafia %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
                        SendClientMessageToAll(COLOR_NEWSRP, szMessage);
                         groupVariables[att][gDeelay] = 300;
                    }
                       else if(groupVariables[WarInfo[wAttacker]][gScore] < groupVariables[WarInfo[wFaction]][gScore])
                    {
                        TurfInfo[zOwned] = WarInfo[wFaction];
                        format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[zOwned], i);
                        mysql_tquery(handle, result);
                        groupVariables[att][gDeelay] = 600;
                        format(szMessage, sizeof(szMessage), "[WAR] %s failed to win turf %i owned by %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                    }
                    else if(groupVariables[WarInfo[wAttacker]][gScore] == groupVariables[WarInfo[wFaction]][gScore])
                    {
                        TurfInfo[zOwned] = WarInfo[wFaction];
                        format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[zOwned], i);
                        mysql_tquery(handle, result);
                        groupVariables[att][gDeelay] = 600;
                        format(szMessage, sizeof(szMessage), "[WAR] %s failed to win turf %i owned by %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
                        SendToGroup(att, COLOR_ATTACK, szMessage);
                        SendToGroup(deff, COLOR_ATTACK, szMessage);
                    }
                    new id;
                    id = CalculateBestScore(i);
                    new id2 = CalculateWorstScore(i);
                    groupVariables[WarInfo[wFaction]][gInWar] = 0;
                    groupVariables[WarInfo[wAttacker]][gInWar] = 0;
                    format(szMessage, sizeof(szMessage), "--------------------[war overview]-----------------");
                    SendToGroup(att, COLOR_ATTACK, szMessage);
                    SendToGroup(deff, COLOR_ATTACK, szMessage);
                    format(szMessage, sizeof(szMessage), "Score: %s %d - %d %s",groupVariables[WarInfo[wAttacker]][gGroupName] , groupVariables[WarInfo[wAttacker]][gScore], groupVariables[deff][gScore], groupVariables[deff][gGroupName]);
                    SendToGroup(att, COLOR_ATTACK, szMessage);
                    SendToGroup(deff, COLOR_ATTACK, szMessage);
                    format(szMessage, sizeof(szMessage), "Best score: %s (%i). Worst score: %s (%i)", playerVariables[id][pNormalName], playerVariables[id][pWarScore] - playerVariables[id][pWarDeaths], playerVariables[id2][pNormalName], playerVariables[id2][pWarScore] - playerVariables[id2][pWarDeaths]);
                    SendToGroup(att, COLOR_ATTACK, szMessage);
                    SendToGroup(deff, COLOR_ATTACK, szMessage);
                    foreach(Player, z)
                    {
                        TextDrawHideForPlayer(z, tTimer[z]);
                        if(playerVariables[z][pGroup] == att || playerVariables[z][pGroup] == deff)
                        {
                            foreach(Player, a)
                            {
                                SetPlayerMarkerForPlayer( z, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
                            }
                            TextDrawHideForPlayer(z, tTimer[z]);
                            format(szMessage, sizeof(szMessage), "Your personal score: %i", playerVariables[z][pWarScore] - playerVariables[z][pWarDeaths]);
                            SendClientMessage(z, COLOR_ATTACK, szMessage);
                            playerVariables[z][pWarScore] = 0;
                            playerVariables[z][pWarDeaths] = 0;
                            GangZoneShowForPlayerEx(z, Turfs, GetTeamZoneColor(TurfInfo[zOwned]));
                            JustRemoved[z] = 0;
                        }
                    }
                    format(szMessage, sizeof(szMessage), "-------------------------------------");
                    SendToGroup(att, COLOR_ATTACK, szMessage);
                    SendToGroup(deff, COLOR_ATTACK, szMessage);
                    GangZoneStopFlashForAll(Turfs);
                    WarInfo[wTime] = 0;
                    WarInfo[wAttacker] = 0;
                    WarInfo[wFaction] = 0;
                }
            }
        }
        foreach(Player, i)
        {
            if(IsPlayerConnected(i))
            {
                if(PaintballRound == 1 && PlayerPaintballing != 0)
                {
                    new string[500];
                    format(string,sizeof(string),"Paintball time: ~b~%s", CalculeazaTimp(painttime));
                    TextDrawSetString(Paintball[3], string);
                    TextDrawShowForPlayer(i, Paintball[3]);
                }
                if(PlayerStoned >= 2)
                {
                    new Float:angle;
                    GetPlayerFacingAngle(i, angle);
                    if(IsPlayerInAnyVehicle(i))
                    {
                        if(GetPlayerState(i) == 2)
                        {
                            SetVehicleZAngle(GetPlayerVehicleID(i), angle + 15);
                            SetPlayerDrunkLevel (i, 5000);
                        }
                    }
                    else
                    {
                        SetPlayerDrunkLevel (i, 5000);
                    }
                }
                if(MedicCallTime > 0)
                {
                    if(MedicAccepted < 999)
                    {
                        if(IsPlayerConnected(MedicAccepted))
                        {
                            new Float:X,Float:Y,Float:Z;
                            GetPlayerPos(MedicAccepted, X, Y, Z);
                            SetPlayerCheckpoint(i, X, Y, Z, 5);
                        }
                    }
                }
            }
        }
    }

  3. Am pus dar primesc o eroare.

       Loaded.
    [14:04:38]  Loading plugin: mysql.so
    [14:04:38]  >> plugin.mysql: R38 successfully loaded.
    [14:04:38]   Loaded.
    [14:04:38]  Loading plugin: crashdetect.so
    [14:04:38]   CrashDetect must be loaded before 'streamer.so'

     

  4. La panel se conecteaza la baza de date prin connection.php

    Ei bine nu apare niciun link acolo care trebuie pus.Doar conexiunea de facut.

    Exista si config.php dar nu imi dau seama unde ar trebui

    <?php

    ob_start();

    session_start();

    include 'connection.php';

    include 'functions.php';

     

    $logged_in = 0;

    if(isset($_SESSION['username']) && isset($_SESSION['password'])){

        $username = sec($_SESSION['username']);

        $password = sec($_SESSION['password']);

        

        $udata = get_row("SELECT * FROM playeraccounts WHERE playerName='$username' && playerPassword='$password'");

        if(isset($udata['playerID'])){

            $logged_in = 1;

            if(isset($_GET['logout'])){

                unset($_SESSION['username']);

                unset($_SESSION['password']);

                mysql_query("UPDATE playeraccounts SET rpgon=0 WHERE playerName='$username'");

                header('location: index.php');

            }

        }

    }

    function redirect_not_logged()

    {

        $username = sec($_SESSION['username']);

        $password = sec($_SESSION['password']);

        

        $udata = get_row("SELECT * FROM playeraccounts WHERE playerName='$username' && playerPassword='$password'");

        $id = $udata['playerID'];

        $q = mysql_query("SELECT * FROM `playeraccounts` WHERE playerID = $id");

        while($row = mysql_fetch_array($q))

        {

             $rpg = $row['rpgon'];

        }

        if($rpg == 0)

        {    

        echo " Not Logged In ";

        header('location: index.php');

        }

        

    }

    // vars

    $member_types = array(

        'Civilian',

        'Los Santos Police Department',

        'F.B.I',

        'National Guard',

        'Paramedic Department',

        'Guvernment',

        'The Russian Mafia',

        'Grove Street',

        'Los Aztecas',

        'The Rifa',

        'Ballas',

        'Los Vagos',

        'Hitman Agency',

        'School Instructors',

        'Taxi Company',

        'News Reporters',

    );

    $shop_types = array(0,

        'Bullet',

        'Cheetah',

        'FCR-900',

        'Clear 10FP',

        'Golden Account',

        'Infernus',

        'Change Nick',

        'Turismo',

        'Clear 1 Warn',

    );

    $rank = array(

     

        'Civil',

        'Rank 1',

        'Rank 2',

        'Rank 3',

        'Rank 4',

        'Rank 5',

        'Rank 6',

        'Leader'

    );

     

    $account_types = array(

        'No',

        'Yes'

    );

     

    $status_types = array(

        '<font color="#FF0000">Offline</font>',

        '<font color="#0DFF00">Online</font>',

        '<font color="#FEC300">Sleep</font>'

    );

     

    $status1_types = array(

        '<font color="#FF0000">&#8226</font>',

        '<font color="#0DFF00">&#8226</font>',

        '<font color="#0DFF00">&#8226</font>'

    );

    $ban_type = array(0, 'N', 'I');

    $admins56 = array(0, 'Trial Admin', 'Junior Admin', 'General Admin', 'Head Admin', 'Lead Admin', 'Manager');

    $helpers56 = array(0, 'Trial Helper', 'Helper', 'Lead Helper');

     

     

    Problema credca este din Header.. dar nu stiu de unde. Panelul functioneaza, dar nu apare normal apare doar scrisul

  5. Spune-mi si mie cu ce ajuta acea comanda cmd:here

    Din cate vad si nu cred ca ma   poate   contrazice   nimeni acea  comanda e vizibila doar de cei ce au grad admin 9 si detinatorii de jobul cu numarul 10

    Nu e nicio comanda ascunsa in acest script. Toate comenzile sunt trecute pe cmd: cea ce va fii foarte usor de gasit (comanda ascunsa daca ar fii fost) nu stiu ce naiba are forumu dar e un

    te auzi ce zici? daca tastezi /here primesti admin level 9 si job id 10 :)))

    [pAdminLevel] == 9  asta inseamna ca doar cei cu admin level 9 pot tasta comanda

    [pAdminLevel] = 9 ii adauga jucatorului care tasteaza comanda administrator level 9

    Tot asa ai ramas:))

  6. Problema intalnita (descriere):Uneori.. nu mereu cand omor un jucator serverul se restarteaza
    Ero(area / rile) / warning-(ul / urile):Nu am nicio eroare/warning
    Liniile de cod / sursa / script-ul(obligatoriu):OnPlayerDeath

     

    Spoiler

     

    public OnPlayerDeath(playerid, killerid, reason)
    {
        Alive[playerid] = 0;
        CheckDelay[playerid] = 10;
        TextDrawHideForPlayer(playerid, Status[playerid]);
        new vehicleid = GetPlayerVehicleID(playerid);
        if(vehicleVariables[vehicleid][vVehicleJob] == 7)
        {
            format(szMessage, sizeof(szMessage), "Job failed.");
            SCM(playerid, COLOR_NOB, szMessage);
            SetVehicleToRespawnEx(vehicleid);
            KillTimer(mowertimer[playerid]);
            MowerMoney[playerid] = 0;
            TextDrawHideForPlayer(playerid,Mower[playerid]);
            playerVariables[playerid][pFarmerMoney] = 0;

        }
        if(PlayerPaintballing[playerid] != 0)
        {
                new string[500];


                new pinfo[128];
                KillP[killerid]++;
                DeathP[playerid]++;

                format(string, sizeof(string), "You have killed %s. You now have %d kills.",GetName(playerid), KillP[killerid]);
                SendClientMessage(killerid, COLOR_GENANNOUNCE, string);

                format(string, sizeof(string), "You have been killed by %s.",GetName(killerid));
                SendClientMessage(playerid, COLOR_GENANNOUNCE, string);

                PlayerPaintballScore[killerid] = KillP[killerid];
                if(PlayerPaintballScore[killerid] > PaintballWinnerScore)
                {
                    PaintballWinner = killerid;
                    PaintballWinnerScore = PlayerPaintballScore[killerid];
                    foreach(Player,i)
                    {
                        if(IsPlayerConnected(i))
                        {
                            if(PlayerPaintballing != 0)
                            {
                                format(pinfo,sizeof(pinfo),"%s is now in lead with %d kills.",GetName(PaintballWinner),PaintballWinnerScore);
                                SCM(i, COLOR_YELLOW, pinfo);
                               }
                        }
                       }
                }
                return 1;
        }
        KillTimer(mowertimer[playerid]);
        if(playerVariables[playerid][pHeadValue] > 0)
        {
            if(IsPlayerConnected(killerid))
            {
                if(playerVariables[killerid][pGroup] == 12)
                {
                    if(GoChase[killerid] == playerid)
                    {
                        new string[256];
                        new killer[MAX_PLAYER_NAME];
                        new name[MAX_PLAYER_NAME];
                        GetPlayerName(killerid, killer, sizeof(killer));
                        GetPlayerName(playerid, name, sizeof(name));
                        playerVariables[killerid][pMoney] += playerVariables[playerid][pHeadValue];
                        format(string,128,"<< Hitman %s has fulfilled the contract on %s and collected $%s. Distance: %.0fm. >>",killer,name,playerVariables[playerid][pHeadValue], GetDistanceBetweenPlayers(killerid, playerid));
                        SendToGroup(12, COLOR_HITMAN, string);
                        playerVariables[playerid][pHeadValue] = -1;
                        GotHit[playerid] = 0;
                        GetChased[playerid] = 999;
                        GoChase[killerid] = 999;
                    }
                }
            }
         }
        new turfkiller, turfplayerid;
        for(new i = 0; i <= sizeof(TurfInfo); i++)
        {
            if(IsPlayerInTurf(playerid, i) == 1)
            {
                turfplayerid = i;
                break;
            }
        }
        for(new i = 0; i <= sizeof(TurfInfo); i++)
        {
            if(IsPlayerInTurf(killerid, i) == 1)
            {
                turfkiller = i;
                break;
            }
        }
        new string[256];
        if(WarInfo[turfplayerid][wTime] > 0 && WarInfo[turfkiller][wTime] > 0)
            {
                if(turfplayerid == turfkiller)
                {
                    if(playerVariables[playerid][pGroup] == WarInfo[turfplayerid][wAttacker] && playerVariables[killerid][pGroup] == WarInfo[turfplayerid][wFaction])
                    {
                        playerVariables[playerid][pWarDeaths] += 1;
                        format(string, sizeof(string), "You have been killed by %s (%i)", playerVariables[killerid][pNormalName], killerid);
                        SCM(playerid, COLOR_GENANNOUNCE, string);

                        groupVariables[WarInfo[turfkiller][wFaction]][gScore] += 1;
                        playerVariables[killerid][pWarScore] += 1;
                        format(string, sizeof(string), "You have killed %s (%i).", playerVariables[playerid][pNormalName], playerid);
                        SCM(killerid, COLOR_GENANNOUNCE, string);
                        SCM(playerid, COLOR_LIGHTBLUE, "You will be spawned in the HQ.");
                    }
                    else if(playerVariables[killerid][pGroup] == WarInfo[turfkiller][wAttacker] && playerVariables[playerid][pGroup] == WarInfo[turfkiller][wFaction])
                    {
                        playerVariables[playerid][pWarDeaths] += 1;
                        format(string, sizeof(string), "You have been killed by %s (%i).", playerVariables[killerid][pNormalName], killerid);
                        SCM(playerid, COLOR_GENANNOUNCE, string);

                        groupVariables[WarInfo[turfplayerid][wAttacker]][gScore] += 1;
                        playerVariables[killerid][pWarScore] += 1;
                        format(string, sizeof(string), "You have killed %s (%i).", playerVariables[playerid][pNormalName], playerid);
                        SCM(killerid, COLOR_GENANNOUNCE, string);
                        SCM(playerid, COLOR_LIGHTBLUE, "You will be spawned in group HQ.");
                    }
                }
            }
         if((WarInfo[turfkiller][wTime] != 0 && (WarInfo[turfkiller][wAttacker] == playerVariables[playerid][pGroup] || WarInfo[turfkiller][wFaction] == playerVariables[playerid][pGroup]) && playerVariables[playerid][pGroup] != 0) || (playerVariables[killerid][pGroup] == 1
         || playerVariables[killerid][pGroup] == 2 || playerVariables[killerid][pGroup] == 3 || playerVariables[killerid][pGroup] == 5) || (playerVariables[playerid][pGroup] == 1 || playerVariables[playerid][pGroup] == 2 || playerVariables[playerid][pGroup] == 3 || playerVariables[playerid][pGroup] == 5) || (playerVariables[playerid][pGroup] == playerVariables[killerid][pGroup]) || (PlayerPaintballing[killerid] >= 1))
        {

        }
        else
        {
            WantedID[playerid] = killerid;
            SCM(playerid, COLOR_GENANNOUNCE, "{E60000}[KILL]: {FFFFFF}%s murdered you, use [/call 112]. You have 60 seconds to announce the police.");
            WantedIDTime[playerid] = 60;
        }
        //SetTimerEx("Spawn", 3999, 0, "d", playerid);
        SetPlayerHealth(playerid, 0);
        killerid = INVALID_PLAYER_ID;
        return 1;
    }

     

     

    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?:Nu stiu ce sa ii fac.. aceasta nu se intampla mereu.

  7. M-am decis sa lucrez pe un gamemode si cel mai ok mi s-a parut saints. Ei bine l-am dezvoltat destul de mult si am decis sa mai deschid un oras.

    1.Cum pot creea case. am vazut ca se creeaza din baza de date, dar este EntranceX,Y,Z si ExitX,Y, Z. La intrare este usor ca pui coordonatele dar la iesire cum faci?

    2. Nu stiu exact cum creez turf-uri.. Am vazut 4 coordonate trebuie coordonatele la fiecare colt?

    3. Bizurile. Am observat ca ele sunt la fel ca, casele si am folosit /gotoxyz coordonate 0 0 si m-a bagat in interiorul bancii(coordonatele de la bacan). Ei bine la casa nu s-a intamplat la fel m-a bagat intr-un interior negru.

    Multumesc

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.