It is currently 15 Aug 2018 02:45



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 3 posts ] 
 amx_ss modificare 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 13:28
Posts: 14
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Vreau in pluginul de mai jos sa il bage automat spec cand ii face poze.

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define PLUGIN "SS Manager"
#define VERSION "3.0"
#define AUTHOR "navir"
/* Modificat de ExoTiQ */

new gmsgFade, sv

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   sv = register_cvar("amx_ss_server","Nume server")
   register_concmd("amx_ss", "ScreenShot", ADMIN_KICK, "<player> <id-ul tau>")
   gmsgFade = get_user_msgid("ScreenFade")
}

new name_player[32],param,pozes,poze

public ScreenShot(id, level, cid)
{
   if (!cmd_access(id, level, cid, 2))
      return PLUGIN_HANDLED      
   
   
   new arg[32], ip_player[32]
   read_argv(1, arg, 31)
   
   new player = cmd_target(id, arg, 4)
   
   if (!player)
      return PLUGIN_HANDLED
   
   get_user_name(player, name_player, 31);
   get_user_ip(player, ip_player, 31, 1);
   
   chat_color(id, "!tNick: !g^"%s^" !n- Ip: !g%s", name_player,ip_player);
   
   chat_color(id, "!tNick: !g^"%s^" !n- Ip: !g%s", name_player,ip_player);
   chat_color(id, "!tNick: !g^"%s^" !n- Ip: !g%s", name_player,ip_player);
   chat_color(id, "!tNick: !g^"%s^" !n- Ip: !g%s", name_player,ip_player);
   
   pozes=5
   poze=1
   
   chat_color(id, "!g^"%s^" !nTrebuie sa iti dea 5 POZE,  1 trebuie sa fie VERDE !", name_player);
   
   new hostname[64], name_admin[32], timer[32];
   
   get_cvar_string("hostname",hostname,63);
   get_user_name(id, name_admin, 31);
   get_time("%m/%d/%Y - %H:%M:%S", timer,31);
   new server[51];
   get_pcvar_string(sv,server,50)
   
   
   client_print(player, print_center, "Poza Nr. %d [ %s ]", poze+1, server);
   
   
   chat_color(player, "!n----------------------[!g%s!n]----------------------", server);
   chat_color(player, "!t[*] !nAdminul: !g^"%s^" !ntia Facut 5 POZE !", name_admin);
   chat_color(player, "!t[*] !nNick-ul tau: !g^"%s^" !n- Ip: !g^%s", name_player, ip_player);
   chat_color(player, "!t[*] !nData si Ora: !g%s !n- Server: !g^"%s^"", timer, hostname);
   chat_color(player, "!n----------------------[!g%s!n]----------------------", server);
   
   set_user_health(player, 100)
   
   client_cmd(player,"snapshot");
   
   set_task(0.5,"hp",player)
   
   poze++
   param=player
   set_task(1.0,"GreenShot",3322,_,_,"b");
   return PLUGIN_HANDLED
}

public GreenShot(id, level, cid)
{
   
   if(poze < pozes) {
      
      if(poze==3) {
         
         message_begin(MSG_ONE, gmsgFade, {0,0,0},param)
         write_short(14<<7)
         write_short(58<<6)
         write_short(1<<0)
         write_byte(5)
         write_byte(255)
         write_byte(0)
         write_byte(255)
         message_end()
      }
      
      new hostname[64], name_player[32], ip_player[32], timer[32];
      
      get_cvar_string("hostname",hostname,63);
      get_user_name(param,name_player,31);
      get_user_ip(param, ip_player, 31, 1);
      get_time("%m/%d/%Y - %H:%M:%S", timer,31);
      new server[51];
      get_pcvar_string(sv,server,50)
      
      
      client_print(param, print_center, "Poza Nr. %d [ %s ]", poze+1, server);
      
      chat_color(param, "!n----------------------[!g%s!n]----------------------", server);
      chat_color(param, "!t[*] !nNick-ul tau: !g^"%s^" !n- Ip: !g%s", name_player, ip_player);
      chat_color(param, "!t[*] !nData si Ora: !g%s !n- Server: !g^"%s^"", timer, hostname);
      chat_color(param, "!n----------------------[!g%s!n]----------------------", server);
      
      set_user_health(param, 100)
      
      client_cmd(param,"snapshot");
      
      set_task(0.5,"hp2",param)
      
      poze++
      
      } else {
      client_cmd(param,"snapshot");
      client_cmd(param,"kill;wait;jointeam 6");
      
      get_user_name(param, name_player, 31);
      
      chat_color(0,"!t[SS] !nPoze facute pe !g^"%s^" !", name_player);
      
      new i, server[51], id_admin[32];
      get_pcvar_string(sv,server,50)
      read_argv(2,id_admin,31);
      
      for(i = 1; i < 6; i++) {   
         chat_color(param, "!t[%s] !g%s, 5 poze ti'au fost facute.!", server, name_player, id_admin);
      }
      
      
      
      remove_task(3322);

      
   }
   
   return PLUGIN_HANDLED;
}
public hp(player)
   set_user_health(player, 199);
public hp2(param)
   set_user_health(param, 199);
stock chat_color(const id, const input[], any:...)
{
   new count = 1, players[32]
   static msg[320]
   vformat(msg, 190, input, 3)
   replace_all(msg, 190, "!g", "^4")
   replace_all(msg, 190, "!n", "^1")
   replace_all(msg, 190, "!t", "^3")
   replace_all(msg, 190, "!t2", "^0")
   if (id) players[0] = id; else get_players(players, count, "ch")
{
   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
         write_byte(players[i])
         write_string(msg)
         message_end()
      }
   }
}
}


08 Aug 2018 18:21
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Jul 2014 21:17
Posts: 97
Location: Horezu
Detinator Steam: Da
CS Status: Rockin'
Detinator server CS: CS.MIEZ.ro
SteamID: mo0n_sniper
Fond eXtream: 0
Salut,

Vezi daca merge asa:

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define PLUGIN "SS Manager"
#define VERSION "3.0"
#define AUTHOR "navir"
/* Modificat de ExoTiQ */

new gmsgFade, sv

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   sv = register_cvar("amx_ss_server","Nume server")
   register_concmd("amx_ss", "ScreenShot", ADMIN_KICK, "<player> <id-ul tau>")
   gmsgFade = get_user_msgid("ScreenFade")
}

new name_player[32],param,pozes,poze

public ScreenShot(id, level, cid)
{
   if (!cmd_access(id, level, cid, 2))
      return PLUGIN_HANDLED      
   
   
   new arg[32], ip_player[32]
   read_argv(1, arg, 31)
   
   new player = cmd_target(id, arg, 4)
   
   if (!player)
      return PLUGIN_HANDLED
   
   get_user_name(player, name_player, 31);
   get_user_ip(player, ip_player, 31, 1);
   
   chat_color(id, "!tNick: !g^"%s^" !n- Ip: !g%s", name_player,ip_player);
   
   chat_color(id, "!tNick: !g^"%s^" !n- Ip: !g%s", name_player,ip_player);
   chat_color(id, "!tNick: !g^"%s^" !n- Ip: !g%s", name_player,ip_player);
   chat_color(id, "!tNick: !g^"%s^" !n- Ip: !g%s", name_player,ip_player);
   
   pozes=5
   poze=1
   
   chat_color(id, "!g^"%s^" !nTrebuie sa iti dea 5 POZE,  1 trebuie sa fie VERDE !", name_player);
   
   new hostname[64], name_admin[32], timer[32];
   
   get_cvar_string("hostname",hostname,63);
   get_user_name(id, name_admin, 31);
   get_time("%m/%d/%Y - %H:%M:%S", timer,31);
   new server[51];
   get_pcvar_string(sv,server,50)
   
   
   client_print(player, print_center, "Poza Nr. %d [ %s ]", poze+1, server);
   
   
   chat_color(player, "!n----------------------[!g%s!n]----------------------", server);
   chat_color(player, "!t[*] !nAdminul: !g^"%s^" !ntia Facut 5 POZE !", name_admin);
   chat_color(player, "!t[*] !nNick-ul tau: !g^"%s^" !n- Ip: !g^%s", name_player, ip_player);
   chat_color(player, "!t[*] !nData si Ora: !g%s !n- Server: !g^"%s^"", timer, hostname);
   chat_color(player, "!n----------------------[!g%s!n]----------------------", server);
   
   set_user_health(player, 100)
   
   client_cmd(player,"snapshot");
   
   set_task(0.5,"hp",player)
   
   poze++
   param=player
   set_task(1.0,"GreenShot",3322,_,_,"b");
   return PLUGIN_HANDLED
}

public GreenShot(id, level, cid)
{
   
   if(poze < pozes) {
      
      if(poze==3) {
         
         message_begin(MSG_ONE, gmsgFade, {0,0,0},param)
         write_short(14<<7)
         write_short(58<<6)
         write_short(1<<0)
         write_byte(5)
         write_byte(255)
         write_byte(0)
         write_byte(255)
         message_end()
      }
      
      new hostname[64], name_player[32], ip_player[32], timer[32];
      
      get_cvar_string("hostname",hostname,63);
      get_user_name(param,name_player,31);
      get_user_ip(param, ip_player, 31, 1);
      get_time("%m/%d/%Y - %H:%M:%S", timer,31);
      new server[51];
      get_pcvar_string(sv,server,50)
      
      
      client_print(param, print_center, "Poza Nr. %d [ %s ]", poze+1, server);
      
      chat_color(param, "!n----------------------[!g%s!n]----------------------", server);
      chat_color(param, "!t[*] !nNick-ul tau: !g^"%s^" !n- Ip: !g%s", name_player, ip_player);
      chat_color(param, "!t[*] !nData si Ora: !g%s !n- Server: !g^"%s^"", timer, hostname);
      chat_color(param, "!n----------------------[!g%s!n]----------------------", server);
      
      set_user_health(param, 100)
      
      client_cmd(param,"snapshot");
      
      set_task(0.5,"hp2",param)
      
      poze++
      
      } else {
      client_cmd(param,"snapshot");
      user_kill(param,  1  );
      cs_set_user_team(param,  CS_TEAM_SPECTATOR  );
      get_user_name(param, name_player, 31);
      
      chat_color(0,"!t[SS] !nPoze facute pe !g^"%s^" !", name_player);
      
      new i, server[51], id_admin[32];
      get_pcvar_string(sv,server,50)
      read_argv(2,id_admin,31);
      
      for(i = 1; i < 6; i++) {   
         chat_color(param, "!t[%s] !g%s, 5 poze ti'au fost facute.!", server, name_player, id_admin);
      }
      
      
      
      remove_task(3322);

      
   }
   
   return PLUGIN_HANDLED;
}
public hp(player)
   set_user_health(player, 199);
public hp2(param)
   set_user_health(param, 199);
stock chat_color(const id, const input[], any:...)
{
   new count = 1, players[32]
   static msg[320]
   vformat(msg, 190, input, 3)
   replace_all(msg, 190, "!g", "^4")
   replace_all(msg, 190, "!n", "^1")
   replace_all(msg, 190, "!t", "^3")
   replace_all(msg, 190, "!t2", "^0")
   if (id) players[0] = id; else get_players(players, count, "ch")
{
   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
         write_byte(players[i])
         write_string(msg)
         message_end()
      }
   }
}
}

_________________
I will not die a faceless slave forgotten by history.


08 Aug 2018 18:36
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 13:28
Posts: 14
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Megre , multumesc !


09 Aug 2018 17:15
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 70 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group