Raised This Month: $ Target: $400
 0% 

(KREEDZ) Make CP on ladder


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-16-2012 , 01:10   (KREEDZ) Make CP on ladder
Reply With Quote #1

How a player can create a checkpoint on ladder?
I have this code, but when you try create CP on a ladder it's says "You can't make a checkpoint in the air" That's because of " FL_ONGROUND2 "

PHP Code:
public CheckPoint(id)
{
    if(
get_pcvar_num(kz_checkpoints) == 1)
    {

        if( !
is_user_aliveid ) )
        {
            switch (
get_pcvar_num(kz_chatorhud))
            {
                case 
1ColorChat(idGREEN"You must be alive to use this command.")
                case 
2kz_hud_message(id"You must be alive to use this command")
            }
            return 
PLUGIN_HANDLED
        
}

        if( !( 
pevidpev_flags ) & FL_ONGROUND2 ) )
        {
            switch (
get_pcvar_num(kz_chatorhud))
            {
                case 
1ColorChat(idGREEN"You can't make a checkpoint in the air.")
                case 
2kz_hud_message(id"You can't make a checkpoint in the air")
            }
            return 
PLUGIN_HANDLED
        
}
        
        if( 
IsPaused[id] )
        {
            switch (
get_pcvar_num(kz_chatorhud))
            {
                case 
1ColorChat(idGREEN"You can't make a checkpoint in pause.")
                case 
2kz_hud_message(id"You can't make a checkpoint in pause")
            }
            return 
PLUGIN_HANDLED
        
}
        
        
pev(idpev_originCheckpoints[id][g_bCpAlternate[id] ? 0])
        
g_bCpAlternate[id] = !g_bCpAlternate[id]
        
checknumbers[id]++

        switch (
get_pcvar_num(kz_chatorhud))
        {
            case 
1ColorChat(idGREEN"^1Checkpoint ^3#%d ^1created",checknumbers[id])
            case 
2kz_hud_message(id"Checkpoint #%d",checknumbers[id])
        }
    }
    else
    {
        switch (
get_pcvar_num(kz_chatorhud))
        {
            case 
1ColorChat(idGREEN"Checkpoints are off.")
            case 
2kz_hud_message(id"Checkpoints are off")
        }
    }
    return 
PLUGIN_HANDLED


Last edited by bazhenov93; 04-16-2012 at 01:10.
bazhenov93 is offline
 


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 07:52.


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