Raised This Month: $ Target: $400
 0% 

Show PlayerClips


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 10-09-2018 , 08:19   Re: Show PlayerClips
Reply With Quote #2

PHP Code:
#include <sourcemod>

public void OnPluginStart()
{
    
RegConsoleCmd("sm_clips",      Command_Callback);
    
RegConsoleCmd("sm_solidclips"Command_Callback);
}

public 
Action Command_Callback(int clientint args)
{
    if (
IsClientInGame(client))
    {
        
char command[32];
        
GetCmdArg(0commandsizeof(command));
        if (
StrEqual(command"sm_clips"false))
        {
            
FakeClientCommandEx(client"r_drawClipBrushes 1");
        } else {
            
FakeClientCommandEx(client"r_drawClipBrushes 2");
        }
    }

    return 
Plugin_Handled;


Last edited by ThatKidWhoGames; 10-09-2018 at 11:20.
ThatKidWhoGames is offline
 



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 19:07.


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