Проверка на GM 0.3e
#1

Здравствуйте. Я владею проектом на SAMP 0.3e. Есть проблема, а именно существует ГМ от пуль(cleo), который обычной проверкой на /gm (CreateExplosion) не палится. Может подскажите, что делать.

p.s предлагать перейти на другую версию даже не надо.
Reply
#2

К примеру: Добавить команду, которая будет выдавать админу миниган и телепортировать к игроку. Дальше администратор проверяет.
Reply
#3

Quote:
Originally Posted by Perdun
View Post
предлагать перейти на другую версию даже не надо.
Почему 0.3e? Предлагаю откатиться на более старые версии, например 0.2*
Reply
#4

Quote:
Originally Posted by Romz
View Post
Почему 0.3e? Предлагаю откатиться на более старые версии, например 0.2*
Лучше сразу на 0.1
Reply
#5

Quote:
Originally Posted by energizer1337
View Post
Лучше сразу на 0.1
Осталось только встроенный в PS2 версию GTA SA мультиплеер на двоих предложить.
Reply
#6

Quote:
Originally Posted by Romz
View Post
Почему 0.3e? Предлагаю откатиться на более старые версии, например 0.2*
Губенков, лучше помоги.
Reply
#7

Ракнет + отправка пакетов с выстрелом в игрока, как вариант
Reply
#8

Quote:
Originally Posted by Eims
View Post
Ракнет + отправка пакетов с выстрелом в игрока, как вариант
в 0.3e нет синхры пуль, чтобы можно было пакеты выстрелов отправлять
хотя даже в 0.3.7 это сомнительно
Reply
#9

Quote:
Originally Posted by Perdun
View Post
лучше помоги.
Могу помочь обновится до актуальной версии мультиплеера.
Reply
#10

Дайте пожалуйста античит на легальность выстрела для 0.2
Спасибо
Reply
#11

Quote:
Originally Posted by Fragruss
View Post
Дайте пожалуйста античит на легальность выстрела для 0.2
Спасибо
Щас, только штаны подтяну
Reply
#12

Quote:
Originally Posted by narwn
View Post
должно ловить
PHP Code:
//должно ловить
#include <a_samp>
#include <zcmd>
main();
new 
gHealthNOP[MAX_PLAYERS char],
    
gHealthFunc[MAX_PLAYERS],
    
gHealthGTC[MAX_PLAYERS];
new 
gArmourNOP[MAX_PLAYERS char],
    
gArmourFunc[MAX_PLAYERS],
    
gArmourGTC[MAX_PLAYERS];
stock ac_SetPlayerHealth(playeridFloat:health)
{
    if(!
SetPlayerHealth(playeridhealth)) return 0;
    if(
floatcmp(health0.0) == -1health 0.0;
    
gHealthNOP{playerid} = 0;
    
gHealthFunc[playerid] = floatround(healthfloatround_tozero);
    
gHealthGTC[playerid] = GetTickCount() + 500;
    return 
1;
}
stock ac_SetPlayerArmour(playeridFloat:armour)
{
    if(!
SetPlayerArmour(playeridarmour)) return 0;
    if(
floatcmp(armour0.0) == -1armour 0.0;
    
gArmourNOP{playerid} = 0;
    
gArmourFunc[playerid] = floatround(armourfloatround_tozero);
    
gArmourGTC[playerid] = GetTickCount() + 500;
    return 
1;
}
/*#define SetPlayerHealth ac_SetPlayerHealth
#define SetPlayerArmour ac_SetPlayerArmour*/
public OnPlayerUpdate(playerid)
{
    if((
gHealthFunc[playerid] != -|| gHealthFunc[playerid] != -1) && GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
    {
        new 
ping GetPlayerPing(playerid), 
            
gtc GetTickCount(), 
            
Float_offset;
        
GetPlayerHealth(playerid_offset);
        if(
_:gHealthFunc[playerid] == _:_offset || floatcmp(gHealthFunc[playerid], _offset) >= && gtc gHealthGTC[playerid] + pinggHealthFunc[playerid] = -1;
        else if(
gtc gHealthGTC[playerid] + ping && ++gHealthNOP{playerid} > 3)
        {
            
printf("GM(HP)");
            
Kick(playerid);
            return 
0;
        }
        
GetPlayerArmour(playerid_offset);
        if(
_:gArmourFunc[playerid] == _:_offset || floatcmp(gArmourFunc[playerid], _offset) >= && gtc gArmourGTC[playerid] + pinggArmourFunc[playerid] = -1;
        else if(
gtc gArmourGTC[playerid] + ping && ++gArmourNOP{playerid} > 3)
        {
            
printf("GM(ARM)");
            
Kick(playerid);
            return 
0;
        }
    }
    return 
1;
}
CMD:gmcheck(playeridparams[])
{
    
//if(gIsAdmin{playerid} == 0) 
        
return 0;
    if(
isnull(params)) 
        return 
SendClientMessage(playerid, -1, !"/gmcheck [id]");
    new 
targetid strval(params);
    if(!
IsPlayerConnected(targetid))
        return 
SendClientMessage(playerid, -1, !"* Игрока нет на сервере.");
    if(
targetid == playerid
        return 
SendClientMessage(playerid, -1, !"* Вы ввели свой ид.");
    
/*if(gIsAFK[targetid] > 3) 
        return SendClientMessage(playerid, -1, !"* Игрок в АФК.");*/
    
if(IsPlayerInAnyVehicle(targetid)) 
        
RemovePlayerFromVehicle(targetid);
    new 
        
Float_last_health
        
Float_last_armour,
        
Float_rand;
    
GetPlayerHealth(targetid_last_health);
    
GetPlayerArmour(targetid_last_armour);
    
_rand float(random(99));
    
ac_SetPlayerHealth(targetid_rand);
    
ac_SetPlayerArmour(targetid_rand);
    
SetTimerEx("OnPlayerGodMode"30000"dff"targetid_last_health_last_armour);
    return 
1;
}
forward OnPlayerGodMode(playeridFloat_last_healthFloat_last_armour);
public 
OnPlayerGodMode(playeridFloat_last_healthFloat_last_armour)
{
    
//if(gIsAFK[playerid] == 0)
    
{
        
SetPlayerHealth(playerid_last_health);
        
SetPlayerArmour(playerid_last_armour);
    }
    return;

не работает.
Reply
#13

не может быть в этом клео пакеты пуль. так что обычное собское гм + ноп. хотя кинь клео в лс
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)