Option for transfer players from ct/t team to spectator or option for transfer players from spec and reviving them?
In both cases i need the plugin
shaleval1
06-04-2021 10:36
Re: Revive-System adding spec
Quote:
Originally Posted by Supremache
(Post 2748837)
Option for transfer players from ct/t team to spectator or option for transfer players from spec and reviving them?
In both cases i need the plugin
Do you see the "team player" option? It has CT and T option and I wanna add SPEC option as well, moving player from CT/T to spec and from SPEC to ct/t but not alive please :)
Do you see the "team player" option? It has CT and T option and I wanna add SPEC option as well, moving player from CT/T to spec and from SPEC to ct/t but not alive please :)
/* Blizzards Plugins Comply With GNU General Public License
Revive System is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Under no circumstances are you allowed to redistribute and/or modify it claming that you are the original author of such plugin/modification.
Revive System is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <amxmodx> #include <fun> #include <cstrike> #include <hamsandwich> #include <amxmisc> #pragma semicolon 1 new g_iReviveTeam[ 33 ]; new g_pReviveMsg;
public plugin_init( ) { register_plugin( "Revive System", "1.0", "Blizzards" );
public client_connect( id ) { g_iReviveTeam[ id ] = 0; }
stock get_team_name( id ) { new string[ 32 ]; switch( cs_get_user_team( id ) ) { case CS_TEAM_T: formatex( string, charsmax( string ), "Terrorist" ); case CS_TEAM_CT: formatex( string, charsmax( string ), "CT" ); case CS_TEAM_SPECTATOR: formatex( string, charsmax( string ), "Spectator" ); }
return string; }
shaleval1
06-04-2021 11:39
Re: Revive-System adding spec
Quote:
Originally Posted by Supremache
(Post 2748844)
Spoiler
PHP Code:
/*
Blizzards Plugins Comply With GNU General Public License
Revive System is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Under no circumstances are you allowed to redistribute and/or modify
it claming that you are the original author of such plugin/modification.
Revive System is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <amxmisc>
#pragma semicolon 1
new g_iReviveTeam[ 33 ];
new g_pReviveMsg;
public plugin_init( )
{
register_plugin( "Revive System", "1.0", "Blizzards" );
public client_connect( id )
{
g_iReviveTeam[ id ] = 0;
}
stock get_team_name( id )
{
new string[ 32 ];
switch( cs_get_user_team( id ) )
{
case CS_TEAM_T: formatex( string, charsmax( string ), "Terrorist" );
case CS_TEAM_CT: formatex( string, charsmax( string ), "CT" );
case CS_TEAM_SPECTATOR: formatex( string, charsmax( string ), "Spectator" );
}
return string;
}
First of all thank you so much for your help :)
I installed your code but it still has only CT and T on player team :(
Supremache
06-04-2021 11:43
Re: Revive-System adding spec
Quote:
Originally Posted by shaleval1
(Post 2748847)
First of all thank you so much for your help :)
I installed your code but it still has only CT and T on player team :(
How :shock:, i added spectator option and it should be work !!!
shaleval1
06-04-2021 11:48
Re: Revive-System adding spec
Quote:
Originally Posted by Supremache
(Post 2748848)
How :shock:, i added spectator option and it should be work !!!
Yep I saw you added, the mod itself work but I still have Terrorist and CT on team player
Supremache
06-04-2021 12:52
Re: Revive-System adding spec
Quote:
Originally Posted by shaleval1
(Post 2748851)
Yep I saw you added, the mod itself work but I still have Terrorist and CT on team player
I checked it again and my code working fine but the plugin work with only 2 options so i tried to change the place of spec codes to the fist and only 2 options are worked "spec, t" and i dont know which thing that make it working just 2 options