Categoria cu cereri de pluginuri si nu numai.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
Smon
- Membru, skill 0
- Posts: 39
- Joined: 24 Nov 2010, 17:22
- Detinator Steam: Da
- Location: Galati
- Has thanked: 4 times
27 Jul 2012, 01:41
Un plugin cu bhop doar la admini
-
K1d0x
- 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:
27 Jul 2012, 02:18
- | Afiseaza codul
#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
if (!(get_user_flags(id) & read_flags("abcdefghijklmnopqrstu")))
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) {
if(!(get_user_flags(id) & read_flags("abcdefghijklmnopqrstu")))
return PLUGIN_CONTINUE
set_task(30.0, "showUsage", id)
return PLUGIN_CONTINUE
}
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
}
Last edited by
K1d0x on 27 Jul 2012, 03:01, edited 1 time in total.
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]
-
Smon
- Membru, skill 0
- Posts: 39
- Joined: 24 Nov 2010, 17:22
- Detinator Steam: Da
- Location: Galati
- Has thanked: 4 times
27 Jul 2012, 02:47
K1d0x wrote:- | Afiseaza codul
#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 BHOP_LEVEL ADMIN_KICK // Min level for bhop abillity
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
if (!(get_user_flags(id) & BHOP_LEVEL))
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) {
if(!(get_user_flags(id) & BHOP_LEVEL))
return PLUGIN_CONTINUE
set_task(30.0, "showUsage", id)
return PLUGIN_CONTINUE
}
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
}
modifici linia
#define BHOP_LEVEL ADMIN_KICK dupa cum doresti :)
Nu prea inteleg :-?? Vreau sa mearga doar la owner (cel cu acces maxim)
-
K1d0x
- 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:
27 Jul 2012, 03:01
Am editat, acum functioneaza doar la cei care au flagurile abcdefghijklmnopqrstu
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]
-
Smon
- Membru, skill 0
- Posts: 39
- Joined: 24 Nov 2010, 17:22
- Detinator Steam: Da
- Location: Galati
- Has thanked: 4 times
27 Jul 2012, 08:45
Cum setez sa nu prinda viteza deloc? Deoarece prinde o viteza exagerat de mare.
-
Ulquiorra
- Fost moderator
- Posts: 2053
- Joined: 25 Jul 2010, 17:29
- Detinator Steam: Da
- CS Status: A mai trecut o zi asteptand una mai buna
- Detinator server CS: Retras.
- SteamID: STEAM_0:1:318247XX
- Reputatie: Fost Scripter eXtreamCS
Fost Moderator ajutator
Nick anterior: Askhanar
- Location: Braila, Romania.
- Has thanked: 215 times
- Been thanked: 1132 times
27 Jul 2012, 12:33
Smon wrote:Cum setez sa nu prinda viteza deloc? Deoarece prinde o viteza exagerat de mare.
poftim
- asdads | Afiseaza codul
#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
if (!(get_user_flags(id) & read_flags("abcdefghijklmnopqrstu")))
return PLUGIN_CONTINUE
// sa activezi iar viteza sterge cele 2 // din fata la linia ce urmeaza.
//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) {
if(!(get_user_flags(id) & read_flags("abcdefghijklmnopqrstu")))
return PLUGIN_CONTINUE
set_task(30.0, "showUsage", id)
return PLUGIN_CONTINUE
}
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
}
Caut o persoana dedicata care se pricepe si stie ce face.
Vreau sa creeze si sa se ocupe de administrarea unui server de MU, da e vorba de vechiul joc..ma gandesc undeva la un season 3 ep1/2.
O sa achizitionez un domeniu .ro.
Totodata sponsorizez absolut orice este necesar.
Ma puteti contacta prin:
http://solo.to/stfrzv
-
Smon
- Membru, skill 0
- Posts: 39
- Joined: 24 Nov 2010, 17:22
- Detinator Steam: Da
- Location: Galati
- Has thanked: 4 times
-
Users browsing this forum: MrPower and 31 guests