| closedAutomatic screen shot ! |
| Started by madrippeur on 11-23-2006, 05:06 PM |
Threads: 2
Joined: Aug 2006
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 :)
Threads: 103
Joined: May 2005
nI'm giving u the source of this pluginnnyou never gavenn:-(nnlol
Threads: 2
Joined: Aug 2006
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}
Threads: 2
Joined: Aug 2006
no idea to put a delay somewhere please?
Threads: 103
Joined: May 2005
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}Threads: 2
Joined: Aug 2006
thaks a lot i'm testing this :)

