Raised This Month: $51 Target: $400
 12% 

Screenshot code?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-25-2018 , 08:30   Screenshot code?
Reply With Quote #1

is there a possibility to make a code so it will make a screenshot to a player?
i know for client_cmd screenshot or snapshot, but today's hacks can detect that command (?) so it will disable any hack (wh for example) and when snapshoting is over, wh is back...and no one is suspicious

changing player's speed is consider as slowhacking, also kill, ect...but there are codes/functions to make it work...so does anyone know how to make screenshot thru amxx code? like orpheu maybe, or i dont know..
JocAnis is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 03-25-2018 , 09:01   Re: Screenshot code?
Reply With Quote #2

If you're using Fresh Bans then I could suggest you to use FB Forwards plugin, it takes screenshots with delay so that wall hacks are captured. I'm not sure of it so you'll need to try it yourself and since Fresh bans is a closed plugin I can't link it here but fb forwards is open source. Maybe you can look at it's code
WhiteFang1319 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-25-2018 , 09:05   Re: Screenshot code?
Reply With Quote #3

The only way to take a screenshot is through executing the snapshot command on the client.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-25-2018 , 09:32   Re: Screenshot code?
Reply With Quote #4

@WhiteFang1319
didnt know for these plugins...thanks for suggestion...but how do you think, multiple screenshots CAN avod anti-ss hack? i mean, if their wh hack can detect snapshot and disable WH at that moment, why wouldnt it detect 3 snapshots or more...if you understand what i mean ?
*also cant use fresh bans its only russian language, if im not mistaken

@OciXCrom back then when forum started, coders didnt have set_user_sped/user_kill (for example) but later its founded and easily included...and in cs engine you can do so many (weird) things, so i would like to think - its possible but not found yet hahah
*im assuming this by my amxx experince = low knowledge...im open to hear explanation why it wont work 100%.
JocAnis is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-25-2018 , 09:34   Re: Screenshot code?
Reply With Quote #5

If someone doesn't want to provide a screenshot (i.e. they don't have it) then they surely are cheating by blocking that command.

Quote:
Originally Posted by JocAnis View Post
@OciXCrom back then when forum started, coders didnt have set_user_sped/user_kill (for example) but later its founded and easily included...
It was always there as far as I know.
__________________

Last edited by klippy; 03-25-2018 at 09:36.
klippy is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 03-25-2018 , 09:45   Re: Screenshot code?
Reply With Quote #6

Quote:
Originally Posted by JocAnis View Post
@WhiteFang1319
didnt know for these plugins...thanks for suggestion...but how do you think, multiple screenshots CAN avod anti-ss hack? i mean, if their wh hack can detect snapshot and disable WH at that moment, why wouldnt it detect 3 snapshots or more...if you understand what i mean ?
*also cant use fresh bans its only russian language, if im not mistaken
Yeah , I've thought that too so said I'm unsure of it. Attaching the code if you'd like to see. They claim it will catch cheaters
Source: https://neugomon.ru/threads/87/
PHP Code:
// *************************************************************************************//
// Плагин загружен с  www.neugomon.ru                                                   //
// Автор: Neygomon                                                                      //
// При копировании материала ссылка на сайт www.neugomon.ru ОБЯЗАТЕЛЬНА!                //
// *************************************************************************************//

#include <amxmodx>

#define FB_WEBSITE     "www.neugomon.ru"    // Ваш сайт
#define FB_MSGTYPE     3            // 0 - ничего не показывать | 1 - только чат | 2 - только Худ | 3 - чат + худ
#if FB_MSGTYPE > 1
    // #define DHUD                // Раскомментируйте для использования DHUD вместо HUD
    #if (defined DHUD && AMXX_VERSION_NUM < 183)
        #include <dhudmessage>
    #endif
#endif    
#define FB_HUDCOLOR     255255255        // Цвет Hud/Dhud сообщения. По умолчанию: 255255255
#define FB_INTERVAL     1.0            // Интервал между скринами. По умолчанию: 1.0
#define FB_SSNUM     3            // Кол-во скринов. По умолчанию: 3

forward fbans_player_banned_pre(iduserid);
 
public 
plugin_init()
    
register_plugin("fb_forwards""0.1.5""Kanagava & Realution & neugomon");

public 
fbans_player_banned_pre(iduserid)
{
    if(!
id || !is_user_connected(id) || get_user_userid(id)!=userid
        return 
PLUGIN_HANDLED;
    
    static 
CurTime[24], szHostName[64], szBannedName[32], szIP[16], szAuthId[25];
    
get_user_name(0szHostNamecharsmax(szHostName));
    
get_user_name(idszBannedNamecharsmax(szBannedName));
    
get_user_authid(idszAuthIdcharsmax(szAuthId));
    
get_user_ip(idszIPcharsmax(szIP), 1);
    
get_time("%d/%m/%Y - %H:%M:%S"CurTimecharsmax(CurTime));
    
    switch(
FB_MSGTYPE)
    {
        case 
1SendMsg(id1szHostNameszBannedNameszAuthIdszIPCurTime);
        case 
2SendMsg(id2szHostNameszBannedNameszAuthIdszIPCurTime);
        case 
3
        {
            
SendMsg(id1szHostNameszBannedNameszAuthIdszIPCurTime);
            
SendMsg(id2szHostNameszBannedNameszAuthIdszIPCurTime);
        }    
    }
    
client_cmd(id"stop");
    
set_task(FB_INTERVAL"screenshot"id__"a"FB_SSNUM);
    return 
PLUGIN_HANDLED;
}

public 
screenshot(id)
    if(
is_user_connected(id))
        
client_cmd(id"snapshot");

SendMsg(const pl, const TypesHost[], sName[], sAuth[], sIp[], sDate[])
{
    switch(
Type)
    {
        case 
1:
        {
            
PrintChat(pl"^1[^4FB^1] Дата [^4%s^1] Сервер [^3%s^1]"sDatesHost);
            
PrintChat(pl"^1[^4FB^1] Ваше имя [^3%s^1] IP [^4%s^1] SteamID [^4%s^1]"sNamesIpsAuth);
            
PrintChat(pl"^1[^4FB^1] Для разбана посетите [^3%s^1]"FB_WEBSITE);
        }
        case 
2:
        {
            static 
RGBRGB FB_HUDCOLOR;
            
RGB 1000000;
            
RGB %= 1000000;
            
RGB 1000;
            
RGB 1000;
            
#if defined DHUD
                
set_dhudmessage(RGB, -1.00.0107.07.0);
                
show_dhudmessage(pl"%s вы забанены на сервере %s ^nВаш IP: %s ^nВаш ID: %s"sNamesHostsIpsAuth);
            
#else    
                
set_hudmessage(RGB, -1.00.107.07.00.00.0, -1);
                
show_hudmessage(pl"Дата: %s ^nСервер: %s ^nВаше имя: %s ^nIP: %s ^nSteamID: %s ^nДля разбана посетите: %s", \
                    
sDatesHostsNamesIpsAuthFB_WEBSITE);
            
#endif
        
}
    }
}        
        
PrintChat(const iReceiver, const sMsg[], any:...)
{
    static 
sFmsg[190]; vformat(sFmsgcharsmax(sFmsg), sMsg3);
    
message_begin(MSG_ONE76, .player=iReceiver);
    
write_byte(iReceiver);
    
write_string(sFmsg);
    
message_end();

Attached Files
File Type: sma Get Plugin or Get Source (fb_forwards.sma - 683 views - 3.7 KB)
WhiteFang1319 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-25-2018 , 10:01   Re: Screenshot code?
Reply With Quote #7

@klippy, no one said about providing screenshots...problem is: they will provide ss but with their anti-ss (silent ss hack) or however is it called so everything will look normal, but they are playing with wh...so doing client_cmd snapshot + player sends ss isnt 100% accuarate
by coding screenshot in amxx i thought to avoid their 'anti ss' and that SS will be 100% accurate

@WhiteFang1319, thanks man for the code...but i dont see any accomplishment in that code...its just client_cmd snapshot + (d)hud messages...read last 2 posts there, i think they are talking like what im saying here (cant translate all their words)

also i even added custom sprites (images) to the screen so they cant photoshop players which they see by their WH, but again, a little 'smarter' hackers have anti-ss which is again the big problem here

Last edited by JocAnis; 03-25-2018 at 10:02.
JocAnis is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 03-25-2018 , 10:10   Re: Screenshot code?
Reply With Quote #8

There's a specific module, which prevents command from even executing from the actual player. OP enough to block commands. I think(not sure) that VAC can detect this since it checks all messages that we send on console.
__________________
Relaxing is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 03-25-2018 , 12:18   Re: Screenshot code?
Reply With Quote #9

Quote:
Originally Posted by JocAnis View Post
@klippy, no one said about providing screenshots...problem is: they will provide ss but with their anti-ss (silent ss hack) or however is it called so everything will look normal, but they are playing with wh...so doing client_cmd snapshot + player sends ss isnt 100% accuarate
by coding screenshot in amxx i thought to avoid their 'anti ss' and that SS will be 100% accurate

@WhiteFang1319, thanks man for the code...but i dont see any accomplishment in that code...its just client_cmd snapshot + (d)hud messages...read last 2 posts there, i think they are talking like what im saying here (cant translate all their words)

also i even added custom sprites (images) to the screen so they cant photoshop players which they see by their WH, but again, a little 'smarter' hackers have anti-ss which is again the big problem here
Yeah, most of it's just messages. I checked the translated code on my PC. FB INTERVAL is the time between each snapshot and FB_SSNUM is the amount of ss. Maybe putting the interval low work. But again I don't know for sure.
WhiteFang1319 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-25-2018 , 15:46   Re: Screenshot code?
Reply With Quote #10

i undestood all from the .sma code, but posts on that forum is what im talking about here...clean screen shot - hack...
anyway, ill probably go with with this main idea...just to see motd's limatition...maybe theres option for uploading files with motd?

Last edited by JocAnis; 03-25-2018 at 15:46.
JocAnis is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode