Raised This Month: $ Target: $400
 0% 

Block Buyzone for specific players while they are in a Buyzone


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 06-21-2014 , 10:28   Re: Block Buyzone for specific players while they are in a Buyzone
Reply With Quote #1

When user gets infected, use this:

PHP Code:
#define m_flNextMapZoneTime 233
#define m_fClientMapZone 235

stock UpdatePlayerMapZones(iId)
{
    
// Make PreThink call CBasePlayer::HandleSignals at the next frame
    
set_pdata_float(iIdm_flNextMapZoneTime0.0

    
// Clear mask from all MapZones, this will check it's specific huds
    // In this case we will clear the related StatusIcon message for "buyzone"
    
set_pdata_int(iIdm_fClientMapZone0)

tip: Make sure you call this on infection, and disinfection, since a player can be disinfected while on buyzone and the same behavior will occur.

2 native calls v/s a lot of message related natives, wonderful
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 06-21-2014 at 10:32.
meTaLiCroSS 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 21:09.


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