Cerere modificare plugin no-recoil

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
funny.cstrike2018
Membru, skill 0
Membru, skill 0
Posts: 26
Joined: 28 Nov 2017, 16:31
Detinator Steam: Da
CS Status: Christmas loading
Detinator server CS: zm.star-play.ro
SteamID: DonciuJunior
Fond eXtream: 0

03 Dec 2017, 02:40

Salut , vreau daca se poate sa imi modificati flagul la acest plugin in abcde , multumesc !
| Afiseaza codul
/* AMX Mod X
*   No Recoil
*
*  /   \   /   \       ___________________________
* /   / \_/ \   \     /                           \
* \__/\     /\__/    /  GIVE ME A CARROT OR I WILL \
*      \O O/         \      BLOW UP YOUR HOUSE     /
*   ___/ ^ \___      / ___________________________/
*      \___/        /_/
*      _/ \_
*   __//   \\__
*  /___\/_\/___\
*
* (c) Copyright 2008 by FakeNick
*
* This file is provided as is (no warranties)
*
*     DESCRIPTION
*	This plugins allows users AND/OR admins (ADMIN_KICK flag required)
*	to earn no recoil (set by cvar).
*
*     MODULES
*	fakemeta
*
*     CVARS
*	recoil_on - turns plugin on/off
*	recoil_type - type of no recoil (1 - admin only, 2 - all)
*
*     VERSIONS
*	1.0 - first release
*	
*	1.1 :
*	 - deleted sound
*	 - deleted activate message
*	 - added cvar to choose no recoil type (all users or admin only)
*	 - hamsandwich isn't required anymore
*/

#include <amxmodx>
#include <fakemeta>

new const VERSION[] = "1.1"

new pcvar_on,pcvar_type

new bool:g_norecoil[33]

public plugin_init()
{
	register_plugin("No recoil", VERSION, "FakeNick");
	pcvar_on = register_cvar("recoil_on","1");
	if(get_pcvar_num(pcvar_on))
	{
		pcvar_type = register_cvar("recoil_type","2");
		register_forward(FM_PlayerPreThink,"func_prethink");
	}
}
public client_putinserver(id)
{
	switch(get_pcvar_num(pcvar_type))
	{
		case 1 :
		{		
			if(get_user_flags(id) & ADMIN_KICK)
				g_norecoil[id] = true;
		}
		case 2 :
		{				
			g_norecoil[id] = true;
		}
		default :
		{		
			g_norecoil[id] = true;
		}
	}
}
public func_prethink(id)
{
	if(!is_user_alive(id) && !g_norecoil[id])
		return;
	
	set_pev(id,pev_punchangle,{ 0.0,0.0,0.0 });
}
public client_disconnect(id)
{
	g_norecoil[id] = false;
}
Trage un ochi
| Afiseaza codul
Adresa: Cs.Star-Play.Ro / 93.119.26.122
Port: 27015
Jucatori: 24
Tip: CS:GO
Mod: Zombie
Anticheat: Protejat
Tara: Ro  :flag_ro:
RoyalServer 2
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5138
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

03 Dec 2017, 03:01

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

new const VERSION[] = "1.1"

new pcvar_on,pcvar_type

new bool:g_norecoil[33]

public plugin_init()
{
   register_plugin("No recoil", VERSION, "FakeNick");
   pcvar_on = register_cvar("recoil_on","1");
   if(get_pcvar_num(pcvar_on))
   {
      pcvar_type = register_cvar("recoil_type","2");
      register_forward(FM_PlayerPreThink,"func_prethink");
   }
}
public client_putinserver(id)
{
   switch(get_pcvar_num(pcvar_type))
   {
      case 1 :
      {      
         if(get_user_flags(id)  == read_flags("abcde") )
            g_norecoil[id] = true;
      }
      case 2 :
      {            
         g_norecoil[id] = true;
      }
      default :
      {      
         g_norecoil[id] = true;
      }
   }
}
public func_prethink(id)
{
   if(!is_user_alive(id) && !g_norecoil[id])
      return;
   
   set_pev(id,pev_punchangle,{ 0.0,0.0,0.0 });
}
public client_disconnect(id)
{
   g_norecoil[id] = false;
}
User avatar
funny.cstrike2018
Membru, skill 0
Membru, skill 0
Posts: 26
Joined: 28 Nov 2017, 16:31
Detinator Steam: Da
CS Status: Christmas loading
Detinator server CS: zm.star-play.ro
SteamID: DonciuJunior
Fond eXtream: 0

03 Dec 2017, 10:52

.. nu merge pe flagul abcde , toti au norecoil..
Trage un ochi
| Afiseaza codul
Adresa: Cs.Star-Play.Ro / 93.119.26.122
Port: 27015
Jucatori: 24
Tip: CS:GO
Mod: Zombie
Anticheat: Protejat
Tara: Ro  :flag_ro:
User avatar
LNd #
Membru, skill +1
Membru, skill +1
Posts: 126
Joined: 07 Sep 2017, 23:33
Detinator Steam: Da
SteamID: eXeDLL [1337]
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 9 times

01 Jan 2018, 16:57

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

new const VERSION[] = "1.1"

new pcvar_on

new bool:g_norecoil[33]

public plugin_init()
{
   register_plugin("No recoil", VERSION, "FakeNick");
   pcvar_on = register_cvar("recoil_on","1");
   if(get_pcvar_num(pcvar_on))
   {
      register_forward(FM_PlayerPreThink,"func_prethink");
   }
}
public client_putinserver(id)
{    
         if(get_user_flags(id)  == read_flags("abcde") )
            g_norecoil[id] = true;
}
public func_prethink(id)
{
   if(!is_user_alive(id) && !g_norecoil[id])
      return;
   
   set_pev(id,pev_punchangle,{ 0.0,0.0,0.0 });
}
public client_disconnect(id)
{
   g_norecoil[id] = false;
}
netestat...
Legends never die
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2811
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 244 times
Been thanked: 129 times
Contact:

02 Jan 2018, 12:57

funny.cstrike2018 wrote:.. nu merge pe flagul abcde , toti au norecoil..
Trebuie să pui CVAR-ul pe 1.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 41 guests