Hi, im new with amxmodx coding, but it looks quite simple,
Oki; my question:
I want to make a script if a admin type amx_screenshot 180 in console the screenshot system creates every 3 mins a screenshot of everyplayer in the game.
This is what i got;
Code:
// Adminscript for AMXMODx by xeoN
#include <amxmodx> // Need to be included
#include <amxmisc> // Need to be included
#include <engine> // Need to be included
public plugin_init(){
register_plugin("LNCCSS","1.0","xeoN")
register_clcmd("amx_screenshot","screenshot",ADMIN_SLAY,"<authid, nick or #userid>")
}
public resetview(id){attach_view(id,id);}
public screenshot(id,level,cid){
if(cmd_access(id,level,cid,2)){
new arg[32], player
read_argv(1,arg,31)
player=cmd_target(id,arg,6)
if(player){
attach_view(id,player)
client_cmd(id,"snapshot")
set_task(2.0,"resetview",id)
}
}
}
set_task( get_cvar_float("mycvar"), "screenshot", id );
Any suggestions/help ?