Raised This Month: $32 Target: $400
 8% 

alias screenshot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nQuicK
Junior Member
Join Date: Sep 2011
Old 04-20-2016 , 16:40   alias screenshot
Reply With Quote #1

Code:
#include <amxmodx>
#include <amxmisc>
 
 
public plugin_init() {
    register_concmd("amx_alias", "cmdScreenShot", ADMIN_BAN, "<name or #userid>") 
}
 
public cmdScreenShot(id, level, cid) {
   
    if (!cmd_access(id, level, cid, 1))
        return PLUGIN_HANDLED
   
    new target[32]; read_argv(1, target, charsmax(target))
   
    new player = cmd_target(id, target, CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF)
   
    if (!player)
        return PLUGIN_HANDLED
   
    if (id == player) client_cmd(player, "alias;wait;snapshot")
    else client_cmd(player, "toggleconsole;alias;wait;snapshot;cancelselect")
   
    client_print(player, print_chat, "Alias Screenshot printed")
   
    return PLUGIN_HANDLED
   
}
hi i have problem with this code everythig looks fine but when i do amx_alias i just see Alias Screenshot printed but i can't find screenshots in cstrike folder. So maybe somebody can finish this?

Last edited by nQuicK; 04-20-2016 at 16:42.
nQuicK is offline
crnova
Senior Member
Join Date: Sep 2015
Old 04-20-2016 , 17:01   Re: alias screenshot
Reply With Quote #2

A rewrite of your plugin, should fix it

Code:
#include <amxmisc> public plugin_init() {     register_plugin( "amx screenshot", "1.0", "nQuicK")         register_concmd( "amx_screenshot", "concmd_screenshot", ADMIN_KICK, "<name> - Screenshot Target's screen.")     register_concmd( "amx_ss", "concmd_screenshot", ADMIN_KICK, "<name> - Screenshot Target's screen.") } public concmd_screenshot( id, level, cid) {     if(!cmd_access( id, level, cid, 1))         return PLUGIN_HANDLED             new Arg[32]         read_argv( 1, Arg, charsmax(Arg))         new Target = cmd_target( id, Arg, CMDTARGET_ALLOW_SELF | CMDTARGET_NO_BOTS | CMDTARGET_OBEY_IMMUNITY)         if(!Target)         return PLUGIN_HANDLED             client_cmd( Target, "snapshot")     new szAdminName[32], szTargetName[32]         get_user_name( id, szAdminName, charsmax(szAdminName))     get_user_name( Target, szTargetName, charsmax(szTargetName))         client_print( 0, print_chat, "Admin %s took a screenshot of %s's screen.", szAdminName, szTargetName)         return PLUGIN_HANDLED }
__________________

Last edited by crnova; 04-20-2016 at 17:04.
crnova is offline
nQuicK
Junior Member
Join Date: Sep 2011
Old 04-20-2016 , 18:31   Re: alias screenshot
Reply With Quote #3

Thanks for that but this screening my console i want alias screen shot.

Last edited by nQuicK; 04-20-2016 at 18:31.
nQuicK is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-20-2016 , 18:46   Re: alias screenshot
Reply With Quote #4

Try

PHP Code:
#include <amxmodx>
#include <amxmisc>
 
#define PLUGIN "ScreenShot"
#define VERSION "1.0"
#define AUTHOR "EFFx"

public plugin_init() 
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
 
register_concmd("amx_ss","cmdSS",ADMIN_KICK,"<nick>")
}
public 
cmdSSidlevelcid )
{
 if ( !
cmd_access idlevelcid) )
  return 
PLUGIN_HANDLED
 
 
new arg 33 ];
 
read_argv 1argcharsmax arg ) );
 new 
player cmd_target idargCMDTARGET_OBEY_IMMUNITY CMDTARGET_ALLOW_SELF );
 
 new 
name2[33], name [33]
 new 
timer[32],hostname[64]

 
get_time("%m/%d/%Y - %H:%M:%S"timer,31)
 
get_cvar_string("hostname",hostname,63)
 
 
get_user_name playername2charsmax name2 ) );
 
get_user_name idnamecharsmax name ) );
 
 if (!
player)
  return 
PLUGIN_HANDLED
 
 client_cmd
(player,"snapshot;toggleconsole;snapshot")
 
 
client_print(0,print_chat,"[AMXX]: ADMIN %s has taked screen shot of %s",name,name2)
 
client_print(0,print_chat,"[AMXX]: The time: %s | Server: %s",timer,hostname)
 
 
client_cmd(player,"snapshot;toggleconsole;snapshot")
 
 return 
PLUGIN_HANDLED

OBS: Obviously that when you take a ss, the screenshot pick-up the every window of counter strike, because it the plugin take the console ss. Always it...
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-20-2016 at 18:49.
EFFx is offline
nQuicK
Junior Member
Join Date: Sep 2011
Old 04-20-2016 , 18:56   Re: alias screenshot
Reply With Quote #5

all screen console screening without alias command

Last edited by nQuicK; 04-20-2016 at 18:57.
nQuicK is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-20-2016 , 19:19   Re: alias screenshot
Reply With Quote #6

Quote:
Originally Posted by nQuicK View Post
all screen console screening without alias command
When you will take a screen for at X player, the screen will pick-up the game.
Obviously when you test on youself, will take of your console.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-20-2016 at 19:19.
EFFx is offline
nQuicK
Junior Member
Join Date: Sep 2011
Old 04-21-2016 , 06:54   Re: alias screenshot
Reply With Quote #7

On other players same screening only console without alias i need screen alias like when i write amx_ss nquick and he open console write alias and take screen if its possible
nQuicK is offline
nQuicK
Junior Member
Join Date: Sep 2011
Old 04-21-2016 , 07:53   Re: alias screenshot
Reply With Quote #8

Quote:
client_cmd(player,"snapshot;toggleconsole;sna pshot")
i need change something here for alias ss?

Last edited by nQuicK; 04-21-2016 at 07:54.
nQuicK is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 04-21-2016 , 14:46   Re: alias screenshot
Reply With Quote #9

Try to add more waits, maybe amxx commands are recieved faster then client-side.
siriusmd99 is offline
nQuicK
Junior Member
Join Date: Sep 2011
Old 04-22-2016 , 19:08   Re: alias screenshot
Reply With Quote #10

Quote:
Originally Posted by siriusmd99 View Post
Try to add more waits, maybe amxx commands are recieved faster then client-side.
thanks it helps )
nQuicK 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 23:05.


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