bunnyhop

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
NemeSyS17
Membru, skill +1
Membru, skill +1
Posts: 307
Joined: 05 Apr 2017, 00:42
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 6 times
Been thanked: 2 times
Contact:

19 Mar 2019, 19:46

Plugin Cerut: bunnyhop
Descriere (adica ce face el mai exact): vreau un plugin bunny hop dar , doar pentru ce i de la tero ... ! ce i de la CT sa nu aibe bunnyhop !
Serverul ruleaza (HLDS/ReHLDS): ReHLDS
Versiune AMX Mod X:
Modul Serverului: Furien
Last edited by Rainq on 19 Mar 2019, 23:24, edited 1 time in total.
Reason: Editat dupa model
RoyalServer
User avatar
DanN
Membru, skill 0
Membru, skill 0
Posts: 70
Joined: 30 Sep 2017, 22:12
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: RobertshemA
SteamID: 84638588213
Fond eXtream: 0
Location: Cape Verde
Has thanked: 1 time
Contact:

19 Mar 2019, 20:53

| Afiseaza codul
public client_PreThink(id) {
if(get_user_team(id) == 2) 
{ 
	entity_set_float(id, EV_FL_fuser2, 0.0)
} 
}

Ai nevoie de engine

Sau daca vrei
| 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

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_team(id) == 2) 
       {
	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
NemeSyS17
Membru, skill +1
Membru, skill +1
Posts: 307
Joined: 05 Apr 2017, 00:42
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 6 times
Been thanked: 2 times
Contact:

19 Mar 2019, 21:36

nu merge , ambele echipe au bunnyhop ! vreau doar tero !
User avatar
NemeSyS17
Membru, skill +1
Membru, skill +1
Posts: 307
Joined: 05 Apr 2017, 00:42
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 6 times
Been thanked: 2 times
Contact:

20 Mar 2019, 14:46

up?
User avatar
DanN
Membru, skill 0
Membru, skill 0
Posts: 70
Joined: 30 Sep 2017, 22:12
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: RobertshemA
SteamID: 84638588213
Fond eXtream: 0
Location: Cape Verde
Has thanked: 1 time
Contact:

20 Mar 2019, 22:15

Dupa parerea mea si incercarile mele nu se poate face bhop pe o singura echipa deoarece functia entity_set_float seteaza pe enitate si player-ul este o entitate. Nici daca ai verifica aceasta functie nu ar functiona deoarece functia entity_set_float tot pe entitate se va pune. Possibil sa poti pune in loc de index-ul (id) sa fie (team) sau ceva e genu dar eu nu stiu. Ar putea if posibil si cu vectori dar din nou nu stiu.
User avatar
NemeSyS17
Membru, skill +1
Membru, skill +1
Posts: 307
Joined: 05 Apr 2017, 00:42
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 6 times
Been thanked: 2 times
Contact:

21 Mar 2019, 00:06

L E V I N ? =))) te rog frumos =))) e ok pluginul ce l a lasat dann mai sus doar ca merge la ambele echipe !
User avatar
NemeSyS17
Membru, skill +1
Membru, skill +1
Posts: 307
Joined: 05 Apr 2017, 00:42
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 6 times
Been thanked: 2 times
Contact:

22 Mar 2019, 00:54

up , am nev urgent !
User avatar
levin
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3854
Joined: 24 Aug 2011, 12:24
Detinator Steam: Nu
CS Status:
Detinator server CS: ☯∴
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Discord: devilclass
Has thanked: 36 times
Been thanked: 595 times
Contact:

29 Mar 2019, 13:59

Code: Select all

#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")||get_user_team(id)!=1)
        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
}
Nu îmi mai trimiteți PM pe forum! Nu merge să răspund
Pentru ajutor, faceți cerere bine detaliată, completând și respectând modelul corespunzător.
Nu-mi mai dați cereri doar pentru a mă avea în lista de prieteni.
Dacă te ajut, și mă ignori/etc > te adaug în „foe”.
Aveți grijă la cei ce încearcă să mă copieze sau să dea drept mine..Puteți lua legătura cu mine prin STEAM dacă aveți o problemă/nelămurire în acest caz! Cont de forum am doar aici.
În cazul în care utilizați ceva din ce am postat(ex: aici), e bine să fiți la curent cu modificările aduse și de aici, iar dacă sunt ceva probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se vor afișa public, doar dacă se găsește ceva critic/urgent de remediat, unele fiind coduri vechi iar unele refăcute chiar recent dar private.
* Nume pe cs1.6: eVoLuTiOn \ Nume vechi: eVo
* Atelierul meu - post2819572.html#p2819572 (închis, click link ca să vedeți de ce)
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot], Yandex [Bot] and 42 guests