View Single Post
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 12-12-2016 , 16:46   Re: [REQ] Snapshot of all players
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() 

    
register_plugin("SNAP TIME""1.1""Relaxing")
    
register_clcmd("amx_snaptime""snaptime"ADMIN_LEVEL_A" - take screenshot to all players")

}

public 
snaptime (id,level,cid)

    if(!
cmd_access(id,level,cid,3))
    {
        
client_cmd(0"snapshot");
        
client_print(0print_chat"[AMXX] Screenshot took to all players")
    }
    
    return 
PLUGIN_HANDLED

- when I removed "!" from cmd_acces it wont work even if you are admin. With "!" all players can use amx_snap, so need help
__________________
Relaxing is offline