Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › General › Requests for DoD Plugins › Automatic screen shot !
6 posts, 2 people · 3,369 views Thread Rating: ★★★★★
closedAutomatic screen shot !
Started by madrippeur on 11-23-2006, 05:06 PM
M madrippeur
started this thread
Posts: 13
Threads: 2
Joined: Aug 2006
11-23-2006, 05:06 PM #1

hello all :)rnso, i was looking for a plugin (for dod) wich can take a screen shot when i'm killing some one ... I found it !rnbut the probleme is taht the plugin is taking the screen shot to fast and so on the screen shot, we don't see who we kill and the phrase :rnmadrippeur kill trucrnrnI'm giving u the source of this plugin. i just need someone to do the plugin take the screenshot a bit to late (for exemple 15ms after).rnMaybe this plugin well be fine for a lot of server :)rnrnthx for you'r help :)

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
11-23-2006, 08:24 PM #2
nI'm giving u the source of this plugin
nnyou never gavenn:-(nnlol

M madrippeur
started this thread
Posts: 13
Threads: 2
Joined: Aug 2006
11-24-2006, 06:40 AM #3

oups really sorry :(rnrn#include <amxmodx>rnrnpublic killevent() {rn new kname[32];rn new kinfo[8];rn new kid = read_data (1);rn new vid = read_data (2);rn new msg[128];rnrn get_user_info (kid, "killcam", kinfo, sizeof(kinfo));rn rn if (equal (kinfo, "on", 0)) {rn if ((kid != vid) && (kid != 0)) { rn set_hudmessage(255, 200, 000, 0.05, 0.7, 2, 0.02, 12.0, 0.0, 0.2, 4);rn rn format (msg, sizeof(msg), "Oua ! beau screenshot !");rn show_hudmessage (kid, msg);rn client_cmd (kid, "snapshot");rnrn get_user_name (kid, kname, 31);rn format (msg, sizeof(msg), "%s a pris une photo de ta belle mort ", kname);rn show_hudmessage (vid, msg);rn }rn }rnrn return PLUGIN_HANDLEDrn}rnrnpublic plugin_init(){rn register_plugin("Take13 KillCam", "0.1a", "GIR");rn register_event("DeathMsg", "killevent", "a");rn return PLUGIN_CONTINUErn}

M madrippeur
started this thread
Posts: 13
Threads: 2
Joined: Aug 2006
11-27-2006, 06:51 PM #4

no idea to put a delay somewhere please?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
11-27-2006, 07:09 PM #5

this is a pretty shitty way to add delay.. but it should worknnCVAR to control delay time: killcam_delay "0.5" (1.0=1second)nn

#include <amxmodx>nnnew p_delaynnpublic plugin_init()n{n    register_plugin("Take13 KillCam", "0.1a", "GIR")n    register_event("DeathMsg", "killevent", "a")n    p_delay = register_cvar("killcam_delay","0.5")n}nnpublic killevent()n{n    new kinfo[8]n    new kid = read_data (1)n    new vid = read_data (2)n    n    get_user_info(kid, "killcam", kinfo, sizeof(kinfo))n    n    if(equal(kinfo, "on", 0))n        {n        if((kid != vid) && (kid != 0))n            {n            new kname[33]n            get_user_name(kid,kname,32)n            n            set_task(get_pcvar_float(p_delay),"funcKiller",kid)n            set_task(get_pcvar_float(p_delay),"funcVictim",vid,kname,32)n            }n        }n}nnpublic funcKiller(id)n{n    if(is_user_connected(id) && !is_user_bot(id))n        {n        new msg[128]n        n        set_hudmessage(255, 200, 000, 0.05, 0.7, 2, 0.02, 12.0, 0.0, 0.2, 4)n        n        format(msg,sizeof(msg),"Oua ! beau screenshot !")n        show_hudmessage(id,msg)n        client_cmd(id,"snapshot")    n        }n}nnpublic funcVictim(id,name[])n{n    if(is_user_connected(id) && !is_user_bot(id))n        {n        new msg[128]n        n        format(msg,sizeof(msg),"%s a pris une photo de ta belle mort",name)n        show_hudmessage(id,msg)n        }n}
M madrippeur
started this thread
Posts: 13
Threads: 2
Joined: Aug 2006
12-14-2006, 09:44 AM #6

thaks a lot i'm testing this :)

Archive › Old Forum Threads › General › Requests for DoD Plugins › Automatic screen shot !
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC