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

move to trash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoGetSomeSleep
Senior Member
Join Date: Dec 2018
Location: Miami/Florida
Old 08-21-2019 , 08:37   move to trash
Reply With Quote #1

move to trash

Last edited by GoGetSomeSleep; 03-11-2020 at 14:51.
GoGetSomeSleep is offline
Cruze
Veteran Member
Join Date: May 2017
Old 08-21-2019 , 12:06   Re: No Perm Dead-Kick
Reply With Quote #2

PHP Code:
#include <sourcemod> 

#pragma semicolon 1 
#pragma newdecls required 

#define TEAM_SURVIVOR 2 

public Plugin myinfo = { 
    
name        "Kick on player death"
    
author      ""
    
description ""
    
version     "0.0.0"
    
url         "" 
}; 

public 
void OnPluginStart() 

    
HookEvent("player_death"Event_PlayerDeathEventHookMode_Pre);  


public 
Action Event_PlayerDeath(Event event, const char[] namebool dontBroadcast

    
int victim GetClientOfUserId(event.GetInt("userid"));  
     
    if (
victim && IsClientInGame(victim) && !IsFakeClient(victim) && GetClientTeam(victim) == TEAM_SURVIVOR && !CheckCommandAccess(victim""ADMFLAG_KICK ADMFLAG_VOTE ADMFLAG_RESERVATION))
        
KickClient(victim"nab"); 
         
    return 
Plugin_Continue

__________________
Taking paid private requests! Contact me
Cruze 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 08:15.


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