Поиск [REQ] AFK Slayer [IMMUNITY = SPEC]

Сообщения
1
Реакции
0
4.21. Основными языками общения на форуме являются Русский и Английский. Использование других языков допускается в личных сообщениях между участниками форума.
  1. Plugin necesar : AFK Slayer [Imunitate = SPEC]
  2. Descriere (adica ce face mai exact) : vreau un plugin care sa dea slay celor care stau afk 30 de secunde, dar sa nu dea slay celor care au un anumit steag (exemplu: ADMIN_IMMUNITY), sa-i mute. la spec.
  3. Serverul impune condiții REHLDS
  4. Versiunea AMXX : 1.9 V.5294

Nu am nevoie de manager afk sau de control afk, nu vreau să dau jucătorilor de pe server, vreau doar să le fac mai ușor pentru administratorii mei.
Mulțumiri!
 
Сообщения
542
Реакции
50
Предупреждения
2
Помог
4 раз(а)
BIGFOOT, can u test this one that i made?

Код:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>

#define TIME 30.0

new Float:player_origin[33][3];

public plugin_init()
{
    register_plugin( "Simple Afk Slayer 30", "3.0", "Gaming-Zone" );
    RegisterHam(Ham_Spawn, "player", "e_Spawn", 1);
}
 
public e_Spawn(id)
{
    remove_task(id)
    if(is_user_alive(id))
    {
        set_task(0.8, "get_spawn", id);
    }
    return HAM_IGNORED;
}

public get_spawn(id)
{
    pev(id, pev_origin, player_origin[id]);
    set_task(TIME, "check_afk", id);
}
 
public check_afk(id)
{
    if(is_user_alive(id))
    {
        if(same_origin(id))
        {
            user_kill(id);
            new name[33];
            get_user_name(id, name, 32);
            client_print(0, print_chat,  "%s was killed for AFK.", name); // fixed error here too
        }
    }
}

public check_flag(id)
if(~get_user_flags(id) & ADMIN_LEVEL_H)
{
    client_print_color(id, print_team_red, "^3pe server pentru AFK ei ucid, dar tu ești imun. Excelent!");
    return PLUGIN_HANDLED;
}
 
public same_origin(id)
{
    new Float:origin[3];
    pev(id, pev_origin, origin);
    for(new i = 0; i < 3; i++)
        if(origin[i] != player_origin[id][i])
            return 0;
    return 1;
}
22 Сен 2022
u can adjust time by define time 30.0 where is 30.0 the time in seconds. plugin NOT MINE, i just made a check for flags. ADMIN_LEVEL_H is the flag for vips (t) set by whatever u need.
 
Сообщения
238
Реакции
38
Помог
5 раз(а)
BIGFOOT, can u test this one that i made?

Код:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>

#define TIME 30.0

new Float:player_origin[33][3];

public plugin_init()
{
    register_plugin( "Simple Afk Slayer 30", "3.0", "Gaming-Zone" );
    RegisterHam(Ham_Spawn, "player", "e_Spawn", 1);
}

public e_Spawn(id)
{
    remove_task(id)
    if(is_user_alive(id))
    {
        set_task(0.8, "get_spawn", id);
    }
    return HAM_IGNORED;
}

public get_spawn(id)
{
    pev(id, pev_origin, player_origin[id]);
    set_task(TIME, "check_afk", id);
}

public check_afk(id)
{
    if(is_user_alive(id))
    {
        if(same_origin(id))
        {
            user_kill(id);
            new name[33];
            get_user_name(id, name, 32);
            client_print(0, print_chat,  "%s was killed for AFK.", name); // fixed error here too
        }
    }
}

public check_flag(id)
if(~get_user_flags(id) & ADMIN_LEVEL_H)
{
    client_print_color(id, print_team_red, "^3pe server pentru AFK ei ucid, dar tu ești imun. Excelent!");
    return PLUGIN_HANDLED;
}

public same_origin(id)
{
    new Float:origin[3];
    pev(id, pev_origin, origin);
    for(new i = 0; i < 3; i++)
        if(origin[i] != player_origin[id][i])
            return 0;
    return 1;
}
22 Сен 2022
u can adjust time by define time 30.0 where is 30.0 the time in seconds. plugin NOT MINE, i just made a check for flags. ADMIN_LEVEL_H is the flag for vips (t) set by whatever u need.
unfortunately you didn't write this code
 
Сообщения
542
Реакции
50
Предупреждения
2
Помог
4 раз(а)
Murz, i telled that i only made a flag check not the plugin
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу