Raised This Month: $32 Target: $400
 8% 

[CSO] Hidden Mod(Update v3.5-3/10/13)


Post New Thread Reply   
 
Thread Tools Display Modes
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-02-2013 , 06:14   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #21

@tony: fixed

Btw with get_players isn't working... I prefered maxplayers it is working.

Version 2.1.1
-fixed bugs
-optimisation code
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 05-02-2013 , 07:03   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #22

A piece of advice, use get_players( ). If you still don't know how, gimme the piece of code and I will make it use get_players( ) for you.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-02-2013 , 07:50   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #23

Quote:
Originally Posted by tonykaram1993 View Post
A piece of advice, use get_players( ). If you still don't know how, gimme the piece of code and I will make it use get_players( ) for you.
search in code for SpeedTask()
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 05-02-2013 , 08:44   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #24

Try this:

PHP Code:
Speedtask( ) {
    
/*
        Here we are creating all the variables and getting the
        array iPlayers that will hold all the player's ids
    */
    
static iPlayers32 ], iNumiTempid;
    
get_playersiPlayersiNum );
    
    static 
iTargetiLoop;
    static 
Float:fVelocity32 ], Float:fSpeed;
    
    
/*
        Now we need to loop through them all, and do what ever you want to do
        Note that we are saving each id in iTempid so we do not reindex arrays 
        everytime
    */
    
for( iLoop 0iLoop iNumiLoop++ ) {
        
iTempid iPlayersiLoop ];
        
        
iTarget = ( peviTempidpev_iuser1 ) == ) ? peviTempidpev_iuser2 ) : iTempid;
        
peviTargetpev_velocityfVelocity );
        
        
fSpeed vector_lengthfVelocity );
        
        
/*
            I do advise you to use cs_get_user_team instead of get_user_team, since you already
            included cstrike, it is better AFAIK
        */
        
if( get_user_teamiTempid ) != ) {
            continue;
        }
    
        if( 
fSpeed <= && ( get_user_weaponiTempid ) == CSW_KNIFE ) ) {
            
set_user_renderingiTempidkRenderFxNone000kRenderTransAlpha);
        } else if( 
fSpeed ) {
            
set_user_renderingiTempidkRenderFxNone000kRenderTransAlpha, ( 255 get_pcvar_nump_jokerinvisibility ) / 100 ) );
        }
        
        
/*
            You know since this function is being called so many often, i suggest, saving the pcvar value
            in a global var and then use it here. No need to get it each and every time. Maybe refresh value
            on round start. Your call.
        */
    
}

__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]

Last edited by tonykaram1993; 05-02-2013 at 08:45.
tonykaram1993 is offline
FanatikSVK
Member
Join Date: Aug 2012
Location: Slovakia
Old 05-02-2013 , 08:49   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #25

Nice Mod ;)
__________________
FanatikSVK is offline
Send a message via Skype™ to FanatikSVK
indradullanov
Member
Join Date: Sep 2012
Location: Indonesian
Old 05-02-2013 , 10:12   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #26

i make server in my server ,, why not block buyzone ??
indradullanov is offline
Send a message via Yahoo to indradullanov
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-02-2013 , 11:08   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #27

See on plugin suggestion man... Download and install buyzone range and then put on the cvar the "0"
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-02-2013 , 11:22   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #28

@oxygen935

Will you be able to support this plugin?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-02-2013 , 11:27   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #29

It is written "by oxygen", so if he can't support he musn't release at all.
Also, i think "by oxygen" in title sounds a bit redundant.
What does flag [CSO] stands for ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-02-2013 , 11:32   Re: [CSO] Hidden-Mod - By OxYgEn
Reply With Quote #30

I think i'm able wicked...
Connor i put the [cso] flag cause the idea and generally this mod is from cso...
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Reply


Thread Tools
Display Modes

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 04:51.


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