AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Respawn player when it join team (https://forums.alliedmods.net/showthread.php?t=316496)

Dragos 05-26-2019 04:42

Respawn player when it join team
 
hi i want a plugin who respawn when a player chose t or ct and auto respawn it
1.8.2
all mod
HLDS

shehzad1234 05-27-2019 14:16

Re: Respawn player when it join team
 
use google once :- https://forums.alliedmods.net/showthread.php?p=8906

Dragos 05-28-2019 08:31

Re: Respawn player when it join team
 
i add blocktimer.so and respawn dont work

OciXCrom 05-28-2019 08:39

Re: Respawn player when it join team
 
Where did you even see such a file?!

raizo11 05-29-2019 06:51

Re: Respawn player when it join team
 
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);
        }
}


SomewhereLost 05-31-2019 11:07

Re: Respawn player when it join team
 
#define AUTHOR "raizo"

Stop posting plugins which arent yours, or at least dont violate the author rules.

E1_531G 05-31-2019 15:25

Re: Respawn player when it join team
 
Quote:

Originally Posted by SomewhereLost (Post 2653828)
#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?

raizo11 05-31-2019 17:20

Re: Respawn player when it join team
 
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

SomewhereLost 05-31-2019 18:41

Re: Respawn player when it join team
 
Quote:

Originally Posted by E1_531G (Post 2653856)
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


All times are GMT -4. The time now is 01:51.

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