Raised This Month: $ Target: $400
 0% 

Firstjoin or Antirejoin for CSGO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
supreeda
Senior Member
Join Date: Jul 2015
Old 10-13-2015 , 07:46   Firstjoin or Antirejoin for CSGO
Reply With Quote #1

i'm look like csgo plugin firstjoin will dead or Antirejoin

Someone got this ?
supreeda is offline
Msalinas2877
Member
Join Date: Oct 2015
Location: Chile
Old 10-13-2015 , 22:30   Re: Firstjoin or Antirejoin for CSGO
Reply With Quote #2

Can you explain more?
__________________
Msalinas2877 is offline
supreeda
Senior Member
Join Date: Jul 2015
Old 10-14-2015 , 09:09   Re: Firstjoin or Antirejoin for CSGO
Reply With Quote #3

Quote:
Originally Posted by Msalinas2877 View Post
Can you explain more?
sure . thank your help

• when first join T or CT team it will auto died


i use this but it bug little bit

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


 public Plugin:myinfo = 
{
	name = "Firstjoin or Antirejoin",
	author = "supreeda",
	description = "",
	version = "1.0",
	url = ""
} 
  
public bool:OnClientConnect(client, String:rejectmsg[], maxlen)
{
 CreateTimer(25.0, Timer_kill, client);
 
 return true;
}
 
public Action:Timer_kill(Handle:timer, any:client)
{
 if (IsClientInGame(client))
   ServerCommand("sm_slay #%d", GetClientUserId(client));  
 else if (IsClientConnected(client))
  CreateTimer(25.0, Timer_kill, client);
}
supreeda is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 10-14-2015 , 11:49   Re: Firstjoin or Antirejoin for CSGO
Reply With Quote #4

PHP Code:
#include <sourcemod>
#include <smlib>

#define PLUGIN_VERSION "1.0"

#pragma semicolon 1

public Plugin:myinfo =
{
    
name "[ANY] Slay after joining a team",
    
author "Headline",
    
description "Slays the when a client chooses a team.",
    
version PLUGIN_VERSION,
    
url "http://www.michaelwflaherty.com"
};

public 
OnPluginStart()
{
    
AddCommandListener(Command_JoinTeam"jointeam"); // Hook Join Team
}


public 
Action:Command_JoinTeam(client, const String:command[], argc)  
{
    
CreateTimer(0.2Timer_SlayclientTIMER_FLAG_NO_MAPCHANGE);
}

public 
Action:Timer_Slay(Handle:hTimerany:client)
{
    
ForcePlayerSuicide(client);

I am not quite sure why you need this, but here you go.

Last edited by headline; 10-14-2015 at 11:54.
headline is offline
supreeda
Senior Member
Join Date: Jul 2015
Old 10-15-2015 , 12:40   Re: Firstjoin or Antirejoin for CSGO
Reply With Quote #5

Quote:
Originally Posted by Headline22 View Post
PHP Code:
#include <sourcemod>
#include <smlib>

#define PLUGIN_VERSION "1.0"

#pragma semicolon 1

public Plugin:myinfo =
{
    
name "[ANY] Slay after joining a team",
    
author "Headline",
    
description "Slays the when a client chooses a team.",
    
version PLUGIN_VERSION,
    
url "http://www.michaelwflaherty.com"
};

public 
OnPluginStart()
{
    
AddCommandListener(Command_JoinTeam"jointeam"); // Hook Join Team
}


public 
Action:Command_JoinTeam(client, const String:command[], argc)  
{
    
CreateTimer(0.2Timer_SlayclientTIMER_FLAG_NO_MAPCHANGE);
}

public 
Action:Timer_Slay(Handle:hTimerany:client)
{
    
ForcePlayerSuicide(client);

I am not quite sure why you need this, but here you go.


Work ty xD
supreeda is offline
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 23:41.


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