Raised This Month: $ Target: $400
 0% 

Respawn player when it join team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragos
Senior Member
Join Date: Oct 2018
Location: Romania
Old 05-26-2019 , 04:42   Respawn player when it join team
Reply With Quote #1

hi i want a plugin who respawn when a player chose t or ct and auto respawn it
1.8.2
all mod
HLDS
__________________
sup
Dragos is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 05-27-2019 , 14:16   Re: Respawn player when it join team
Reply With Quote #2

use google once :- https://forums.alliedmods.net/showthread.php?p=8906
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
Dragos
Senior Member
Join Date: Oct 2018
Location: Romania
Old 05-28-2019 , 08:31   Re: Respawn player when it join team
Reply With Quote #3

i add blocktimer.so and respawn dont work
__________________
sup
Dragos is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-28-2019 , 08:39   Re: Respawn player when it join team
Reply With Quote #4

Where did you even see such a file?!
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 05-29-2019 , 06:51   Re: Respawn player when it join team
Reply With Quote #5

You want something like this?

Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "team chooser"
#define VERSION "1.0"
#define AUTHOR "raizo"

#define tm_get(%1,%2) (%1 & (1 << (%2 & 31)))
#define tm_set(%1,%2) %1 |= (1 << (%2 & 31))

new team_override

public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)

        register_clcmd("chooseteam", "clcmd_chooseteam")
}

public client_putinserver(id)
{
	tm_set(team_override, id)
}

public main_menu_crap(id)
{
	new menu = menu_create( "\r- Choose Your Team -", "main_menu_handler" );
	
	menu_additem( menu,"Terrorists", "TTM", 0 );
	menu_additem( menu,"Counter Terrorists", "CTTM", 0 );
	menu_additem( menu,"Spectators", "STM", 0 );
	menu_display( id, menu, 0 )
	return PLUGIN_HANDLED;
}

public main_menu_handler( id, menu, item )
{
	if ( item == MENU_EXIT )
	{
		menu_destroy( menu );
		return PLUGIN_HANDLED;
	}

	new szData[64], szName[64];
	new _access, item_callback;
	menu_item_getinfo( menu, item, _access, szData,charsmax( szData ), szName,charsmax( szName ), item_callback );
	if(equal(szData,"TTM"))
	{
		join_t(id)
	}
	else if(equal(szData,"CTTM"))
	{
		join_ct(id)
	}
	else if(equal(szData,"STM"))
	{
		join_spec(id)
	}
	menu_destroy( menu );
	return PLUGIN_CONTINUE
}

public clcmd_chooseteam(id)
{
	if (tm_get(team_override, id))
	{
            main_menu_crap(id)
	    return PLUGIN_HANDLED;
	}
	
	tm_set(team_override, id)
	return PLUGIN_CONTINUE;
}

public join_spec(id)
{
	if(is_user_alive(id))
		user_silentkill(id)
	cs_set_user_team(id,CS_TEAM_SPECTATOR)
	return PLUGIN_CONTINUE
}

public join_ct(id)
{
	if(is_user_alive(id))
		user_silentkill(id)
	cs_set_user_team(id,CS_TEAM_CT)
	respawn(id)
	return PLUGIN_CONTINUE
}

public join_t(id)
{
	if(is_user_alive(id))
		user_silentkill(id)
	cs_set_user_team(id,CS_TEAM_T)
	respawn(id)
	return PLUGIN_CONTINUE
}

public respawn(id)
{
	if(is_user_connected(id))
	{
		ExecuteHam(Ham_CS_RoundRespawn, id);
	}
}

Last edited by raizo11; 05-29-2019 at 07:14.
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
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 05-31-2019 , 11:07   Re: Respawn player when it join team
Reply With Quote #6

#define AUTHOR "raizo"

Stop posting plugins which arent yours, or at least dont violate the author rules.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
E1_531G
Senior Member
Join Date: Dec 2017
Old 05-31-2019 , 15:25   Re: Respawn player when it join team
Reply With Quote #7

Quote:
Originally Posted by SomewhereLost View Post
#define AUTHOR "raizo"

Stop posting plugins which arent yours, or at least dont violate the author rules.
Sometime i think the same about him.
But, just for the sake of justice, do you have any evidences?
__________________
My English is A0
E1_531G is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 05-31-2019 , 17:20   Re: Respawn player when it join team
Reply With Quote #8

Look your server : 176.57.188.201:27017

use mine plugins : https://pastebin.com/u/raizo21

after use...this shit want to destroy my career! the duels and the rush is mine becouse you asked me to get this !

i did this plugin becouse first duels plugin and the author is I-T-N-I and have 2 little arenas..

and i copy this plugin and i was rush and duels mother f-c-k ! what you want? money?

If is your plugin why is public? go to scream en another part
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
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 05-31-2019 , 18:41   Re: Respawn player when it join team
Reply With Quote #9

Quote:
Originally Posted by E1_531G View Post
Sometime i think the same about him.
But, just for the sake of justice, do you have any evidences?
I do.

https://pastebin.com/xdqzrtMp

This plugin was made for my server, it even says the name of the server. You can clearly find that teamchoose part in that plugin.

Quote:
use mine plugins : https://pastebin.com/u/raizo21
I dont use any of your plugins, youre the one who got them from pastebin which was accidently posted there, that was my bad, I got no complains about it, the only problem I got with you is that youre not a coder, you basically have 0 knowledge but still, writing your name in the AUTHOR field everytime you find something online is quite pathetic.

Quote:
after use...this shit want to destroy my career! the duels and the rush is mine becouse you asked me to get this !
You have no career or whatsoever.

https://forums.alliedmods.net/showthread.php?p=2542716

You couldnt even get away with your second account "Saint Sinner", that thread is a pure proof.

Quote:
i did this plugin
and i copy this plugin and i was rush and duels mother f-c-k ! what you want? money?

If is your plugin why is public? go to scream en another part
I'd be very pleased if you get banned from this community once and for all.

Also, a guy who uses a Protector on his Steam account, says it all.

Check this one out! >> https://imgur.com/a/rvtLFEZ
__________________

Last edited by SomewhereLost; 05-31-2019 at 18:48.
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
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 06:41.


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