modificare plugin ss[rezolvat!]

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

10 Sep 2010, 11:28

salut vreau sa-mi adaugati la acest plugin cand execut comanda amx_ss pe un jucator sa mute acel player automat la spec!
| Afiseaza codul
#include <amxmodx> 
#include <amxmisc> 

#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")
    
   return PLUGIN_HANDLED 
}

public plugin_precache()
{
   precache_sound("misc/antend.wav");
}
Last edited by Casual on 10 Sep 2010, 20:34, edited 1 time in total.
Reason: + [rezolvat!]
Nick: MiSteR D
Image
compaq
Fost moderator
Fost moderator
Posts: 2598
Joined: 01 Dec 2008, 15:32
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS
Has thanked: 15 times
Been thanked: 150 times

10 Sep 2010, 12:47

| Afiseaza codul
[code=php]#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");
} [/code]
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

10 Sep 2010, 13:25

multumesc compaq :D ai un multumesc de la moa >:D<
Nick: MiSteR D
Image
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests