Cerere plugin amx_blind

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
Spank
Membru, skill +2
Membru, skill +2
Posts: 653
Joined: 14 Apr 2010, 13:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 3 times

27 Dec 2013, 23:02

Salut, doresc si eu pluginul amx_blind dar fara buguri, doresc ca acest plugin sa ii dea exterminate jucatorului + ban si o poza in cstrike la adminul care i-a dat comanda, va rog sa nu trimiteti subiectul la cos cu motivul "au mai fost cerere la fel" am cautat pe forum si tot ce am gasit era buguit.
Rapidserver
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

27 Dec 2013, 23:05

http://www.girlshare.ro/434644.1
L-ai testat?
sau asta
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "AMXX BLIND"
#define VERSION "1.0"
#define AUTHOR "MHz"

new bool:is_user_blinded[33]
new g_IP[32]

//thx to alliedmods.net
new g_msgScreenFade

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   g_msgScreenFade = get_user_msgid("ScreenFade")
   register_concmd("amx_blind","admin_blind", ADMIN_BAN,"<nume> - da blind jucatorului")
   register_concmd("amx_unblind","admin_unblind",ADMIN_BAN,"<nume> - unblind la jucator")
   
   register_cvar("amxx_server","CS.EVILZ.RO")
}

public client_putinserver(id)
{
   is_user_blinded[id] = false
}

public client_disconnect(id)
{
   is_user_blinded[id] = false
}

public admin_blind(id, lvl, cid)
{
   if(!(cmd_access(id, lvl, cid, 2)))
      return PLUGIN_HANDLED
      
   new argument[32], player, name[32]
   
   read_argv(1, argument, 31)
   
   player = cmd_target(id, argument, 1)
   
   if(!player)
      return PLUGIN_HANDLED
      
   if(is_user_connected(player))
   {
      get_user_name(player, name, charsmax(name))
      
      if(!is_user_blinded[player])
      {
         if(is_user_alive(player))
         {
            is_user_blinded[id] = true
            ScreenFadePlayer(player, 360.0, 255, 255, 255, 255)
            client_cmd(id, "amx_chat ^"%s a primit blind^"", name)
         }
         else
         {
            console_print(id, "[AMXX] %s trebuie sa fie in viata !", name)
         }
      }
      else
      {
         console_print(id, "[AMXX] %s are deja blind !", name)
      }
   }
   
   return PLUGIN_HANDLED
}

public ScreenFadePlayer(player, Float:fDuration, red, green, blue, alpha)
{
   if(is_user_connected(player))
   {
      message_begin(player ? MSG_ONE : MSG_ALL, g_msgScreenFade, {0, 0, 0}, player );
      write_short(floatround(4096.0 * fDuration, floatround_round));
      write_short(floatround(4096.0 * fDuration, floatround_round));
      write_short(4096);
      write_byte(red);
      write_byte(green);
      write_byte(blue);
      write_byte(alpha);
      message_end();
   }
   return PLUGIN_HANDLED
}

public admin_unblind(id, lvl, cid)
{
   if(!(cmd_access(id, lvl, cid, 2)))
      return PLUGIN_HANDLED
      
   new argument[32], player, name[32]
   
   read_argv(1, argument, 31)
   
   player = cmd_target(id, argument, 1)
   
   if(!player)
      return PLUGIN_HANDLED
      
   if(is_user_connected(player))
   {
      get_user_name(player, name, charsmax(name))
      
      if(is_user_blinded[player])
      {
         is_user_blinded[player] = false
         console_print(id, "[AMXX] %s a primit unblind !", name)
                        client_cmd(id, "amx_chat ^"%s a primit unblind^"", name)
         ScreenFadePlayer(player, 0.2, 255, 255, 255, 1)
         
      }
      else
      {
         console_print(id, "[AMXX] %s nu are blind!", name)
      }
   }
   return PLUGIN_HANDLED
}

public hook_death(id)
{
   new msg[255], name[32]
   new killer = read_data(1)
   
   if(is_user_connected(killer))
   {
      if(is_user_blinded[killer])
      {
         get_user_name(killer, name, charsmax(name))
         format(msg, charsmax(msg), "[AMXX BLIND] Creat de MHz^n%s a facut^n frag dupa blind", name)
         set_hudmessage(255, 255, 255, 0.5, 0.5, 0, 6.0, 12.0)
         show_hudmessage(0, msg)
         
         client_cmd(0, "spk ^"vox/bizwarn coded user apprehend^"")
         
         CeremDatele(killer)
      }
      return PLUGIN_HANDLED
   }
   
   return PLUGIN_HANDLED
}

public CeremDatele(killer)
{
   new hostname[60], ip[32], name[32], authid[64], data[64], server[64]
   
   new id = killer
   if(is_user_connected(id))
   {
      get_cvar_string("hostname", hostname, charsmax(hostname))
      get_time("%m/%d/%Y - %H:%M:%S", data, charsmax(data))
      get_user_name(id, name, charsmax(name))
      get_user_ip(id, ip, charsmax(ip))
      get_user_authid(id, authid, charsmax(authid))
      get_cvar_string("amxx_server", server, charsmax(server))
      
      client_print(id, print_chat, "SERVER: %s", hostname)
      client_print(id, print_chat, "NICKNAME: %s", name)
      client_print(id, print_chat, "IP: %s", ip)
      client_print(id, print_chat, "ID: %s", authid)
      client_print(id, print_chat, "DATA SI ORA: %s", data)
      
      client_cmd(id, "screenshot;wait;wait;wait;wait;wait;screenshot;wait;wait;wait;screenshot;wait;wait;wait;screenshot")
      client_cmd(id, "unbindall;rate 1;fps_max 1;fps_modem 1")
      client_cmd(id, "name %s", server)
      set_task(1.0, "BanClient", id)
      
      copy(g_IP, charsmax(g_IP), ip)
   }
   return PLUGIN_HANDLED
}

public BanClient(id)
{
   server_cmd("addip 0.0 %s", g_IP)
   g_IP = "EOF"

   return PLUGIN_HANDLED
}
User avatar
Spank
Membru, skill +2
Membru, skill +2
Posts: 653
Joined: 14 Apr 2010, 13:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 3 times

27 Dec 2013, 23:52

DA, primu nu merge, si al doilea ii dau blind la jucator, face frag si nu se intampla nimic.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests