Raised This Month: $51 Target: $400
 12% 

Solved uq_jumpstats detect longjump


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The overrated maniac
Member
Join Date: Jun 2021
Location: Argentina
Old 07-10-2021 , 18:36   uq_jumpstats detect longjump
Reply With Quote #1

How can I detect when a player jumps longjump in this plugin?

https://forums.alliedmods.net/showthread.php?t=141586

Solved:
line 6050
if (jump_type[id] == Type_LongJump && distance[id] >= 250.0){
client_print(0, print_chat, "xx jumped godlike LJ");
}

here:
PHP Code:
[...]
for(new 
i=0;i<iNum;i++) 
                    { 
                        new 
ids=iPlayers[i]; 
                        if(
gHasColorChat[ids] ==true || ids==id)
                        {    
                            if( !
failed_jump[id] )
                            {
                                if((
jump_type[id]==Type_Bhop_In_Duck || jump_type[id]==Type_Up_Bhop_In_Duck || jump_type[id]==Type_Up_Stand_Bhop || jump_type[id]==Type_Up_Bhop || jump_type[id]==Type_DuckBhop || jump_type[id]==Type_Real_ladder_Bhop || jump_type[id]==Type_Double_CountJump
                                             
|| (multiscj[id]!=&& jump_type[id]==Type_StandUp_CountJump) || (multidropcj[id]!=&& jump_type[id]==Type_Drop_CountJump) || jump_type[id]==Type_CountJump
                                             
|| jump_type[id]==Type_Drop_BhopLongJump || jump_type[id]==Type_BhopLongJump || jump_type[id]==Type_StandupBhopLongJump || jump_type[id]==Type_WeirdLongJump
                                             
|| jump_type[id]==Type_ladderBhop || jump_type[id]==Type_ladder || jump_type[id]==Type_LongJump || jump_type[id]==Type_HighJump))
                                {
        ------------>                if (
jump_type[id] == Type_LongJump && distance[id] >= 250.0 &&){ 
                                                                              
make thing;          
                                    }
                                    if ( 
distance[id] >= god_dist ) {
                                        if( 
uq_sounds && enable_sound[ids]==true )
                                        {
                                            
client_cmd(ids"speak misc/mod_godlike");
                                        }
                                        if( 
uq_light krasnota(id);
                                        
Color_Chat_Lang(idsRED"%L",LANG_SERVER,"UQSTATS_CCHAT_NORMALA",prefixg_playername[id], distance[id],Jtype[id],block_str,weapon_name,pre_type[id],airacel[id]);
                                    }
                                    else if ( 
distance[id] >= leet_dist  ) {
                                        if( 
uq_sounds && enable_sound[id]==true client_cmd(id"speak misc/mod_wickedsick");
                                    
                                        if( 
uq_light krasnota(id);
                                        
Color_Chat_Lang(idsRED"%L",LANG_SERVER,"UQSTATS_CCHAT_NORMALA",prefixg_playername[id], distance[id],Jtype[id],block_str,weapon_name,pre_type[id],airacel[id]);
                                    }
[...] 

Last edited by The overrated maniac; 07-20-2021 at 09:54.
The overrated maniac 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 17:53.


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