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

[REQ] Simple CSGO Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ItsCEED
Member
Join Date: Jun 2016
Old 12-03-2019 , 00:03   [REQ] Simple CSGO Plugin
Reply With Quote #1

I need a Plugin that kills/removes the CSGO Team Pick screen, anyone has it or can be made?
ItsCEED is offline
Send a message via Skype™ to ItsCEED
Malaxus
Member
Join Date: May 2019
Old 12-03-2019 , 20:15   Re: [REQ] Simple CSGO Plugin
Reply With Quote #2

PHP Code:
#include <sourcemod>
#include <cstrike>
#include <sdktools>

public OnPluginStart()
{
RegAdminCmd("sm_spectate"command_switchSpecADMFLAG_CUSTOM6"Switch to specatate");
RegAdminCmd("sm_spec"command_switchSpecADMFLAG_CUSTOM6"Switch to specatate");
AddCommandListener(altJoin"jointeam");
}

public 
Action:command_switchSpec(clientargs)
{
switch(
GetClientTeam(client))
{
case 
CS_TEAM_CTCS_TEAM_T:
{
ChangeClientTeam(clientCS_TEAM_SPECTATOR);
return 
Plugin_Handled;
}

case 
CS_TEAM_SPECTATOR:
{
ChangeClientTeam(clientCS_TEAM_T);
return 
Plugin_Handled;
}
}

return 
Plugin_Handled;
}

public 
Action:altJoin(Client, const String:command[], argc)
{
if(!
IsClientInGame(Client) || argc 1)
{
return 
Plugin_Handled;
}

decl String:arg[8];
GetCmdArg(1argsizeof(arg));
new 
teamJoin StringToInt(arg);
new 
teamLeave GetClientTeam(Client);

if(
teamLeave == teamJoin || IsFakeClient(Client))
{
return 
Plugin_Continue;
}
else
{
// ignore switches between T/CT team
if((teamLeave == CS_TEAM_CT && teamJoin == CS_TEAM_T)
|| (
teamLeave == CS_TEAM_T && teamJoin == CS_TEAM_CT))
{
return 
Plugin_Handled;
}
}
return 
Plugin_Handled;

Malaxus is offline
ItsCEED
Member
Join Date: Jun 2016
Old 12-04-2019 , 01:07   Re: [REQ] Simple CSGO Plugin
Reply With Quote #3

Quote:
Originally Posted by Malaxus View Post
PHP Code:
#include <sourcemod>
#include <cstrike>
#include <sdktools>

public OnPluginStart()
{
RegAdminCmd("sm_spectate"command_switchSpecADMFLAG_CUSTOM6"Switch to specatate");
RegAdminCmd("sm_spec"command_switchSpecADMFLAG_CUSTOM6"Switch to specatate");
AddCommandListener(altJoin"jointeam");
}

public 
Action:command_switchSpec(clientargs)
{
switch(
GetClientTeam(client))
{
case 
CS_TEAM_CTCS_TEAM_T:
{
ChangeClientTeam(clientCS_TEAM_SPECTATOR);
return 
Plugin_Handled;
}

case 
CS_TEAM_SPECTATOR:
{
ChangeClientTeam(clientCS_TEAM_T);
return 
Plugin_Handled;
}
}

return 
Plugin_Handled;
}

public 
Action:altJoin(Client, const String:command[], argc)
{
if(!
IsClientInGame(Client) || argc 1)
{
return 
Plugin_Handled;
}

decl String:arg[8];
GetCmdArg(1argsizeof(arg));
new 
teamJoin StringToInt(arg);
new 
teamLeave GetClientTeam(Client);

if(
teamLeave == teamJoin || IsFakeClient(Client))
{
return 
Plugin_Continue;
}
else
{
// ignore switches between T/CT team
if((teamLeave == CS_TEAM_CT && teamJoin == CS_TEAM_T)
|| (
teamLeave == CS_TEAM_T && teamJoin == CS_TEAM_CT))
{
return 
Plugin_Handled;
}
}
return 
Plugin_Handled;

Thank you! But it does not seems to do the job
ItsCEED is offline
Send a message via Skype™ to ItsCEED
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 15:24.


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