#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <core>
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <core>
public plugin_init(){
register_plugin("LNCCSS","1.0","xeoN")
register_clcmd("amx_screenshot","screenshot",ADMIN_SLAY,"<authid, nick or #userid>")
register_cvar("amx_screentime","3.0")
set_task(2.0,"resetview",id)
set_task( get_cvar_float("amx_screentime"), "screenshot", id)
}
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")
}
}
}
public client_connect(id){
client_print(id, print_console, "Latenightcup Screenshot System is loaded.")
return 1
}
If i type: /amx_screentime 180 ; it will make a screenshot of EVERY player in the game on every 3 minutes
If i type /amx_screenshot X ; it will make a screenshot of the player X
But the script wont load, need help