Plugin edit

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
FyNNN
Membru, skill +3
Membru, skill +3
Posts: 1421
Joined: 09 May 2010, 13:43
Detinator Steam: Da
CS Status: Shhht guritza !
Detinator server CS: Nu
SteamID: mircea_fynn
Reputatie: Membru Club eXtreamCS (o luna)
Ban 3 luni!
Location: Arad
Has thanked: 123 times
Been thanked: 164 times
Contact:

26 Aug 2010, 16:00

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Say commands"
#define VERSION "1.0"
#define AUTHOR "Alka"


public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_clcmd("say", "handle_say");
}

public handle_say(id)
{
	new args[128];
	read_args(args, sizeof args - 1);
	
	if(!args[0])
		return 0;
	
	remove_quotes(args);
	
	if(equali(args, "/kick", 5) && (get_user_flags(id) & ADMIN_KICK))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_kick ^"%s^"", name);
	}
	else if(equali(args, "/ban", 4) && (get_user_flags(id) & ADMIN_BAN))
	{
		new name[32], minutes[32], reason[32];
		parse(args, args, 95, name, 31, minutes, 31, reason, 31);
		
		client_cmd(id, "amx_banip ^"%s^" %s ^"%s^"", name, minutes, reason);
	}
	else if(equali(args, "/banip", 6) && (get_user_flags(id) & ADMIN_BAN))
	{
		new name[32], minutes[32], reason[32];
		parse(args, args, 95, name, 31, minutes, 31, reason, 31);
		
		client_cmd(id, "amx_banip ^"%s^" %s ^"%s^"", name, minutes, reason);
	}
	else if(equali(args, "/addban", 7) && (get_user_flags(id) & ADMIN_BAN))
	{
		new name[32], minutes[32], reason[32];
		parse(args, args, 95, name, 31, minutes, 31, reason, 31);
		
		client_cmd(id, "amx_addban ^"%s^" %s ^"%s^"", name, minutes, reason);
	}
	else if(equali(args, "/slay", 5) && (get_user_flags(id) & ADMIN_SLAY))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_slay ^"%s^"", name);
	}
	else if(equali(args, "/map", 4) && (get_user_flags(id) & ADMIN_MAP))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_map ^"%s^"", name);
	}
	else if(equali(args, "/votemap", 8) && (get_user_flags(id) & ADMIN_VOTE))
	{
		new name[128];
		parse(args, args, 127, name, 127);
		
		client_cmd(id, "amx_votemap ^"%s^"", name);
	}
	return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

Imi poate adauga cineva comanda de /slap in plugin pls? :)

#CFG Slash are buguri nu stiu de ce :|
SaByUtZa VaSy ;x

26 Aug 2010, 23:23

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Say commands"
#define VERSION "1.0"
#define AUTHOR "Alka"


public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_clcmd("say", "handle_say");
}

public handle_say(id)
{
	new args[128];
	read_args(args, sizeof args - 1);
	
	if(!args[0])
		return 0;
	
	remove_quotes(args);
	
	if(equali(args, "/kick", 5) && (get_user_flags(id) & ADMIN_KICK))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_kick ^"%s^"", name);
	}
	else if(equali(args, "/ban", 4) && (get_user_flags(id) & ADMIN_BAN))
	{
		new name[32], minutes[32], reason[32];
		parse(args, args, 95, name, 31, minutes, 31, reason, 31);
		
		client_cmd(id, "amx_banip ^"%s^" %s ^"%s^"", name, minutes, reason);
	}
	else if(equali(args, "/banip", 6) && (get_user_flags(id) & ADMIN_BAN))
	{
		new name[32], minutes[32], reason[32];
		parse(args, args, 95, name, 31, minutes, 31, reason, 31);
		
		client_cmd(id, "amx_banip ^"%s^" %s ^"%s^"", name, minutes, reason);
	}
	else if(equali(args, "/addban", 7) && (get_user_flags(id) & ADMIN_BAN))
	{
		new name[32], minutes[32], reason[32];
		parse(args, args, 95, name, 31, minutes, 31, reason, 31);
		
		client_cmd(id, "amx_addban ^"%s^" %s ^"%s^"", name, minutes, reason);
	}
	else if(equali(args, "/slay", 5) && (get_user_flags(id) & ADMIN_SLAY))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_slay ^"%s^"", name);
	}
	else if(equali(args, "/slap", 5) && (get_user_flags(id) & ADMIN_SLAP))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_slap ^"%s^"", name);
	}
	else if(equali(args, "/map", 4) && (get_user_flags(id) & ADMIN_MAP))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_map ^"%s^"", name);
	}
	else if(equali(args, "/votemap", 8) && (get_user_flags(id) & ADMIN_VOTE))
	{
		new name[128];
		parse(args, args, 127, name, 127);
		
		client_cmd(id, "amx_votemap ^"%s^"", name);
	}
	return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Vezi daca merge :|
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4380
Joined: 02 Apr 2009, 18:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 543 times
Been thanked: 820 times
Contact:

27 Aug 2010, 08:56

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Say commands"
#define VERSION "1.0"
#define AUTHOR "Alka"


public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_clcmd("say", "handle_say");
}

public handle_say(id)
{
	new args[128];
	read_args(args, sizeof args - 1);
	
	if(!args[0])
		return 0;
	
	remove_quotes(args);
	
	if(equali(args, "/kick", 5) && (get_user_flags(id) & ADMIN_KICK))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_kick ^"%s^"", name);
	}
	else if(equali(args, "/ban", 4) && (get_user_flags(id) & ADMIN_BAN))
	{
		new name[32], minutes[32], reason[32];
		parse(args, args, 95, name, 31, minutes, 31, reason, 31);
		
		client_cmd(id, "amx_banip ^"%s^" %s ^"%s^"", name, minutes, reason);
	}
	else if(equali(args, "/banip", 6) && (get_user_flags(id) & ADMIN_BAN))
	{
		new name[32], minutes[32], reason[32];
		parse(args, args, 95, name, 31, minutes, 31, reason, 31);
		
		client_cmd(id, "amx_banip ^"%s^" %s ^"%s^"", name, minutes, reason);
	}
	else if(equali(args, "/addban", 7) && (get_user_flags(id) & ADMIN_BAN))
	{
		new name[32], minutes[32], reason[32];
		parse(args, args, 95, name, 31, minutes, 31, reason, 31);
		
		client_cmd(id, "amx_addban ^"%s^" %s ^"%s^"", name, minutes, reason);
	}
	else if(equali(args, "/slay", 5) && (get_user_flags(id) & ADMIN_SLAY))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_slay ^"%s^"", name);
	}
	else if(equali(args, "/slap", 5) && (get_user_flags(id) & ADMIN_SLAP))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_slap ^"%s^" 0", name);
	}
	else if(equali(args, "/map", 4) && (get_user_flags(id) & ADMIN_MAP))
	{
		new name[32];
		parse(args, args, 95, name, 31);
		
		client_cmd(id, "amx_map ^"%s^"", name);
	}
	else if(equali(args, "/votemap", 8) && (get_user_flags(id) & ADMIN_VOTE))
	{
		new name[128];
		parse(args, args, 127, name, 127);
		
		client_cmd(id, "amx_votemap ^"%s^"", name);
	}
	return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
User avatar
FyNNN
Membru, skill +3
Membru, skill +3
Posts: 1421
Joined: 09 May 2010, 13:43
Detinator Steam: Da
CS Status: Shhht guritza !
Detinator server CS: Nu
SteamID: mircea_fynn
Reputatie: Membru Club eXtreamCS (o luna)
Ban 3 luni!
Location: Arad
Has thanked: 123 times
Been thanked: 164 times
Contact:

27 Aug 2010, 13:07

Eroare la amandoua la compilare.
Reptile
Membru, skill +1
Membru, skill +1
Posts: 245
Joined: 12 Nov 2008, 14:11
Detinator Steam: Nu
Reputatie: Fost manager
Been thanked: 23 times

27 Aug 2010, 21:20

s cmds | Afiseaza codul
[code]#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Say commands"
#define VERSION "1.0"
#define AUTHOR "Alka"


public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR);
   
   register_clcmd("say", "handle_say");
}

public handle_say(id)
{
   new args[128];
   read_args(args, sizeof args - 1);
   
   if(!args[0])
      return 0;
   
   remove_quotes(args);
   
   if(equali(args, "/kick", 5) && (get_user_flags(id) & ADMIN_KICK))
   {
      new name[32];
      parse(args, args, 95, name, 31);
      
      client_cmd(id, "amx_kick ^"%s^"", name);
   }
   else if(equali(args, "/ban", 4) && (get_user_flags(id) & ADMIN_BAN))
   {
      new name[32], minutes[32], reason[32];
      parse(args, args, 95, name, 31, minutes, 31, reason, 31);
      
      client_cmd(id, "amx_banip ^"%s^" %s ^"%s^"", name, minutes, reason);
   }
   else if(equali(args, "/banip", 6) && (get_user_flags(id) & ADMIN_BAN))
   {
      new name[32], minutes[32], reason[32];
      parse(args, args, 95, name, 31, minutes, 31, reason, 31);
      
      client_cmd(id, "amx_banip ^"%s^" %s ^"%s^"", name, minutes, reason);
   }
   else if(equali(args, "/addban", 7) && (get_user_flags(id) & ADMIN_BAN))
   {
      new name[32], minutes[32], reason[32];
      parse(args, args, 95, name, 31, minutes, 31, reason, 31);
      
      client_cmd(id, "amx_addban ^"%s^" %s ^"%s^"", name, minutes, reason);
   }
   else if(equali(args, "/slay", 5) && (get_user_flags(id) & ADMIN_SLAY))
   {
      new name[32];
      parse(args, args, 95, name, 31);
      
      client_cmd(id, "amx_slay ^"%s^"", name);
   }
   else if(equali(args, "/map", 4) && (get_user_flags(id) & ADMIN_MAP))
   {
      new name[32];
      parse(args, args, 95, name, 31);
      
      client_cmd(id, "amx_map ^"%s^"", name);
   }
   else if(equali(args, "/votemap", 8) && (get_user_flags(id) & ADMIN_VOTE))
   {
      new name[128];
      parse(args, args, 127, name, 127);
      
      client_cmd(id, "amx_votemap ^"%s^"", name);
   }

   else if( equali( args, "/slap", 5 ) && ( get_user_flags( id ) & ADMIN_SLAY ) )
   {
      static szName[ 33 ], szPower[ 101 ];
      parse( args, args, 127, szName, charsmax( szName ), szPower, charsmax( szPower ) );
   
      server_cmd( "amx_slap ^"%s^" %d", szName, szPower );
   }
   return 0;
}[/code]
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests