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

amx_ss Tga Format


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pawneDz
Junior Member
Join Date: Jul 2010
Old 12-30-2010 , 18:05   amx_ss Tga Format
Reply With Quote #1

Hello everyone,i want on this https://forums.alliedmods.net/showth...ghlight=amx_ss plugin change format now when i do ss on people they get bmp format. pictures i want when i do ss they get tga format pictures.
pawneDz is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-30-2010 , 23:30   Re: amx_ss Tga Format
Reply With Quote #2

That plugin uses the "snapshot" command which saves as .bmp format.
The "screenshot" command is the one that saves to .tga format.

PHP Code:
#include <amxmodx>
#include <amxmisc>

new gmsgFade
public plugin_init()
{
    
register_plugin("Ultimate SS Taker""V 2.1""navir")
    
register_concmd("amx_ss""ScreenShot"ADMIN_KICK"amx_ss <player>")
    
    
gmsgFade get_user_msgid("ScreenFade"
}

new 
name_player[32],param,pozes,poze

public ScreenShot(idlevelcid)
{
    if (!
cmd_access(idlevelcid2))
    return 
PLUGIN_HANDLED        

    
new arg[32], ip_player[32]
    
read_argv(1arg31)
    
    new 
player cmd_target(idarg4)

    if (!
player)
    return 
PLUGIN_HANDLED

    get_user_name
(playername_player31);
    
get_user_ip(playerip_player311);
    
    
client_print(idprint_chat"Nick: ^"%s^" - Ip: %s"name_player,ip_player);

    
client_print(idprint_console"Nick: ^"%s^" - Ip: %s"name_player,ip_player);
    
client_print(idprint_console"Nick: ^"%s^" - Ip: %s"name_player,ip_player);
    
client_print(idprint_console"Nick: ^"%s^" - Ip: %s"name_player,ip_player);
    
    
pozes=5
    poze
=1
    
    client_print
(idprint_chat"^"%s^" must give you 5 photos, one of them must be GREEN !"name_player);
    
    new 
hostname[64], name_admin[32], timer[32];
    
      
get_cvar_string("hostname",hostname,63);
    
get_user_name(idname_admin31);
       
get_time("%m/%d/%Y - %H:%M:%S"timer,31);
    
    
client_print(playerprint_center"PHOTO # %d"poze+1);
    
    
client_print(playerprint_chat"--------------------------------------------");
    
client_print(playerprint_chat"Admin: ^"%s^" made you a screenshot !"name_admin);
    
client_print(playerprint_chat"Your nick: ^"%s^" - Your Ip: %s"name_playerip_player);
    
client_print(playerprint_chat"Date and time: %s - Server: ^"%s^""timerhostname);
    
client_print(playerprint_chat"--------------------------------------------");
    
    
client_cmd(player,"screenshot");
    
    
poze++
    
param=player
    set_task
(1.0,"GreenShot",3322,_,_,"b");
    return 
PLUGIN_HANDLED
}

public 
GreenShot(idlevelcid)
{
    if(
poze pozes) {

    if(
poze==3) {

            
message_begin(MSG_ONEgmsgFade, {0,0,0},param)
                 
write_short(14<<7)
                 
write_short(58<<6)
                 
write_short(1<<0)
                 
write_byte(5)
                 
write_byte(255)
                
write_byte(0)
                
write_byte(255)
            
message_end()
    }
    
    new 
hostname[64], name_player[32], ip_player[32], timer[32];
    new 
frags get_user_frags (param)
    new 
deaths get_user_deaths (param)
            
    
get_cvar_string("hostname",hostname,63);
    
get_user_name(param,name_player,31);
    
get_user_ip(paramip_player311);
    
get_time("%m/%d/%Y - %H:%M:%S"timer,31);
    
    
client_print(paramprint_center"PHOTO # %d"poze+1);
    
    
client_print(paramprint_chat"--------------------------------------------");
    
client_print(paramprint_chat"Your frags: %d - Your deaths: %d",fragsdeaths);
    
client_print(paramprint_chat"Your nick: ^"%s^" - Your Ip: %s"name_playerip_player);
    
client_print(paramprint_chat"Date and time: %s - Server: ^"%s^""timerhostname);
    
client_print(paramprint_chat"--------------------------------------------");
    
    
client_cmd(param,"screenshot");
    
poze++

    } else {
        
        
client_cmd(param,"screenshot");
        
client_cmd(param,"kill;wait;jointeam 6");
        
        
get_user_name(paramname_player31);
        
        
client_print(0print_chat"SS was taken from ^"%s^" !"name_player);
        
        
client_print(paramprint_chat"%s, 5 photos were taken. Type your Messenger ID to an admin or you will be banned for cheating !"name_player);
        
client_print(paramprint_chat"Use say_team @ and it will be seen only by admins !");

        
remove_task(3322);
    
    }
        
    return 
PLUGIN_HANDLED;

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
pawneDz
Junior Member
Join Date: Jul 2010
Old 12-31-2010 , 06:37   Re: amx_ss Tga Format
Reply With Quote #3

Thank you.
pawneDz is offline
baiatdebaiat89
New Member
Join Date: Jul 2009
Old 07-31-2011 , 08:03   Re: amx_ss Tga Format
Reply With Quote #4

is bad
not work corectly

Quote:
amx_ss_tga.sma(44) : warning 217: loose indentation
amx_ss_tga.sma(45) : warning 217: loose indentation
amx_ss_tga.sma(46) : warning 217: loose indentation
amx_ss_tga.sma(4 : warning 217: loose indentation
amx_ss_tga.sma(71) : warning 217: loose indentation
amx_ss_tga.sma(76) : warning 217: loose indentation
amx_ss_tga.sma(7 : warning 217: loose indentation
Header size: 700 bytes
Code size: 5960 bytes
Data size: 4336 bytes
Stack/heap size: 16384 bytes; estimated max. usage=781 cells (3124 bytes)
Total requirements: 27380 bytes

7 Warnings.
Done.
baiatdebaiat89 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-31-2011 , 09:42   Re: amx_ss Tga Format
Reply With Quote #5

You can easily ignore it.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 02:11.


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