Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi Jump Only CT [Sadece CT'dekiler yapar]
#1
PHP Code:
/*    Formatright © 2009, ConnorMcLeod

    Multi Jumps is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Multi Jumps; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define ADMIN_MULTIJUMP ADMIN_RCON

#define VERSION "0.0.7"

#define MAX_PLAYERS 32

#define m_iTeam 114
#define m_afButtonPressed 246
#define m_flFallVelocity 251

new g_iJumpCount[MAX_PLAYERS+1]
new 
g_bMultiJump[MAX_PLAYERS+1 char]

new 
g_pCvarMultiJumpsg_pCvarTeamAllowedg_pCvarOnlyAdminsg_pCvarMaxFallVelocityg_pCvarJumpVelocity

public plugin_init()
{
    
register_plugin("Multi Jumps"VERSION"ConnorMcLeod")

    
g_pCvarMultiJumps register_cvar("mp_multijumps""1")
    
g_pCvarTeamAllowed register_cvar("mp_multijumps_team""2"//0:nobody, 1:terrorists, 2:cts, 3:all
    
g_pCvarOnlyAdmins register_cvar("mp_multijumps_adminonly""0")
    
g_pCvarMaxFallVelocity register_cvar("mp_multijump_maxfallvelocity""99999999999")
    
g_pCvarJumpVelocity register_cvar("mp_multijumps_jumpvelocity""333")

    
register_clcmd("say /mj""ClCmd_Say_MultiJump")
    
register_clcmd("say /multijump""ClCmd_Say_MultiJump")

    
RegisterHam(Ham_Player_Jump"player""OnCBasePlayer_Jump"false)
}

public 
client_putinserverid )
{
    
g_bMultiJumpid } = true
}

public 
ClCmd_Say_MultiJumpid )
{
    
client_print(idprint_chat" * MultiJumps : %sable", ( g_bMultiJumpid } = !g_bMultiJumpid } ) ? "en" "dis")
}

public 
OnCBasePlayer_Jump(id)
{
    if( !
g_bMultiJumpid } || !is_user_alive(id) )
    {
        return 
HAM_IGNORED
    
}

    new 
fFlags pev(idpev_flags)
    if(    
fFlags FL_WATERJUMP
    
||    pev(idpev_waterlevel) >= 2
    
||    !(get_pdata_int(idm_afButtonPressed) & IN_JUMP)    )
    {
        return 
HAM_IGNORED
    
}

    if(    
fFlags FL_ONGROUND    )
    {
        
g_iJumpCount[id] = 0
        
return HAM_IGNORED
    
}

    new 
iMulti get_pcvar_num(g_pCvarMultiJumps)

    if( 
iMulti )
    {
        if(    
get_pcvar_num(g_pCvarTeamAllowed) & get_pdata_int(idm_iTeam)
        ||    ( 
get_pcvar_num(g_pCvarOnlyAdmins) && get_user_flags(id) & ADMIN_MULTIJUMP )    )
        {
            if(    
get_pdata_float(idm_flFallVelocity) < get_pcvar_float(g_pCvarMaxFallVelocity)
            &&    ++
g_iJumpCount[id] <= iMulti    )
            {
                new 
Float:fVelocity[3]
                
pev(idpev_velocityfVelocity)
                
fVelocity[2] = get_pcvar_float(g_pCvarJumpVelocity)
                
set_pev(idpev_velocityfVelocity)
                return 
HAM_HANDLED
            
}
        }
    }

    return 
HAM_IGNORED

Bir teşekkürü çok görmeyiniz [Alıntıdır ] Smile
Reply
#2
amxx yaparmısın
-ɴoвle clαɴ jαιlвreαĸ ɢαмιɴɢ - popcorɴ

-ip : 46.45.173.2

-dɴѕ : cм2.coυɴтerмerĸezι.coм

-мѕη : [email protected]

-Not : +15 Kişilik , +10 onlineli alt clan aranıyor.

-Web : NobleSiker.Tr.gg

-Slotluk Ücretsizdir Cool
Reply
#3
saol

---------- Alttaki Mesaj Zamani 13:44 ---------- Önceki Mesaj Zamani 13:43 ----------

teskkr

---------- Alttaki Mesaj Zamani 13:44 ---------- Önceki Mesaj Zamani 13:44 ----------

tskkr

---------- Alttaki Mesaj Zamani 13:49 ---------- Önceki Mesaj Zamani 13:44 ----------

saol
Reply
#4
eyv

- - - - - - - - - -

eyv
Reply
#5
beyler bu php kodunu napıcam ya acil yardım
Reply
#6
sasasas
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sadece CT'ler için Boya Kalemi [Resimli] Furkan Dize 28 32,335 26-03-17, 19:43
Last Post: ernecdet
  CT Silah Menüsü [Sadece AMXX] Nobb 5 10,051 07-12-16, 13:53
Last Post: Spydevil19
  Only Ct Speak ( Sadece CT'ler Microfon Basar ) NiCoMeDiA 163 24,675 02-04-15, 22:13
Last Post: jackdalton06
  Multi jump plugini aLiveLiamk 5 4,196 16-09-14, 15:11
Last Post: kapucu1030

Foruma Atla:


Users browsing this thread: 1 Guest(s)