Raised This Month: $ Target: $400
 0% 

Need help to code ladder in to blockmaker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cyklarn
Junior Member
Join Date: May 2008
Location: Sweden
Old 06-08-2009 , 07:16   Re: Need help to code ladder in to blockmaker
Reply With Quote #1

Is this the action id??



Code:
public fwdPlayerPreThink(id) {  
    if ( is_user_alive(id)) {  
        if( gOnLadder[id] ) {  
            new Float:velocity[3];  
            pev(id, pev_velocity, velocity);  
              
            if ( (pev(id, pev_button) & IN_FORWARD) && (velocity[0] == 0.0 || velocity[1] == 0.0) ) {  
                velocity[2] = 250.0;  
                set_pev(id, pev_velocity, velocity);  
            }  
            gOnLadder[id] = false;  
        }  
          
        new ent, body;  
        get_user_aiming(id, ent, body, 320);  
          
        if (isLadder(ent)) {  
            set_hudmessage(0, 25, 255, -1.0, -0.90, 0, 1.0, 1.0, 0.2, 0.2, 1);  
            show_hudmessage(id, "First In-Game Ladder.");  
        }  
    }  
}  

public fwdTouch(ent, id) {  
    if (is_user_alive(id) && isLadder(ent)) {  
        set_pev(id, pev_movetype, MOVETYPE_FLY);  
          
        gOnLadder[id] = true;  
          
        // Velocity way  
        new Float:velocity[3];  
        pev(id, pev_velocity, velocity);  
          
        if ( (pev(id, pev_button) & IN_FORWARD) && (velocity[0] == 0.0 || velocity[1] == 0.0) ) {  
            velocity[2] = 250.0;  
            set_pev(id, pev_velocity, velocity);  
        }  
          
    }  
}

Last edited by Cyklarn; 06-08-2009 at 07:18.
Cyklarn is offline
Send a message via Skype™ to Cyklarn
znovit
Member
Join Date: Mar 2009
Location: Behind you :=
Old 06-08-2009 , 07:31   Re: Need help to code ladder in to blockmaker
Reply With Quote #2

Don't bump until 14 days has pasted since last post.
__________________
znovit is offline
malec321
Senior Member
Join Date: May 2009
Location: Los Angeles
Old 06-27-2009 , 05:26   Re: Need help to code ladder in to blockmaker
Reply With Quote #3

add me on steam ill help


mgaren
malec321 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-27-2009 , 05:55   Re: Need help to code ladder in to blockmaker
Reply With Quote #4

Quote:
Originally Posted by malec321 View Post
add me on steam ill help


mgaren
How you can help.... you even dont know properly basics of scripting.
__________________
xPaw is offline
malec321
Senior Member
Join Date: May 2009
Location: Los Angeles
Old 06-27-2009 , 05:57   Re: Need help to code ladder in to blockmaker
Reply With Quote #5

well its not that i can get a friend to help me out to?
malec321 is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 06-27-2009 , 05:58   Re: Need help to code ladder in to blockmaker
Reply With Quote #6

But you said this:
Quote:
add me on steam ill help


mgaren
You said that you will help him.
zacky is offline
Send a message via Skype™ to zacky
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 23:35.


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