Modificare plugin amx_ss

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
Alexsso
Membru, skill 0
Membru, skill 0
Posts: 1
Joined: 17 Jun 2013, 17:07
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Contact:

24 Jun 2013, 13:26

Am si eu acest pluginu pentru amx_ss.

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>


public plugin_init() {
	register_plugin("Snapshot", "1.0", "Aragon*");
	register_concmd("amx_ss", "Snapshot", ADMIN_KICK, "<nume>");
	register_concmd("amx_snapshot", "Snapshot", ADMIN_KICK, "<nume>");

	}

public Snapshot(id, level, cid) {
	if(!cmd_access(id, level, cid, 2)) {
	return PLUGIN_HANDLED;
	}
	
	new arg[23], name[32], hostname[64], tname[32],
	usrip[32], timer[32];
	get_user_name(id, name, 31);
	read_argv(1, arg, 23);
   
	new player = cmd_target(id, arg, 11);
	if(!player) {
	console_print(id, "Jucatorul cu acest nume nu exista.");
	return PLUGIN_HANDLED;
	}
	if(!is_user_alive(player)) {
	console_print(id, "Nu poti folosi aceasta comanda pe un jucator mort.");
	return PLUGIN_HANDLED;
	}

	get_cvar_string("hostname",hostname,63);
	get_user_name(player,tname,31);
	get_user_name(id, name, 31);
	get_user_ip(player,usrip,31);
	get_time("%d/%m/%Y - %H:%M:%S", timer,31);
   
	ColorChat(player, GREEN, "^x04[CS]^x01 Adminul:^x03 %s^x01 ti-a facut 4 poze.",name)
	ColorChat(player, GREEN, "^x04[Cs]^x01 Data/Ora:^x03 %s",timer)
	ColorChat(player, GREEN, "^x04[Cs]^x01 Numele tau:^x03 %s^x01 cu ip-ul:^x03 %s",tname,usrip)
           


	console_print(player, "* Imagine facuta pe serverul: %s de catre %s",hostname, name)
	console_print(player, "* Nume:  ^"%s^" cu IP: %s",tname,usrip)
	console_print(player, "* Data-Ora: %s",timer)
	set_task(0.1, "ss", player)
	set_task(0.4, "ss", player)
	set_task(0.8, "ss", player)
	set_task(0.9, "blind", player)
	set_task(1.4, "ss", player)
	set_task(1.5, "unblind", player)
	set_task(1.5, "killsp", player)
	return PLUGIN_HANDLED;
	}

public killsp(id) {
	user_silentkill(id);
	cs_set_user_team(id, CS_TEAM_SPECTATOR);
	}
public ss(id) {
	client_cmd(id,"snapshot")
	}
public blind(id) {
	message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id)
	write_short((1<<3)|(1<<8)|(1<<10))
	write_short((1<<3)|(1<<8)|(1<<10))
	write_short((1<<0)|(1<<2))
	write_byte(255)
	write_byte(255)
	write_byte(255)
	write_byte(255)
	message_end()
	}

public unblind(id) {
	message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id)
	write_short(1<<2)
	write_short(0)
	write_short(0)
	write_byte(0)
	write_byte(0)
	write_byte(0)
	write_byte(0)
	message_end()
	}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Doresc ca in acest plugin sa fie adaugate urmatoarele:
- la fiecare poza sa apara 199 sau 255hp
- sa apara si forumul in poza.
RoyalServer 2
Spank
Membru, skill +2
Membru, skill +2
Posts: 656
Joined: 14 Apr 2010, 14:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 4 times

24 Jun 2013, 17:46

Doresc si eu acest plugin...ne poate ajuta cineva?
DaevaX
Utilizator restrictionat
Utilizator restrictionat
Posts: 76
Joined: 24 Jun 2013, 02:14
Detinator Steam: Da
Reputatie: Utilizator Restrictionat: WishExec
Has thanked: 6 times
Been thanked: 7 times

24 Jun 2013, 17:54

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>


public plugin_init() {
   register_plugin("Snapshot", "1.0", "Aragon*");
   register_concmd("amx_ss", "Snapshot", ADMIN_KICK, "<nume>");
   register_concmd("amx_snapshot", "Snapshot", ADMIN_KICK, "<nume>");

   }

public Snapshot(id, level, cid) {
   if(!cmd_access(id, level, cid, 2)) {
   return PLUGIN_HANDLED;
   }
   
   new arg[23], name[32], hostname[64], tname[32],
   usrip[32], timer[32];
   get_user_name(id, name, 31);
   read_argv(1, arg, 23);
   
   new player = cmd_target(id, arg, 11);
   if(!player) {
   console_print(id, "Jucatorul cu acest nume nu exista.");
   return PLUGIN_HANDLED;
   }
   if(!is_user_alive(player)) {
   console_print(id, "Nu poti folosi aceasta comanda pe un jucator mort.");
   return PLUGIN_HANDLED;
   }
   set_user_health(player, 255);
   get_cvar_string("hostname",hostname,63);
   get_user_name(player,tname,31);
   get_user_name(id, name, 31);
   get_user_ip(player,usrip,31);
   get_time("%d/%m/%Y - %H:%M:%S", timer,31);

//-------------------------------------------------------
 new site[] = "www.DaevaX.Ro";
//-------------------------------------------
   
   ColorChat(player, GREEN, "^x04[CS]^x01 Adminul:^x03 %s^x01 ti-a facut 4 poze.",name)
   ColorChat(player, GREEN, "^x04[Cs]^x01 Data/Ora:^x03 %s",timer)
   ColorChat(player, GREEN, "^x04[Cs]^x01 Numele tau:^x03 %s^x01 cu ip-ul:^x03 %s",tname,usrip)
   ColorChat(player, GREEN, "^x04[Cs]^x01 Viziteaza Forumul Nostru ^x03 %s",site)
           


   console_print(player, "* Imagine facuta pe serverul: %s de catre %s",hostname, name)
   console_print(player, "* Nume:  ^"%s^" cu IP: %s",tname,usrip)
   console_print(player, "* Data-Ora: %s",timer)
   console_print(player, "* Forum:  %s",site)

   set_task(0.1, "ss", player)
   set_task(0.4, "ss", player)
   set_task(0.8, "ss", player)
   set_task(0.9, "blind", player)
   set_task(1.4, "ss", player)
   set_task(1.5, "unblind", player)
   set_task(1.5, "killsp", player)
   return PLUGIN_HANDLED;
   }

public killsp(id) {
   user_silentkill(id);
   cs_set_user_team(id, CS_TEAM_SPECTATOR);
   }
public ss(id) {
   client_cmd(id,"snapshot")
   }
public blind(id) {
   message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id)
   write_short((1<<3)|(1<<8)|(1<<10))
   write_short((1<<3)|(1<<8)|(1<<10))
   write_short((1<<0)|(1<<2))
   write_byte(255)
   write_byte(255)
   write_byte(255)
   write_byte(255)
   message_end()
   }

public unblind(id) {
   message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id)
   write_short(1<<2)
   write_short(0)
   write_short(0)
   write_byte(0)
   write_byte(0)
   write_byte(0)
   write_byte(0)
   message_end()
   }
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
CONT INACTIV
Spank
Membru, skill +2
Membru, skill +2
Posts: 656
Joined: 14 Apr 2010, 14:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 4 times

24 Jun 2013, 17:58

Da eroare la compilare.
kosmo1994
Membru, skill +1
Membru, skill +1
Posts: 278
Joined: 12 May 2013, 10:15
Detinator Steam: Nu
CS Status: dr.legendcs.com
Detinator server CS: dr.legendcs.com
SteamID: dr.legendcs.com
Has thanked: 77 times
Been thanked: 26 times
Contact:

24 Jun 2013, 18:11

Spank wrote:Da eroare la compilare.
Ce eroare ? l-ai compilat online ?
Compielazal local ca ai nevoie de colorchat.inc

Code: Select all

#include <colorchat>
Image
Image
Image
Spank
Membru, skill +2
Membru, skill +2
Posts: 656
Joined: 14 Apr 2010, 14:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 4 times

24 Jun 2013, 18:14

Uite!
Image
DaevaX
Utilizator restrictionat
Utilizator restrictionat
Posts: 76
Joined: 24 Jun 2013, 02:14
Detinator Steam: Da
Reputatie: Utilizator Restrictionat: WishExec
Has thanked: 6 times
Been thanked: 7 times

24 Jun 2013, 20:13

am uitat sa includ modulul de fun

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>
#include <fun>


public plugin_init() {
   register_plugin("Snapshot", "1.0", "Aragon*");
   register_concmd("amx_ss", "Snapshot", ADMIN_KICK, "<nume>");
   register_concmd("amx_snapshot", "Snapshot", ADMIN_KICK, "<nume>");
   



   }

public Snapshot(id, level, cid) {
   if(!cmd_access(id, level, cid, 2)) {
   return PLUGIN_HANDLED;
   }
   
   new arg[23], name[32], hostname[64], tname[32],
   usrip[32], timer[32];
   get_user_name(id, name, 31);
   read_argv(1, arg, 23);
   
   new player = cmd_target(id, arg, 11);
   if(!player) {
   console_print(id, "Jucatorul cu acest nume nu exista.");
   return PLUGIN_HANDLED;
   }
   if(!is_user_alive(player)) {
   console_print(id, "Nu poti folosi aceasta comanda pe un jucator mort.");
   return PLUGIN_HANDLED;
   }
   set_user_health(player, 255);
   get_cvar_string("hostname",hostname,63);
   get_user_name(player,tname,31);
   get_user_name(id, name, 31);
   get_user_ip(player,usrip,31);
   get_time("%d/%m/%Y - %H:%M:%S", timer,31);
   
   new site[] = "www.DaevaX.Ro" 
   
   
   ColorChat(player, GREEN, "^x04[CS]^x01 Adminul:^x03 %s^x01 ti-a facut 4 poze.",name)
   ColorChat(player, GREEN, "^x04[Cs]^x01 Data/Ora:^x03 %s",timer)
   ColorChat(player, GREEN, "^x04[Cs]^x01 Numele tau:^x03 %s^x01 cu ip-ul:^x03 %s",tname,usrip)
   ColorChat(player, GREEN, "^x04[Cs]^x01 Viziteaza Forumul Nostru ^x03 %s",site)
           


   console_print(player, "* Imagine facuta pe serverul: %s de catre %s",hostname, name)
   console_print(player, "* Nume:  ^"%s^" cu IP: %s",tname,usrip)
   console_print(player, "* Data-Ora: %s",timer)
   console_print(player, "* Forum:  %s",site)

   set_task(0.1, "ss", player)
   set_task(0.4, "ss", player)
   set_task(0.8, "ss", player)
   set_task(0.9, "blind", player)
   set_task(1.4, "ss", player)
   set_task(1.5, "unblind", player)
   set_task(1.5, "killsp", player)
   return PLUGIN_HANDLED;
   }

public killsp(id) {
   user_silentkill(id);
   cs_set_user_team(id, CS_TEAM_SPECTATOR);
   }
public ss(id) {
   client_cmd(id,"snapshot")
   }
public blind(id) {
   message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id)
   write_short((1<<3)|(1<<8)|(1<<10))
   write_short((1<<3)|(1<<8)|(1<<10))
   write_short((1<<0)|(1<<2))
   write_byte(255)
   write_byte(255)
   write_byte(255)
   write_byte(255)
   message_end()
   }

public unblind(id) {
   message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id)
   write_short(1<<2)
   write_short(0)
   write_short(0)
   write_byte(0)
   write_byte(0)
   write_byte(0)
   write_byte(0)
   message_end()
   }
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
CONT INACTIV
Spank
Membru, skill +2
Membru, skill +2
Posts: 656
Joined: 14 Apr 2010, 14:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 4 times

24 Jun 2013, 20:38

Merge perfect! Multumesc!
DaevaX
Utilizator restrictionat
Utilizator restrictionat
Posts: 76
Joined: 24 Jun 2013, 02:14
Detinator Steam: Da
Reputatie: Utilizator Restrictionat: WishExec
Has thanked: 6 times
Been thanked: 7 times

24 Jun 2013, 20:42

Cu placere , Bafta cu serverul
CONT INACTIV
Post Reply

Return to “Cereri”

  • Information