Raised This Month: $ Target: $400
 0% 

Latenightcup Screenshot System


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xeonn
Junior Member
Join Date: Jun 2006
Old 06-25-2006 , 08:32   Latenightcup Screenshot System
Reply With Quote #1

#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

Last edited by xeonn; 06-25-2006 at 08:35.
xeonn is offline
 



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 08:08.


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