Raised This Month: $ Target: $400
 0% 

[CSS/CS:GO] Disable Radar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 05-26-2017 , 20:45   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #26

Quote:
Originally Posted by freddddd View Post
Would it be possible to allow players to personally toggle this on or off via a command?
Quote:
Originally Posted by Chrahb View Post
Would be cool with an option like !radar, to toggle it on, and off as a player.
Also maybe fix so it uses latest syntax
I coded something time ago. csgo only

PHP Code:
#define HIDEHUD_RADAR 1 << 12
#define SHOWHUD_RADAR 1 >> 12

bool radar[MAXPLAYERS 1] = true;

public 
void OnPluginStart()
{
    
RegConsoleCmd("sm_radar"Command_radar"Allows player to toggle the radar.");
}

public 
Action Command_radar(int clientint args)
{
    if(
radar[client])
    {
        
SetEntProp(clientProp_Send"m_iHideHUD"HIDEHUD_RADAR);
        
radar[client] = false;
    }
    else
    {
        
SetEntProp(clientProp_Send"m_iHideHUD"SHOWHUD_RADAR);
        
radar[client] = true;
    }

Attached Files
File Type: sp Get Plugin or Get Source (radar.sp - 949 views - 1.6 KB)
__________________
coding & free software

Last edited by shanapu; 05-26-2017 at 20:45.
shanapu 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 13:09.


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