Raised This Month: $ Target: $400
 0% 

No me funciona la velocidad


  
 
 
Thread Tools Display Modes
Author Message
Lucho.
Member
Join Date: Jul 2012
Location: Buenos Aires, Argentina
Old 08-07-2013 , 22:20   No me funciona la velocidad
#1

Hola, les quiero pedir ayuda es que yo intente que al setear la variable en true dispare rapido pero no funciono D:

PHP Code:
RegisterHamHam_Weapon_PrimaryAttack"weapon_scout""HAMWeaponPrimaryAttackSCOUT"
PHP Code:
public HAMWeaponPrimaryAttackSCOUT(id)
{
    if (
g_rapido[id] >= )
    {
     
set_pdata_floatid460.09)
     
set_pdata_floatid470.09)
     
set_pdata_floatid480.09)
    }


Ayuda! D:
Lucho. is offline
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 08-07-2013 , 23:09   Re: No me funciona la velocidad
#2

Eso es el post del atacke, no es antes. Igual yo una vez lo hice, hay un plugin de conor que con comandos le setea velocidad a las armas, pasalo a variables.
__________________
Quote:
Originally Posted by YakumoHiratsuhi View Post
@DiegoCS
No sé talvez solo sea yo, pero tu me caes mal campeón.


JAJAJAJAJAJAJAJAJA

Quote:
Originally Posted by meTaLiCroSS View Post
Con 12 años quien no habla mierda detras de un PC, esperate a que te diga algo en persona jajajajaj VIVO DE AHI NO SALE JAJAJA
Matians is offline
UnrealT
Member
Join Date: Jul 2013
Old 08-07-2013 , 23:58   Re: No me funciona la velocidad
#3

Prueba esto que encontre
PHP Code:
public plugin_init() {
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_m3""fw_m3_PrimaryAttack_Post"1)
tu_cvar register_cvar ("m3_speed""0.35")
}

public 
fw_m3_PrimaryAttack_Post(m3)
{
    new 
id get_pdata_cbase(m3414)
    if(!
is_user_alive(id))
        return 
HAM_IGNORED

        
static Float:flRate

    
if(is_user_connected(id))
    {
        if (
g_rapido[id])
        {
            
flRate get_pcvar_float(tu_cvar)
            
set_pdata_float(m346flRate4)
            
set_pdata_float(m347flRate4)
            
set_pdata_float(m348flRate4)
        }
        else
        {
            
flRate 1.0
            set_pdata_float
(m346flRate4)
            
set_pdata_float(m347flRate4)
            
set_pdata_float(m348flRate4)
        }
    }
    return 
HAM_IGNORED


Last edited by UnrealT; 08-08-2013 at 20:49.
UnrealT is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-08-2013 , 11:58   Re: No me funciona la velocidad
#4

Quote:
Originally Posted by UnrealT View Post
Prueba esto que encontre
PHP Code:
public plugin_init() {
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_m3""fw_m3_PrimaryAttack_Post"1)
tu_cvar register_cvar ("m3_speed""0.35")
}

public 
fw_m3_PrimaryAttack_Post(m3)
{
    new 
id get_pdata_cbase(m3414)
    if(!
is_user_alive(id))
        return 
HAM_IGNORED
    
if(is_user_connected(id))
    {
        if (
g_rapido[id])
        {
            static 
Float:flRate
            flRate 
get_pcvar_float(tu_cvar)
            
set_pdata_float(m346flRate4)
            
set_pdata_float(m347flRate4)
            
set_pdata_float(m348flRate4)
        }
        else if (!
g_rapido[id])
        {
            static 
Float:flRate
            flRate 
1.0
            set_pdata_float
(m346flRate4)
            
set_pdata_float(m347flRate4)
            
set_pdata_float(m348flRate4)
        }
    }
    return 
HAM_IGNORED

para qué creas dos veces flRate ?
baneado is offline
Lucho.
Member
Join Date: Jul 2012
Location: Buenos Aires, Argentina
Old 08-08-2013 , 14:04   Re: No me funciona la velocidad
#5

Me funciono gracias.
Lucho. is offline
UnrealT
Member
Join Date: Jul 2013
Old 08-08-2013 , 20:48   Re: No me funciona la velocidad
#6

Quote:
Originally Posted by baneado View Post
para qué creas dos veces flRate ?
Yo no lo he creado , a eso lo encontre

Quote:
Originally Posted by Lucho. View Post
Me funciono gracias.
De nada

Last edited by UnrealT; 08-08-2013 at 20:50.
UnrealT is offline
Old 08-08-2013, 20:49
UnrealT
This message has been deleted by UnrealT. Reason: mal
 



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 00:38.


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