Cerere modificare minora -

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
PauL.mZq
Membru, skill +1
Membru, skill +1
Posts: 405
Joined: 16 May 2011, 19:34
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS ( doua saptamani )
Location: Suceava
Has thanked: 13 times
Been thanked: 3 times

15 Jul 2012, 12:58

Buna ziua, am un plugin de auto-bhop . si as dori ca bunnyhopul sa poata fi folosit doar de catre adminii, cu accesc flagul " a ".
/*
*
* Author: Cheesy Peteza
* Date: 22-Apr-2004 (updated 2-March-2005)
*
*
* Description: Enable bunny hopping in Counter-Strike.
*
* Cvars:
* bh_enabled 1 to enable this plugin, 0 to disable.
* bh_autojump If set to 1 players just need to hold down jump to bunny hop (no skill required)
* bh_showusage If set to 1 it will inform joining players that bunny hopping has been enabled
* and how to use it if bh_autojump enabled.
*
* Requirements: AMXModX 0.16 or greater
*
*
*/

#include <amxmodx>
#include <engine>

#define FL_WATERJUMP (1<<11) // player jumping out of water
#define FL_ONGROUND (1<<9) // At rest / on the ground

public plugin_init() {
register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)

register_cvar("bh_enabled", "1")
register_cvar("bh_autojump", "1")
register_cvar("bh_showusage", "1")
}

public client_PreThink(id) {
if (!get_cvar_num("bh_enabled"))
return PLUGIN_CONTINUE

entity_set_float(id, EV_FL_fuser2, 0.0) // Disable slow down after jumping

if (!get_cvar_num("bh_autojump"))
return PLUGIN_CONTINUE

// Code from CBasePlayer::Jump (player.cpp) Make a player jump automatically
if (entity_get_int(id, EV_INT_button) & 2) { // If holding jump
new flags = entity_get_int(id, EV_INT_flags)

if (flags & FL_WATERJUMP)
return PLUGIN_CONTINUE
if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
return PLUGIN_CONTINUE
if ( !(flags & FL_ONGROUND) )
return PLUGIN_CONTINUE

new Float:velocity[3]
entity_get_vector(id, EV_VEC_velocity, velocity)
velocity[2] += 250.0
entity_set_vector(id, EV_VEC_velocity, velocity)

entity_set_int(id, EV_INT_gaitsequence, 6) // Play the Jump Animation
}
return PLUGIN_CONTINUE
}

public client_authorized(id)
set_task(30.0, "showUsage", id)

public showUsage(id) {
if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
return PLUGIN_HANDLED

if ( !get_cvar_num("bh_autojump") ) {
client_print(id, print_chat, "[AMX] Bunny hopping is enabled on this server. You will not slow down after jumping.")
} else {
client_print(id, print_chat, "[AMX] Auto bunny hopping is enabled on this server. Just hold down jump to bunny hop.")
}
return PLUGIN_HANDLED
}
Mersi frumos.
hi
RoyalServer
User avatar
tre3fla
Membru eXtream
Membru eXtream
Posts: 5317
Joined: 27 May 2012, 11:15
Detinator Steam: Da
CS Status: Allah Akbar !
Detinator server CS: Nu
SteamID: /id/tre3fla_xxx
Has thanked: 14 times
Been thanked: 129 times

15 Jul 2012, 13:52

In romana :
| Afiseaza codul
/*
*
*	Author:	 Cheesy Peteza
*	Date:	 22-Apr-2004 (updated 2-March-2005)
*
*
*	Description:	Enable bunny hopping in Counter-Strike.
*
*	Cvars:
*	 bh_enabled	 1 pentru a activa acest plugin, 0 pentru a-l dezactiva
*	 bh_autojump	 Daca este setat pe 1 trebuie doar sa tii apasat SPACE
*	 bh_showusage	 Daca il setati pe 1 va arata mesaje informative,cum sa Auto-Bhop este *     *                               activat si cum sa- folosesti daca bh_autojump este activat.
*
*	Requirements:	AMXModX 0.16 or greater
*
*
*/

#include <amxmodx>
#include <engine>

#define	FL_WATERJUMP	(1<<11)	// player jumping out of water
#define	FL_ONGROUND	(1<<9)	// At rest / on the ground 

#define ADMIN_IMMUNITY (1<<0) /* flag "a" */ 

public plugin_init() {
register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)

register_cvar("bh_enabled", "1")
register_cvar("bh_autojump", "1")
register_cvar("bh_showusage", "1")
}

public client_PreThink(id) {
if (!get_cvar_num("bh_enabled"))
return PLUGIN_CONTINUE

entity_set_float(id, EV_FL_fuser2, 0.0)	 // Disable slow down after jumping

if (!get_cvar_num("bh_autojump"))
return PLUGIN_CONTINUE

// Code from CBasePlayer::Jump (player.cpp)	 Make a player jump automatically
if (entity_get_int(id, EV_INT_button) & 2) {	// If holding jump
new flags = entity_get_int(id, EV_INT_flags)

if (flags & FL_WATERJUMP)
return PLUGIN_CONTINUE
if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
return PLUGIN_CONTINUE
if ( !(flags & FL_ONGROUND) )
return PLUGIN_CONTINUE

new Float:velocity[3]
entity_get_vector(id, EV_VEC_velocity, velocity)
velocity[2] += 250.0
entity_set_vector(id, EV_VEC_velocity, velocity)

entity_set_int(id, EV_INT_gaitsequence, 6)	// Play the Jump Animation
}
return PLUGIN_CONTINUE
}

public client_authorized(id)
set_task(30.0, "showUsage", id)

public showUsage(id) {
if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
return PLUGIN_HANDLED

if ( !get_cvar_num("bh_autojump") ) {
client_print(id, print_chat, "AMX] Auto-Bhop este activat pe acest server. Trebuie doar sa tii apasat SPACE pentru a sari.")
} else {
client_print(id, print_chat, "[AMX] Auto-Bhop este activat pe acest server. Trebuie doar sa tii apasat SPACE pentru a sari.")
}
return PLUGIN_HANDLED
}


In Engleza
| Afiseaza codul
/*
*
*	Author:	 Cheesy Peteza
*	Date:	 22-Apr-2004 (updated 2-March-2005)
*
*
*	Description:	Enable bunny hopping in Counter-Strike.
*
*	Cvars:
*	 bh_enabled	 1 to enable this plugin, 0 to disable.
*	 bh_autojump	 If set to 1 players just need to hold down jump to bunny hop (no skill required)
*	 bh_showusage	 If set to 1 it will inform joining players that bunny hopping has been enabled
*	 and how to use it if bh_autojump enabled.
*
*	Requirements:	AMXModX 0.16 or greater
*
*
*/

#include <amxmodx>
#include <engine>

#define	FL_WATERJUMP	(1<<11)	// player jumping out of water
#define	FL_ONGROUND	(1<<9)	// At rest / on the ground

#define ADMIN_IMMUNITY (1<<0) /* flag "a" */ 

public plugin_init() {
register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)

register_cvar("bh_enabled", "1")
register_cvar("bh_autojump", "1")
register_cvar("bh_showusage", "1")
}

public client_PreThink(id) {
if (!get_cvar_num("bh_enabled"))
return PLUGIN_CONTINUE

entity_set_float(id, EV_FL_fuser2, 0.0)	 // Disable slow down after jumping

if (!get_cvar_num("bh_autojump"))
return PLUGIN_CONTINUE

// Code from CBasePlayer::Jump (player.cpp)	 Make a player jump automatically
if (entity_get_int(id, EV_INT_button) & 2) {	// If holding jump
new flags = entity_get_int(id, EV_INT_flags)

if (flags & FL_WATERJUMP)
return PLUGIN_CONTINUE
if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
return PLUGIN_CONTINUE
if ( !(flags & FL_ONGROUND) )
return PLUGIN_CONTINUE

new Float:velocity[3]
entity_get_vector(id, EV_VEC_velocity, velocity)
velocity[2] += 250.0
entity_set_vector(id, EV_VEC_velocity, velocity)

entity_set_int(id, EV_INT_gaitsequence, 6)	// Play the Jump Animation
}
return PLUGIN_CONTINUE
}

public client_authorized(id)
set_task(30.0, "showUsage", id)

public showUsage(id) {
if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
return PLUGIN_HANDLED

if ( !get_cvar_num("bh_autojump") ) {
client_print(id, print_chat, "[AMX] Bunny hopping is enabled on this server. You will not slow down after jumping.")
} else {
client_print(id, print_chat, "[AMX] Auto bunny hopping is enabled on this server. Just hold down jump to bunny hop.")
}
return PLUGIN_HANDLED
}
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

15 Jul 2012, 14:10

Tr3fla nici tu nu stii ce ai modificat acolo :))
| Afiseaza codul
#include <amxmodx>
#include <engine>

#define FL_WATERJUMP (1<<11)
#define FL_ONGROUND (1<<9)

public plugin_init() {
       register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
       register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)
       
       register_cvar("bh_enabled", "1")
       register_cvar("bh_autojump", "1")
       register_cvar("bh_showusage", "1")
}

public client_PreThink(id) {
       if(!get_cvar_num("bh_enabled"))
              return

       if(get_user_flags(id) & ADMIN_IMMUNITY)
              return

       entity_set_float(id, EV_FL_fuser2, 0.0)

       if(!get_cvar_num("bh_autojump"))
              return

       if(entity_get_int(id, EV_INT_button) & 2) {
              new flags = entity_get_int(id, EV_INT_flags)

              if(flags & FL_WATERJUMP)
                     return

              if(entity_get_int(id, EV_INT_waterlevel) >= 2 )
                     return

              if(!(flags & FL_ONGROUND))
                     return

              new Float:velocity[3]
              entity_get_vector(id, EV_VEC_velocity, velocity)
              velocity[2] += 250.0
              entity_set_vector(id, EV_VEC_velocity, velocity)

              entity_set_int(id, EV_INT_gaitsequence, 6)
       }
       return
}

public client_authorized(id) {
       if(get_user_flags(id) & ADMIN_IMMUNITY) {
              set_task(30.0, "showUsage", id)
       }
}

public showUsage(id) {
       if(!get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage"))
              return

       if(!get_cvar_num("bh_autojump")) {
              client_print(id, print_chat, "[AMX] Bunny hop este activat pe acest server, nu vei incetinii dupa ce sari !")
       } else {
              client_print(id, print_chat, "[AMX] Auto Bunny Hop este activat pe acest server, tine apasat butonul jump pentru bunny hop.")
       }

       return
}
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
[email protected]
PauL.mZq
Membru, skill +1
Membru, skill +1
Posts: 405
Joined: 16 May 2011, 19:34
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS ( doua saptamani )
Location: Suceava
Has thanked: 13 times
Been thanked: 3 times

15 Jul 2012, 20:31

Mda, multumesc frumos , dar nu merge nici unul :))
hi
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

16 Jul 2012, 12:38

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

#define FL_WATERJUMP (1<<11)
#define FL_ONGROUND (1<<9)

public plugin_init() {
       register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
       register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)
       
       register_cvar("bh_enabled", "1")
       register_cvar("bh_autojump", "1")
       register_cvar("bh_showusage", "1")
}

public client_PreThink(id) {
       if(!get_cvar_num("bh_enabled"))
              return

       if(!(get_user_flags(id) & ADMIN_IMMUNITY))
              return

       entity_set_float(id, EV_FL_fuser2, 0.0)

       if(!get_cvar_num("bh_autojump"))
              return

       if(entity_get_int(id, EV_INT_button) & 2) {
              new flags = entity_get_int(id, EV_INT_flags)

              if(flags & FL_WATERJUMP)
                     return

              if(entity_get_int(id, EV_INT_waterlevel) >= 2 )
                     return

              if(!(flags & FL_ONGROUND))
                     return

              new Float:velocity[3]
              entity_get_vector(id, EV_VEC_velocity, velocity)
              velocity[2] += 250.0
              entity_set_vector(id, EV_VEC_velocity, velocity)

              entity_set_int(id, EV_INT_gaitsequence, 6)
       }
       return
}

public client_authorized(id) {
       if(get_user_flags(id) & ADMIN_IMMUNITY) {
              set_task(30.0, "showUsage", id)
       }
}

public showUsage(id) {
       if(!get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage"))
              return

       if(!get_cvar_num("bh_autojump")) {
              client_print(id, print_chat, "[AMX] Bunny hop este activat pe acest server, nu vei incetinii dupa ce sari !")
       } else {
              client_print(id, print_chat, "[AMX] Auto Bunny Hop este activat pe acest server, tine apasat butonul jump pentru bunny hop.")
       }

       return
}
Am uitat sa adaug !() :))
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
[email protected]
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests