Raised This Month: $51 Target: $400
 12% 

[AYUDA]Zp 4.3 Cambiar Speed de un arma


  
 
 
Thread Tools Display Modes
Author Message
ErDuque
BANNED
Join Date: Jul 2013
Location: culiacan sinaloa
Old 08-22-2013 , 19:58   [AYUDA]Zp 4.3 Cambiar Speed de un arma
#1

Encontre esto y tengo el menu de armas de BlackFur y y se 2 menus armas normales y armas modificadas y quiero ponerle speed a solo las armas modificadas aqui el code del speed para las armas
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>

public plugin_init() 
{
    
register_plugin("SPEED WEAPONS""0.1""Kiske")
    
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_awp""fw_Awp_PrimaryAttack_Post"1)
    
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_m3""fw_M3_PrimaryAttack_Post"1)
}

public 
fw_Awp_PrimaryAttack_Post(awp)
{
    new 
id get_pdata_cbase(awp414)
    
    if(!
is_user_alive(id))
        return 
HAM_IGNORED
    
    
if(is_user_connected(id))
    {
        static 
Float:flRate
        flRate 
0.2
        
        set_pdata_float
(awp46flRate4)
        
set_pdata_float(awp47flRate4)
        
set_pdata_float(awp48flRate4)
    }
    return 
HAM_IGNORED
}  

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))
    {
        static 
Float:flRate
        flRate 
0.3
        
        set_pdata_float
(m346flRate4)
        
set_pdata_float(m347flRate4)
        
set_pdata_float(m348flRate4)
    }
    return 
HAM_IGNORED

este es el menu de las armas el menu_death2 son las armas modificadas
PHP Code:
enum ArmasVariables
{
    
item_name_v2[90] , // nombre de la arma
    
item_id // CSW_
    
item_csname[90] , // nombre (cs) weapon_
    
item_level // Nivel
    
item_reset // Reset
    
Float:item_damage // Damage
    
item_modelo[90] , // Modelo v_
    
item_modelo_2[90// Modelo p_
}

new const 
menu_death[][ArmasVariables] =
{
    { 
"MAC-10" CSW_MAC10 "weapon_mac10" 3.0 "default" "default"} ,
    { 
"TMP" CSW_TMP "weapon_tmp" 3.5 "default" "default"} ,
}

new const 
menu_death2[][ArmasVariables] =
{
    { 
"TMP Dragon" CSW_TMP "weapon_tmp" 27.0 "models/zombie_plague/v_tmpdragon.mdl" "default"} ,
    { 
"UMP45 Laser" CSW_UMP45 "weapon_ump45" 30.0 "models/zombie_plague/v_umplaser.mdl" "default"} ,

ErDuque is offline
DiegoCS
Senior Member
Join Date: Mar 2013
Old 08-22-2013 , 20:07   Re: [AYUDA]Zp 4.3 Cambiar Speed de un arma
#2

Quote:
Originally Posted by ErDuque View Post
Encontre esto y tengo el menu de armas de BlackFur y y se 2 menus armas normales y armas modificadas y quiero ponerle speed a solo las armas modificadas aqui el code del speed para las armas
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>

public plugin_init() 
{
    
register_plugin("SPEED WEAPONS""0.1""Kiske")
    
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_awp""fw_Awp_PrimaryAttack_Post"1)
    
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_m3""fw_M3_PrimaryAttack_Post"1)
}

public 
fw_Awp_PrimaryAttack_Post(awp)
{
    new 
id get_pdata_cbase(awp414)
    
    if(!
is_user_alive(id))
        return 
HAM_IGNORED
    
    
if(is_user_connected(id))
    {
        static 
Float:flRate
        flRate 
0.2
        
        set_pdata_float
(awp46flRate4)
        
set_pdata_float(awp47flRate4)
        
set_pdata_float(awp48flRate4)
    }
    return 
HAM_IGNORED
}  

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))
    {
        static 
Float:flRate
        flRate 
0.3
        
        set_pdata_float
(m346flRate4)
        
set_pdata_float(m347flRate4)
        
set_pdata_float(m348flRate4)
    }
    return 
HAM_IGNORED

este es el menu de las armas el menu_death2 son las armas modificadas
PHP Code:
enum ArmasVariables
{
    
item_name_v2[90] , // nombre de la arma
    
item_id // CSW_
    
item_csname[90] , // nombre (cs) weapon_
    
item_level // Nivel
    
item_reset // Reset
    
Float:item_damage // Damage
    
item_modelo[90] , // Modelo v_
    
item_modelo_2[90// Modelo p_
}

new const 
menu_death[][ArmasVariables] =
{
    { 
"MAC-10" CSW_MAC10 "weapon_mac10" 3.0 "default" "default"} ,
    { 
"TMP" CSW_TMP "weapon_tmp" 3.5 "default" "default"} ,
}

new const 
menu_death2[][ArmasVariables] =
{
    { 
"TMP Dragon" CSW_TMP "weapon_tmp" 27.0 "models/zombie_plague/v_tmpdragon.mdl" "default"} ,
    { 
"UMP45 Laser" CSW_UMP45 "weapon_ump45" 30.0 "models/zombie_plague/v_umplaser.mdl" "default"} ,

mostrame TODO el code y te lo dejo .
DiegoCS is offline
ErDuque
BANNED
Join Date: Jul 2013
Location: culiacan sinaloa
Old 08-22-2013 , 20:38   Re: [AYUDA]Zp 4.3 Cambiar Speed de un arma
#3

No te entiendo tu dices todo el code con ti y menu de las armas
esk yo digo k abajo de damage diga Float:item_speed , // Sped Del Arma
Bueno Aqui el code de el menu de las armas
PHP Code:
// Buy Menu Armas
public show_menu_selec(id)
{
    new 
menu_selec_arm menu_create("\wMenus de armas" "handler_selec_arm")
    
    
menu_additem(menu_selec_arm "\w[Armas]\yNormales" "1")
    
menu_additem(menu_selec_arm "\w[Armas]\yModificadas" "2")
    
    
menu_setprop(menu_selec_arm MPROP_EXITNAME,"\ySalir")
    
menu_display(idmenu_selec_arm 0)
    
    return 
PLUGIN_HANDLED
}

public 
handler_selec_arm(id menu_selec_arm item)
{
    if(
item == MENU_EXIT || !is_user_alive(id))
    return 
PLUGIN_HANDLED
    
    
if(!is_human(id))
    {
        
zp_colored_print(id "%s Solo Para^x04 Humanos." TAG)
        return 
PLUGIN_HANDLED
    
}
    
    switch(
item)
    {
        case 
0:
        {
            if(
g_canbuy[id])
                           
show_menu_armas(id+TASK_SPAWN 0)
            else
                            
zp_colored_print(id "%s Ya Has Comprado Tus Armas^x04 Primarias." TAG)
        }
            
        case 
1:
        {
            if(
g_canbuy[id])
                           
show_menu_armas2(id+TASK_SPAWN 0)
            else
                            
zp_colored_print(id "%s Ya Has Comprado Tus Armas^x04 Primarias." TAG)
        }
    }
    return 
PLUGIN_HANDLED
    
}

public 
show_menu_armas(taskid page)
{
    new 
id ID_SPAWN
    
    
new len[999] , temp[22]
    
    if(
can_buy(id))
    return 
PLUGIN_HANDLED
    
    menu_armas 
menu_create("\wArmas \yNormales" "handler_primarias")
    
    if(
g_save_weapons[id][0])
    {
        if(
g_save_weapons[id][1] != -1)
        {
            
handler_primarias(id menu_armas g_save_weapons[id][1])
            return 
PLUGIN_HANDLED
        
}
    }
    
    for(new 
sizeof menu_death i++)
    {
        if(
g_level[id] >= menu_death[i][item_level])
                      
formatex(len charsmax(len) , "\w%s \w[\yDisponible\w]" menu_death[i][item_name_v2])
        else
                       
formatex(len charsmax(len) , "\d%s \w[\rNivel Requerido : \y%d\w]" menu_death[i][item_name_v2] , menu_death[i][item_level])
        
        
num_to_str(i,temp2)
        
menu_additem(menu_armas len temp)
    }
    
    
menu_setprop(menu_armas MPROP_BACKNAME,"\wAtras")
    
menu_setprop(menu_armas MPROP_NEXTNAME,"\wSiguiente")
    
menu_setprop(menu_armas MPROP_EXITNAME,"\rSalir")
    
menu_display(idmenu_armas page)
    
    return 
PLUGIN_HANDLED
}

public 
handler_primarias(id menu_armas item)
{
    if(
item == MENU_EXIT || !is_user_alive(id))
    {
        
menu_destroy(menu_armas)
        return 
PLUGIN_HANDLED
    
}
    
    if(
can_buy(id))
    return 
PLUGIN_HANDLED
    
    
new page armas_2
    player_menu_info
(id menu_armas armas_2 page)
    
    if(
g_level[id] >= menu_death[item][item_level])
    {
        
g_arma_prim[id] = item
        g_save_weapons
[id][1] = item
        drop_weapons
(id 1)
        
fm_give_item(id menu_death[item][item_csname])
        
ExecuteHamB(Ham_GiveAmmoidMAXBPAMMO[menu_death[item][item_id]], AMMOTYPE[menu_death[item][item_id]], MAXBPAMMO[menu_death[item][item_id]])
        
g_canbuy[id] = false
        show_menu_buy2
(id)
    }
    else
    {
        
zp_colored_print(id "%s Necesitas Ser Nivel ^x03%d^x01 Para Adquirir Esta Arma." TAG menu_death[item][item_level])
        
show_menu_armas(id+TASK_SPAWN page)
    }
    return 
PLUGIN_HANDLED
}
can_buy(id)
{
    if(!
is_user_alive(id))
    {
        
zp_colored_print(id "%s %s." TAG UDEAD)
        return 
PLUGIN_HANDLED
    
}
    
    if(!
is_human(id))
    {
        
zp_colored_print(id "%s Solo Para^x04 Humanos." TAG)
        return 
PLUGIN_HANDLED
    
}
    
    if(!
g_canbuy[id])
    {
        
zp_colored_print(id "%s Ya Has Comprado Tu Arma^x04 Primarias." TAG)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE
}

// Armas Modificadas
public show_menu_armas2(taskid page)
{
    new 
id ID_SPAWN
    
    
new len[999] , temp[22]
    
    if(
can_buy(id))
    return 
PLUGIN_HANDLED
    
    menu_armas 
menu_create("\wArmas \yModificadas" "handler_primarias2")
    
    if(
g_save_weapons[id][0])
    {
        if(
g_save_weapons[id][1] != -1)
        {
            
handler_primarias(id menu_armas g_save_weapons[id][1])
            return 
PLUGIN_HANDLED
        
}
    }
    
    for(new 
sizeof menu_death2 i++)
    {
        if(
g_level[id] >= menu_death2[i][item_level] && g_resets[id] >= menu_death2[i][item_reset])
                      
formatex(len charsmax(len) , "\w%s \w[\yDisponible\w]" menu_death2[i][item_name_v2])
        else
                       
formatex(len charsmax(len) , "\d%s \r[\wNivel: \y%d\r|\wReset: \y%d\r]" menu_death2[i][item_name_v2] , menu_death2[i][item_level], menu_death2[i][item_reset])
        
        
num_to_str(i,temp2)
        
menu_additem(menu_armas len temp)
    }
    
    
menu_setprop(menu_armas MPROP_BACKNAME,"\wAtras")
    
menu_setprop(menu_armas MPROP_NEXTNAME,"\wSiguiente")
    
menu_setprop(menu_armas MPROP_EXITNAME,"\rSalir")
    
menu_display(idmenu_armas page)
    
    return 
PLUGIN_HANDLED
}

public 
handler_primarias2(id menu_armas item)
{
    if(
item == MENU_EXIT || !is_user_alive(id))
    {
        
menu_destroy(menu_armas)
        return 
PLUGIN_HANDLED
    
}
    
    if(
can_buy(id))
    return 
PLUGIN_HANDLED
    
    
new page armas_2
    player_menu_info
(id menu_armas armas_2 page)
    
    if(
g_level[id] >= menu_death2[item][item_level] && g_resets[id] >= menu_death2[item][item_reset])
    {
        
g_arma_prim[id] = item
        g_save_weapons
[id][1] = item
        drop_weapons
(id 1)
        
fm_give_item(id menu_death2[item][item_csname])
        
ExecuteHamB(Ham_GiveAmmoidMAXBPAMMO[menu_death2[item][item_id]], AMMOTYPE[menu_death2[item][item_id]], MAXBPAMMO[menu_death2[item][item_id]])
        
g_canbuy[id] = false
        show_menu_buy2
(id)
    }
    else
    {
        
zp_colored_print(id "%s Necesitas Ser Nivel ^x03%d^x01 Con ^x03%d^x01 Reset Para Adquirir Esta Arma." TAG menu_death2[item][item_level], menu_death2[item][item_reset])
        
show_menu_armas2(id+TASK_SPAWN page)
    }
    return 
PLUGIN_HANDLED


Last edited by ErDuque; 08-22-2013 at 20:41.
ErDuque is offline
DiegoCS
Senior Member
Join Date: Mar 2013
Old 08-22-2013 , 21:06   Re: [AYUDA]Zp 4.3 Cambiar Speed de un arma
#4

no creo que lo puedas hacer como quieres ( ni idea ) porque tienes que crear 1 para cada arma .. "weapon_ID"
DiegoCS is offline
ErDuque
BANNED
Join Date: Jul 2013
Location: culiacan sinaloa
Old 08-22-2013 , 21:37   Re: [AYUDA]Zp 4.3 Cambiar Speed de un arma
#5

Gracias we
ErDuque is offline
ChileScripting
BANNED
Join Date: Jan 2013
Old 08-23-2013 , 05:23   Re: [AYUDA]Zp 4.3 Cambiar Speed de un arma
#6

PLUGIN:

Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> #include <cstrike> new g_arma_prim[33] enum ArmasVariables {     item_name_v2[90] , // nombre de la arma     item_id , // CSW_     item_csname[90] , // nombre (cs) weapon_     item_level , // Nivel     item_reset , // Reset     Float:item_damage , // Damage     item_modelo[90] , // Modelo v_     item_modelo_2[90], // Modelo p_     Float:WPNSpeed } new const menu_death[][ArmasVariables] = {     { "MAC-10" , CSW_MAC10 , "weapon_mac10" , 1 , 0 , 3.0 , "default" , "default", 0.5 } ,     { "TMP" , CSW_TMP , "weapon_tmp" , 5 , 0 , 3.5 , "default" , "default", 0.1 } } // Weapon entity names new const WEAPONENTNAMES[][] = { "", "weapon_p228", "", "weapon_scout", "weapon_hegrenade", "weapon_xm1014", "weapon_c4", "weapon_mac10",             "weapon_aug", "weapon_smokegrenade", "weapon_elite", "weapon_fiveseven", "weapon_ump45", "weapon_sg550",             "weapon_galil", "weapon_famas", "weapon_usp", "weapon_glock18", "weapon_awp", "weapon_mp5navy", "weapon_m249",             "weapon_m3", "weapon_m4a1", "weapon_tmp", "weapon_g3sg1", "weapon_flashbang", "weapon_deagle", "weapon_sg552",             "weapon_ak47", "weapon_knife", "weapon_p90" } public plugin_init()  {     register_plugin("Weap Speeds Noobs", "1.0", "ChileScripting")         for (new i = 1; i < sizeof WEAPONENTNAMES; i++)         RegisterHam(Ham_Weapon_PrimaryAttack, WEAPONENTNAMES[i], "fw_Primary_Attack_Post", 1) } public fw_Primary_Attack_Post(weapon_ent) {     new id = get_pdata_cbase(weapon_ent, 41, 4)           if(!is_user_alive(id))         return HAM_IGNORED         if(cs_get_weapon_id(weapon_ent) != menu_death[g_arma_prim[id]][item_id])         return HAM_IGNORED             static Float:flRate     flRate = menu_death[g_arma_prim[id]][WPNSpeed]               set_pdata_float(weapon_ent, 46, flRate, 4)     set_pdata_float(weapon_ent, 47, flRate, 4)     set_pdata_float(weapon_ent, 48, flRate, 4)         return HAM_IGNORED }

ADAPTAR AL ZP:

PHP Code:
enum ArmasVariables 

    
item_name_v2[90] , // nombre de la arma 
    
item_id // CSW_ 
    
item_csname[90] , // nombre (cs) weapon_ 
    
item_level // Nivel 
    
item_reset // Reset 
    
Float:item_damage // Damage 
    
item_modelo[90] , // Modelo v_ 
    
item_modelo_2[90], // Modelo p_ 
    
Float:WPNSpeed


new const 
menu_death[][ArmasVariables] = 

    { 
"MAC-10" CSW_MAC10 "weapon_mac10" 3.0 "default" "default"0.5 } , 
    { 
"TMP" CSW_TMP "weapon_tmp" 3.5 "default" "default"0.1 }


public 
fw_Primary_Attack_Post(weapon_ent)

    new 
id get_pdata_cbase(weapon_ent414
     
    if(!
is_user_alive(id)) 
        return 
HAM_IGNORED 
    
    
if(cs_get_weapon_id(weapon_ent) != menu_death[g_arma_prim[id]][item_id])
        return 
HAM_IGNORED 
        
    
static Float:flRate 
    flRate 
menu_death[g_arma_prim[id]][WPNSpeed]
         
    
set_pdata_float(weapon_ent46flRate4
    
set_pdata_float(weapon_ent47flRate4
    
set_pdata_float(weapon_ent48flRate4
    
    return 
HAM_IGNORED 

EN BANDEJA PIBE

Last edited by ChileScripting; 08-23-2013 at 05:25.
ChileScripting is offline
DiegoCS
Senior Member
Join Date: Mar 2013
Old 08-23-2013 , 06:55   Re: [AYUDA]Zp 4.3 Cambiar Speed de un arma
#7

Quote:
Originally Posted by ChileScripting View Post
PLUGIN:

Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> #include <cstrike> new g_arma_prim[33] enum ArmasVariables {     item_name_v2[90] , // nombre de la arma     item_id , // CSW_     item_csname[90] , // nombre (cs) weapon_     item_level , // Nivel     item_reset , // Reset     Float:item_damage , // Damage     item_modelo[90] , // Modelo v_     item_modelo_2[90], // Modelo p_     Float:WPNSpeed } new const menu_death[][ArmasVariables] = {     { "MAC-10" , CSW_MAC10 , "weapon_mac10" , 1 , 0 , 3.0 , "default" , "default", 0.5 } ,     { "TMP" , CSW_TMP , "weapon_tmp" , 5 , 0 , 3.5 , "default" , "default", 0.1 } } // Weapon entity names new const WEAPONENTNAMES[][] = { "", "weapon_p228", "", "weapon_scout", "weapon_hegrenade", "weapon_xm1014", "weapon_c4", "weapon_mac10",             "weapon_aug", "weapon_smokegrenade", "weapon_elite", "weapon_fiveseven", "weapon_ump45", "weapon_sg550",             "weapon_galil", "weapon_famas", "weapon_usp", "weapon_glock18", "weapon_awp", "weapon_mp5navy", "weapon_m249",             "weapon_m3", "weapon_m4a1", "weapon_tmp", "weapon_g3sg1", "weapon_flashbang", "weapon_deagle", "weapon_sg552",             "weapon_ak47", "weapon_knife", "weapon_p90" } public plugin_init()  {     register_plugin("Weap Speeds Noobs", "1.0", "ChileScripting")         for (new i = 1; i < sizeof WEAPONENTNAMES; i++)         RegisterHam(Ham_Weapon_PrimaryAttack, WEAPONENTNAMES[i], "fw_Primary_Attack_Post", 1) } public fw_Primary_Attack_Post(weapon_ent) {     new id = get_pdata_cbase(weapon_ent, 41, 4)           if(!is_user_alive(id))         return HAM_IGNORED         if(cs_get_weapon_id(weapon_ent) != menu_death[g_arma_prim[id]][item_id])         return HAM_IGNORED             static Float:flRate     flRate = menu_death[g_arma_prim[id]][WPNSpeed]               set_pdata_float(weapon_ent, 46, flRate, 4)     set_pdata_float(weapon_ent, 47, flRate, 4)     set_pdata_float(weapon_ent, 48, flRate, 4)         return HAM_IGNORED }

ADAPTAR AL ZP:

PHP Code:
enum ArmasVariables 

    
item_name_v2[90] , // nombre de la arma 
    
item_id // CSW_ 
    
item_csname[90] , // nombre (cs) weapon_ 
    
item_level // Nivel 
    
item_reset // Reset 
    
Float:item_damage // Damage 
    
item_modelo[90] , // Modelo v_ 
    
item_modelo_2[90], // Modelo p_ 
    
Float:WPNSpeed


new const 
menu_death[][ArmasVariables] = 

    { 
"MAC-10" CSW_MAC10 "weapon_mac10" 3.0 "default" "default"0.5 } , 
    { 
"TMP" CSW_TMP "weapon_tmp" 3.5 "default" "default"0.1 }


public 
fw_Primary_Attack_Post(weapon_ent)

    new 
id get_pdata_cbase(weapon_ent414
     
    if(!
is_user_alive(id)) 
        return 
HAM_IGNORED 
    
    
if(cs_get_weapon_id(weapon_ent) != menu_death[g_arma_prim[id]][item_id])
        return 
HAM_IGNORED 
        
    
static Float:flRate 
    flRate 
menu_death[g_arma_prim[id]][WPNSpeed]
         
    
set_pdata_float(weapon_ent46flRate4
    
set_pdata_float(weapon_ent47flRate4
    
set_pdata_float(weapon_ent48flRate4
    
    return 
HAM_IGNORED 

EN BANDEJA PIBE
muy bueno .. no se me ocurrķa .
DiegoCS is offline
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 08-23-2013 , 09:39   Re: [AYUDA]Zp 4.3 Cambiar Speed de un arma
#8

No te recomiendo usar g_arma_prim para los 2 menues.
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)
Winchester90 is offline
ErDuque
BANNED
Join Date: Jul 2013
Location: culiacan sinaloa
Old 08-23-2013 , 11:27   Re: [AYUDA]Zp 4.3 Cambiar Speed de un arma
#9

Muchas gracias ChileScripting la verdad pense k nunca haria esto eres un capo GraX!

oye marca unos errores

en la tercera llinea marca estos errores
incluso borre la linea esa y me sale el conter normal

Warning: Loose indentation on line 1331
Error: Undefinet Simbol "i" on line 1331
Error: Undefinet Simbol "i" on line 1331
Warning: Loose indentation on line 1335

PHP Code:
for (new 1sizeof WEAPONENTNAMESi++)
        
RegisterHam(Ham_Weapon_PrimaryAttackWEAPONENTNAMES[i], "fw_Primary_Attack_Post"1
        if (
WEAPONENTNAMES[i][0]) RegisterHam(Ham_Item_DeployWEAPONENTNAMES[i], "fw_Item_Deploy_Post"1

Last edited by ErDuque; 08-23-2013 at 12:08.
ErDuque is offline
ChileScripting
BANNED
Join Date: Jan 2013
Old 08-23-2013 , 19:00   Re: [AYUDA]Zp 4.3 Cambiar Speed de un arma
#10

Quote:
Originally Posted by ErDuque View Post
Muchas gracias ChileScripting la verdad pense k nunca haria esto eres un capo GraX!

oye marca unos errores

en la tercera llinea marca estos errores
incluso borre la linea esa y me sale el conter normal

Warning: Loose indentation on line 1331
Error: Undefinet Simbol "i" on line 1331
Error: Undefinet Simbol "i" on line 1331
Warning: Loose indentation on line 1335

PHP Code:
for (new 1sizeof WEAPONENTNAMESi++)
        
RegisterHam(Ham_Weapon_PrimaryAttackWEAPONENTNAMES[i], "fw_Primary_Attack_Post"1
        if (
WEAPONENTNAMES[i][0]) RegisterHam(Ham_Item_DeployWEAPONENTNAMES[i], "fw_Item_Deploy_Post"1
Dejalo asi:

PHP Code:
    for (new 1sizeof WEAPONENTNAMESi++)
    {
        if (
WEAPONENTNAMES[i][0])
        {
            
RegisterHam(Ham_Weapon_PrimaryAttackWEAPONENTNAMES[i], "fw_Primary_Attack_Post"1
            
RegisterHam(Ham_Item_DeployWEAPONENTNAMES[i], "fw_Item_Deploy_Post"1)
        }
    } 
La verdad no tengo tiempo, pero prueba y ve si te funca.
ChileScripting is offline
 



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 05:34.


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