Jump to content

adytza

Membru
  • Posts

    25
  • Joined

  • Last visited

    Never

Posts posted by adytza

  1. [pawn]

    #include <a_samp>

    #define FILTERSCRIPT

    #define AFKTime 30  //Cate minute poate fi AFK

    #define ShowTime 1 //Activeaza / Dezactiveaza un mesaj trimis jucatorului care a primit kick (0 = nu / 1 = da)

    #define Public 1  //Activeaza / Dezactiveaza mesajul care este trimis tuturor (0 = nu / 1 = da)

    /*--------------------------NOTHING BELOW THIS POINT NEEDS TO BE CHANGED--------------------------*/

    public OnFilterScriptInit()

    {

    SetTimer("AFKKicker", 60000, 1);

        return 1;

    }

    forward AFKKicker();

    new Float:PPos[MAX_PLAYERS][3];

    new AFKMins[MAX_PLAYERS];

    new show = ShowTime;

    new pub = Public;

    public OnPlayerConnect(playerid)

    {

    PPos[playerid][0] = 0;

    PPos[playerid][1] = 0;

    PPos[playerid][2] = 0;

    AFKMins[playerid] = 0;

    }

    public AFKKicker()

    {

    for(new i = 0; i <= MAX_PLAYERS; i++)

    {

        if(PPos[1] == 0)

        {

            GetPlayerPos(i,PPos[0],PPos[1],PPos[2]);

            return 1;

    }

    new Float:x,Float:y,Float:z;

    GetPlayerPos(i,x,y,z);

    if(x == PPos[0] && y == PPos[1] && z == PPos[2])

    {

        AFKMins++;

        if(AFKMins >= AFKTime)

        {

            if(show == 1)

            {

                new string[128];

                SendClientMessage(i, 0xAA3333AA," You was kick by AdmBot, reason: AFK longer than 30 minutes");

                SendClientMessage(i,0xAA3333AA,string);

    }

    else

    {

          SendClientMessage(i, 0xAA3333AA," You was Away From Keyboard(AFK) for too long");

    }

    Kick(i);

    if(pub == 1)

    {

        new string[128];

        new name[MAX_PLAYER_NAME];

        GetPlayerName(i, name, sizeof(name));

                format(string, sizeof(string), " %s was kicked by AdmBot, reason: AFK longer than 30 minutes",name);

                SendClientMessageToAll(0xAA3333AA,string);

    }

    }

    }

    }

    return 1;

    }

    [/pawn]

    am si eu un fs dupa ce stai 30 min afk sa primesti kick , stau afk mai mult de 30 min si tot nu primesc kick

  2. am si eu un fs dupa ce stai 30 min afk sa primesti kick merge bine doar ca nu apare numele lu ala care primeste kick

    [pawn]

    #include <a_samp>

    #define FILTERSCRIPT

    #define AFKTime 30  //Cate minute poate fi AFK

    #define ShowTime 1 //Activeaza / Dezactiveaza un mesaj trimis jucatorului care a primit kick (0 = nu / 1 = da)

    #define Public 1  //Activeaza / Dezactiveaza mesajul care este trimis tuturor (0 = nu / 1 = da)

    /*--------------------------NOTHING BELOW THIS POINT NEEDS TO BE CHANGED--------------------------*/

    public OnFilterScriptInit()

    {

    SetTimer("AFKKicker", 60000, 1);

        return 1;

    }

    forward AFKKicker();

    new Float:PPos[MAX_PLAYERS][3];

    new AFKMins[MAX_PLAYERS];

    new show = ShowTime;

    new pub = Public;

    public OnPlayerConnect(playerid)

    {

    PPos[playerid][0] = 0;

    PPos[playerid][1] = 0;

    PPos[playerid][2] = 0;

    AFKMins[playerid] = 0;

    }

    public AFKKicker()

    {

    for(new i = 0; i <= MAX_PLAYERS; i++)

    {

        if(PPos[1] == 0)

        {

            GetPlayerPos(i,PPos[0],PPos[1],PPos[2]);

            return 1;

    }

    new Float:x,Float:y,Float:z;

    GetPlayerPos(i,x,y,z);

    if(x == PPos[0] && y == PPos[1] && z == PPos[2])

    {

        AFKMins++;

        if(AFKMins >= AFKTime)

        {

            if(show == 1)

            {

                new string[128];

                SendClientMessage(i, 0xAA3333AA," You was kick by AdmBot, reason: AFK longer than 30 minutes");

                SendClientMessage(i,0xAA3333AA,string);

    }

    else

    {

          SendClientMessage(i, 0xAA3333AA," You was Away From Keyboard(AFK) for too long");

    }

    Kick(i);

    if(pub == 1)

    {

        new string[128];

        new name[MAX_PLAYER_NAME];

        GetPlayerName(i, name, sizeof(name));

                format(string, sizeof(string), " %s was kicked by AdmBot, reason: AFK longer than 30 minutes",name);

                SendClientMessageToAll(0xAA3333AA,string);

    }

    }

    }

    }

    return 1;

    }

    [/pawn]

    apare doar asta was kicked by AdmBot, reason: AFK longer than 30 minutes vreau sa apara si cine a luat kick

  3. C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(3124) : error 017: undefined symbol "GetPlayerSurfingObjectID"

    C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(3126) : error 017: undefined symbol "GetPlayerDistanceFromPoint"

    C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(3427) : error 017: undefined symbol "GetPlayerSurfingObjectID"

    C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(3468) : error 017: undefined symbol "GetPlayerDistanceFromPoint"

    C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(5057) : error 017: undefined symbol "GetVehicleDistanceFromPoint"

    C:\Documents and Settings\adi\Desktop\JunkBuster.pwn(5062) : error 017: undefined symbol "GetVehicleDistanceFromPoint"

  4. Deci vreau sa stiu cum pot sa pun sa dea bani de pe wanted la PD/FBI/NG doar daca sunt langa cei cu wanted cand ii omoara

    Am incercat sa fac si acum numai ii baga nici la jail nici numai da bani

  5. incerc sa te ajut cum m-au ajutat si alti pe mine

    [pawn]if(strcmp(cmd, "/blacklist", true) == 0 || strcmp(cmd, "/bl", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "Tasteaza: /blacklist [playerid/PartOfName] [time(hours)]");

    SendClientMessage(playerid, COLOR_GRAD2, "O Sapt: 168 de ore");

    SendClientMessage(playerid, COLOR_GRAD2, "Doua Sapt: 336 de ore");

    return 1;

    }

    new playa;

    new money;

    playa = ReturnUser(tmp);

    tmp = strtok(cmdtext, idx);

    money = strval(tmp);

    if (PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pLeader] >= 1)

    {

        if(IsPlayerConnected(playa))

        {

            if(playa != INVALID_PLAYER_ID)

            {

            GetPlayerName(playa, giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, sizeof(string), "* You Black Listed player %s.", giveplayer);

    SendClientMessage(playerid, COLOR_LIGHTRED, string);

    format(string, sizeof(string), "* You were Black Listed by Admin %s.", sendername);

    SendClientMessage(playa, COLOR_LIGHTRED, string);

    ResetPlayerWeapons(playa);

    PlayerInfo[playa][pBlackList] = 1;

    PlayerInfo[playa][pBLTime] = money*3600;

    format(string, sizeof(string), "You are Black Listed for %d hours.", money);

    SendClientMessage(playa, COLOR_LIGHTBLUE, string);

    }

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "  Nu esti autorizat sa folosesti aceasta comanda");

    }

    }

    return 1;

    }[/pawn]

    [pawn]if(strcmp(cmd, "/blacklisted", true) == 0)

    {

        if(IsPlayerConnected(playerid))

      {

    if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pLeader] >= 1)

    {

    new count = 0;

    SendClientMessage(playerid, COLOR_YELLOW, "* Players BlackList:");

        for(new i=0; i < MAX_PLAYERS; i++)

    {

    if(IsPlayerConnected(i))

    {

        if(PlayerInfo[pBLTime] > 0)

        {

    new time = PlayerInfo[playerid][pMuteTime]/60+1;

    GetPlayerName(i, giveplayer, sizeof(giveplayer));

            format(string, sizeof(string), "[%d]%s - BlackList For: [%d] Ore", i,giveplayer, time);

    SendClientMessage(playerid, COLOR_GRAD2, string);

    count++;

    }

    }

    }

        if(count == 0)

    {

        SendClientMessage(playerid, COLOR_LIGHTRED, "* Currently no players blacklisted.");

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_WHITE, " you are not authorized to use that command !");

    }

    }//not connected

    return 1;

    }[/pawn]

    [pawn]if(strcmp(cmd, "/bltime", true) == 0)

    {

        if(IsPlayerConnected(playerid))

    {

    if (PlayerInfo[playerid][pBLTime] > 0)

    {

        new hours = PlayerInfo[playerid][pBLTime]/3600+1;

        new minutes = PlayerInfo[playerid][pBLTime]/60+1;

    format(string, sizeof(string), "Your Black List will expire in %d hours (%d minutes).", hours, minutes);

    SendClientMessage(playerid,COLOR_LIGHTBLUE, string);

    }

    }

    return 1;

    }[/pawn]

    Am avut si eu pe server dar am scos pentru ca mai bine e sa faci un topic pe forum

  6. De cateva zile niste bolnavi se joaca cu un program anume  :shocked: imi pica serveru , este hostat

    apar boti cateodata si cateodata pica direct trebuie sa il aprind specific ca celelalte servere de la firma la care am nu pica

  7. Am instalat 0.3d cand am dat connect a ramas blocat l-am reinstalat a mers am iesit din el am intrat iar si iar mi se blocheaza cand dau connect ramane blocat daca bag iar 0.3c imi merge

×
×
  • 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.