Raised This Month: $ Target: $400
 0% 

Block team move while alive


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 08-30-2018 , 09:33   Re: Block team move while alive
Reply With Quote #1

PHP Code:

#include <sourcemod> 

public Plugin:myinfo 

    
name "block team change"
    
author "dustin"
    
description "blocks team change command when players are alive"
    
version "1.0"
    
url ""
}; 

public 
OnPluginStart() 

    
AddCommandListener(CommandJoinTeam"jointeam"); 


public 
Action CommandJoinTeam(client, const char[] commandargs

    if (
client)
    {
        if (
IsClientInGame(client))
        {
            if (
IsPlayerAlive(client)) 
            { 
                
ReplyToCommand(client"You cannot use this command while alive."
                return 
Plugin_Handled
            } 
        }
    }

    return 
Plugin_Continue

Ilusion9 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 13:22.


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