Raised This Month: $51 Target: $400
 12% 

Reverse push [help]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-25-2015 , 03:46   Reverse push [help]
Reply With Quote #1

I want to reverse push and only for team not for all ...Example terorist push terorist working to push ...counter push counter working ... terorist push counter not working and i want to reverse push...who touch push him no pushing mee

VIDEO https://www.youtube.com/watch?v=CRjQ5_RWnM8

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <engine>

#define PLUGIN "Push player"
#define VERSION "1.1"
#define AUTHOR "OneEyed & Sn!ff3r"

#define CHECK_TIME 0.2

new cvar
new Float:lastmove[33]

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	cvar = register_cvar("amx_moveplayer", "1")
	
	register_touch("player", "player", "touchtouch")	
}

public touchtouch(player, player2)
{
	if(get_pcvar_num(cvar))
	{		
		static Float:gametime
		gametime = get_gametime()
		
		if(gametime - lastmove[player] > CHECK_TIME && gametime - lastmove[player2] > CHECK_TIME)
		{
			new Float:speed[2][3]
			new Float:over_speed[3]

			lastmove[player] = lastmove[player2] = gametime			
			
			entity_get_vector(player, EV_VEC_velocity, speed[0])
			entity_get_vector(player2, EV_VEC_velocity, speed[1])
			
			for(new i = 0; i < 3; i++)
			{
				over_speed[i] = speed[0][i] + speed[1][i]
				speed[0][i] += over_speed[i] * 6.65
				speed[1][i] -= over_speed[i] * 6.65
			}
			entity_set_vector(player, EV_VEC_velocity, speed[0])
			entity_set_vector(player2, EV_VEC_velocity, speed[1])
		}
	}
}

Last edited by raizo11; 03-18-2015 at 15:58.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
AnTyDoT
New Member
Join Date: Apr 2011
Old 01-25-2015 , 06:53   Re: Reverse push [help]
Reply With Quote #2

/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <engine> #include <fakemeta>
#define PLUGIN "Push player" #define VERSION "1.1" #define AUTHOR "OneEyed & Sn!ff3r"
enum CsTeams
{
CS_TEAM_UNASSIGNED = 0,
CS_TEAM_T = 1,
CS_TEAM_CT = 2,
CS_TEAM_SPECTATOR = 3
}
#define CHECK_TIME 0.2 #define OFFSET_TEAM 114
#define cs_get_user_team(%1) CsTeams:get_pdata_int(%1, OFFSET_TEAM)
new cvar new Float:lastmove[33] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) cvar = register_cvar("amx_moveplayer", "1") register_touch("player", "player", "touchtouch") } public touchtouch(player, player2) { if(get_pcvar_num(cvar)) { static Float:gametime gametime = get_gametime() if(gametime - lastmove[player] > CHECK_TIME && gametime - lastmove[player2] > CHECK_TIME) { new Float:speed[2][3] new Floatver_speed[3] lastmove[player] = lastmove[player2] = gametime entity_get_vector(player, EV_VEC_velocity, speed[0]) entity_get_vector(player2, EV_VEC_velocity, speed[1]) for(new i = 0; i < 3; i++) {
static CsTeams:team[2]
team[0] = cs_get_user_team(player), team[1] = cs_get_user_team(player2);

if(team[0] != team[1]) return;

over_speed[i] = speed[0][i] + speed[1][i] speed[0][i] += over_speed[i] * 6.65 speed[1][i] -= over_speed[i] * 6.65 } entity_set_vector(player, EV_VEC_velocity, speed[0]) entity_set_vector(player2, EV_VEC_velocity, speed[1]) } } }
AnTyDoT is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-25-2015 , 07:04   Re: Reverse push [help]
Reply With Quote #3

push.sma(1) : error 038: extra characters on line
push.sma(11) : error 075: input line too long (after substitutions)
push.sma(12) : error 001: expected token: ";", but found "new"
push.sma(12) : error 001: expected token: ";", but found "public"
push.sma(12) : error 017: undefined symbol "PLUGIN"
push.sma(12) : fatal error 107: too many error messages on one line
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
AnTyDoT
New Member
Join Date: Apr 2011
Old 01-25-2015 , 07:33   Re: Reverse push [help]
Reply With Quote #4

Try this
Attached Files
File Type: sma Get Plugin or Get Source (push_player.sma - 489 views - 1.6 KB)
AnTyDoT is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-25-2015 , 08:17   Re: Reverse push [help]
Reply With Quote #5

I need to reverse Push Look Here

https://www.youtube.com/watch?v=CRjQ5_RWnM8

Last edited by raizo11; 01-25-2015 at 08:19.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 01-25-2015 , 08:23   Re: Reverse push [help]
Reply With Quote #6

Quote:
Originally Posted by AnTyDoT View Post
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <engine> #include <fakemeta>
#define PLUGIN "Push player" #define VERSION "1.1" #define AUTHOR "OneEyed & Sn!ff3r"
enum CsTeams
{
CS_TEAM_UNASSIGNED = 0,
CS_TEAM_T = 1,
CS_TEAM_CT = 2,
CS_TEAM_SPECTATOR = 3
}
#define CHECK_TIME 0.2 #define OFFSET_TEAM 114
#define cs_get_user_team(%1) CsTeams:get_pdata_int(%1, OFFSET_TEAM)
new cvar new Float:lastmove[33] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) cvar = register_cvar("amx_moveplayer", "1") register_touch("player", "player", "touchtouch") } public touchtouch(player, player2) { if(get_pcvar_num(cvar)) { static Float:gametime gametime = get_gametime() if(gametime - lastmove[player] > CHECK_TIME && gametime - lastmove[player2] > CHECK_TIME) { new Float:speed[2][3] new Floatver_speed[3] lastmove[player] = lastmove[player2] = gametime entity_get_vector(player, EV_VEC_velocity, speed[0]) entity_get_vector(player2, EV_VEC_velocity, speed[1]) for(new i = 0; i < 3; i++) {
static CsTeams:team[2]
team[0] = cs_get_user_team(player), team[1] = cs_get_user_team(player2);

if(team[0] != team[1]) return;

over_speed[i] = speed[0][i] + speed[1][i] speed[0][i] += over_speed[i] * 6.65 speed[1][i] -= over_speed[i] * 6.65 } entity_set_vector(player, EV_VEC_velocity, speed[0]) entity_set_vector(player2, EV_VEC_velocity, speed[1]) } } }
Use this tags (or) to post ur code
tousif is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-25-2015 , 08:36   Re: Reverse push [help]
Reply With Quote #7

it's so hard to understand .... Look this is difference ...who blocked me push him no push me

https://www.youtube.com/watch?v=CRjQ5_RWnM8

This is Good But i need to reverse push


Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>

#define PLUGIN "Push player"
#define VERSION "1.1"
#define AUTHOR "OneEyed & Sn!ff3r"

enum CsTeams
{
	CS_TEAM_UNASSIGNED	= 0,
	CS_TEAM_T 		= 1,
	CS_TEAM_CT 		= 2,
	CS_TEAM_SPECTATOR 	= 3
}

#define CHECK_TIME 0.2
#define OFFSET_TEAM 114
#define cs_get_user_team(%1) CsTeams:get_pdata_int(%1, OFFSET_TEAM)

new cvar
new Float:lastmove[33]

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	cvar = register_cvar("amx_moveplayer", "1")
	
	register_touch("player", "player", "touchtouch")	
}

public touchtouch(player, player2)
{
	if(get_pcvar_num(cvar))
	{		
		static Float:gametime
		gametime = get_gametime()
		
		if(gametime - lastmove[player] > CHECK_TIME && gametime - lastmove[player2] > CHECK_TIME)
		{
			new Float:speed[2][3]
			new Float:over_speed[3]

			lastmove[player] = lastmove[player2] = gametime			
			
			entity_get_vector(player, EV_VEC_velocity, speed[0])
			entity_get_vector(player2, EV_VEC_velocity, speed[1])
			
			for(new i = 0; i < 3; i++)
			{
                                static CsTeams:team[2]
                                team[0] = cs_get_user_team(player), team[1] = cs_get_user_team(player2)

                                if(team[0] != team[1]) return;

				over_speed[i] = speed[0][i] + speed[1][i]
				speed[0][i] += over_speed[i] * 6.65
				speed[1][i] -= over_speed[i] * 6.65
			}
			entity_set_vector(player, EV_VEC_velocity, speed[0])
			entity_set_vector(player2, EV_VEC_velocity, speed[1])
		}
	}
}

Last edited by raizo11; 01-25-2015 at 08:38.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-25-2015 , 11:56   Re: Reverse push [help]
Reply With Quote #8

someone help me?
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Sn3amtz
Senior Member
Join Date: Jan 2015
Location: France
Old 01-31-2015 , 06:03   Re: Reverse push [help]
Reply With Quote #9

I'm looking for This plugin and nobady no help me
Sn3amtz is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 03-18-2015 , 15:57   Re: Reverse push [help]
Reply With Quote #10

bump !
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode