Hola! Necesito saber como puedo hacer para forzar a cualquier jugador a que salte. Que el sistema haga que el jugador salte automáticamente. ???
Ayuda ??
Ya lo solucione xd...
[RESUELTO ] !
Ayuda ??
Código PHP:
// FM Forward: Player Think
public fm_PlayerThink( id )
{
if ( !is_user_connected( id ) || !is_user_alive( id ) || !kf_is_zombie( id ) || kf_get_zombie_class( id ) != g_iKfClass_Crawler || kf_round_ended( ) )
return FMRES_IGNORED;
static iTarget, iBody, Float:flLeapCooldown[ 33 ], Float:flVec[ 3 ];
new Float:flDist = get_user_aiming( id, iTarget, iBody );
if ( flDist <= ENEMY_MIN_DIST && get_user_team( iTarget ) == 2 )
{
if ( flLeapCooldown[ id ] < get_gametime( ) )
{
flLeapCooldown[ id ] = get_gametime( ) + LEAP_ABILITY_COOLDOWN;
set_pev( id, pev_oldbuttons, pev( id, pev_oldbuttons ) | IN_JUMP );
client_cmd( id, "+jump" );
velocity_by_aim( id, 590, flVec );
set_pev( id, pev_velocity, flVec );
}
}
return FMRES_IGNORED;
}
Ya lo solucione xd...
[RESUELTO ] !