AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved uq_jumpstats detect longjump (https://forums.alliedmods.net/showthread.php?t=333416)

The overrated maniac 07-10-2021 18:36

uq_jumpstats detect longjump
 
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]);
                                    }
[...] 



All times are GMT -4. The time now is 02:30.

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