Raised This Month: $ Target: $400
 0% 

Not work player velocity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kulers2010
Junior Member
Join Date: Oct 2011
Location: Latvia
Old 07-24-2013 , 19:47   Not work player velocity
Reply With Quote #1

Thats my function
PHP Code:
public pfn_touch(entid)
{
    if (
id && id <= 32)
    {
        if (
is_user_alive(id))
        {
            if (
isBlock(ent))
            {
                new 
blockType entity_get_int(entEV_INT_body);                
                if (
blockType == BM_BHOP || blockType == BM_BARRIER_CT || blockType == BM_BARRIER_T || blockType == BM_BHOP_NOSLOW || blockType == BM_NONADMIN || blockType == BM_DELAYED)
                {
                    if (!
task_exists(TASK_BHOPSOLIDNOT ent) && !task_exists(TASK_BHOPSOLID ent))
                    {
                        new 
CsTeams:team cs_get_user_team(id);
                        
                        if (
blockType == BM_BARRIER_CT && team == CS_TEAM_T)
                        {
                            
taskSolidNot(TASK_BHOPSOLIDNOT ent);
                        }
                        else if (
blockType == BM_BARRIER_T && team == CS_TEAM_CT)
                        {
                            
taskSolidNot(TASK_BHOPSOLIDNOT ent);
                        }
                        else if (
blockType == BM_BHOP || blockType == BM_BHOP_NOSLOW)
                        {
                            
set_task(0.1"taskSolidNot"TASK_BHOPSOLIDNOT ent);
                        }
                        else if (
blockType == BM_NONADMIN && get_user_flags(id) & ADMIN_LEVEL_H)
                        {
                            
taskSolidNot(TASK_BHOPSOLIDNOT ent);
                        }
                        else if (
blockType == BM_DELAYED)
                        {
                            
set_task(2.0"taskSolidNot"TASK_BHOPSOLIDNOT ent);
                        }
                    }
                }else{
                    new 
FloatAngel[3];
                    
entity_get_vector(ent,EV_VEC_angles,Angel);
                    
//client_print(id,print_chat,"Angle: %f %f %f",Angel[0],Angel[1],Angel[2]);
                    
if(floatround(Angel[0]) == 90){
                        if(
blockType == BM_TRAMPOLINE)
                            
set_task(0.0,"actionTrampoline",id);
                        else if(
blockType == BM_LOWTRAMPOLINE)
                            
set_task(0.0,"actionLowTrampoline",id);
                        else if(
blockType == BM_HIGHTRAMPOLINE){
                            
set_task(0.0,"actionHighTrampoline",id);
                        }
                    }
                    
                    
                    
//Slide turas pie apaksas blokam
                    
if(blockType  ==  BM_SLIDE){
                        new 
Float:velocity[3];        
                        
entity_get_vector(idEV_VEC_velocityvelocity);
                        
velocity[2] = 100.0;                
                        
entity_set_vector(idEV_VEC_velocityvelocity);
                        
                        
client_print(id,print_chat,"Velocity 100");
                        
                    }
                    
                }
                
            }
        }
    }
    
    return 
PLUGIN_CONTINUE;

And thats not work, its only show in chat thats text velocity 100
PHP Code:
if(blockType  ==  BM_SLIDE){
                        new 
Float:velocity[3];        
                        
entity_get_vector(idEV_VEC_velocityvelocity);
                        
velocity[2] = 100.0;                
                        
entity_set_vector(idEV_VEC_velocityvelocity);
                        
                        
client_print(id,print_chat,"Velocity 100");
                        
                    } 

Last edited by kulers2010; 07-24-2013 at 19:47.
kulers2010 is offline
Send a message via Skype™ to kulers2010
 



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 06:29.


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