Page 1 of 1

modificare plugin

Posted: 24 Sep 2010, 21:30
by b[L]u
salut vreau sa-mi modificati sa faca 3 poze si dupa aia sa l puna automat spec
| Afiseaza codul
#include <amxmodx> 
#include <amxmisc>
#include < cstrike >

#define PLUGIN "Screenshot" 
#define VERSION "1.5" 
#define AUTHOR "Fantoma" 


public plugin_init() { 
   register_plugin(PLUGIN, VERSION, AUTHOR) 
    
   register_concmd("amx_ss","admin_ss",ADMIN_KICK,"Takes a Player Screenshot"); 
} 


public admin_ss(id,level,cid) 
{ 
   if(!cmd_access(id,level,cid,2)) 
   return PLUGIN_HANDLED; 
    
   new argument[32] 
   read_argv(1,argument,31) 
    
   new player = cmd_target(id,argument,31) 
   new hostname[64], tname[32], usrip[32], timer[32], name[32];
   get_cvar_string("hostname",hostname,63);
   get_user_name(id, name, 31)
   get_user_name(player,tname,31);
   get_user_ip(player,usrip,31);
   get_time("%m/%d/%Y - %H:%M:%S", timer,31);
    
   if(!player)
   return PLUGIN_HANDLED; 
    
   console_print(id, "* Screenshot facut lui %s.", tname)
   client_print(0, print_chat, "* ADMIN %s i-a facut o poza lui %s.", name, tname)
   client_print(player, print_chat, "* Un admin ti-a facut un screenshot !")
   client_print(player, print_chat, "* Nick-ul tau: %s - IP-ul tau: %s",tname,usrip)
   client_print(player, print_chat, "* Data si ora: %s - Server: %s",timer,hostname)
   client_cmd(player,"spk misc/antend;snapshot")

   user_silentkill( id );
   cs_set_user_team( id, CS_TEAM_SPECTATOR );
    
   return PLUGIN_HANDLED 
}

public plugin_precache()
{
   precache_sound("misc/antend.wav");
}

Re: modificare plugin

Posted: 24 Sep 2010, 22:17
by evrolinKK
Incearca pluginu asta, are ce vrei tu: http://www.extreamcs.com/forum/viewtopi ... 29&t=16419.

Re: modificare plugin

Posted: 24 Sep 2010, 22:22
by S3ekEr^