Raised This Month: $ Target: $400
 0% 

[ZP] como dar ammo ¿?


  
 
 
Thread Tools Display Modes
Author Message
GonzaNewells
Junior Member
Join Date: Feb 2011
Old 02-19-2011 , 04:54   [ZP] como dar ammo ¿?
#1

hola amigos quiero saber como dar ammo... no se de donde baje el plugin llamado zm_giveap pero cuando introdusco el cvar en el cs mi dice q el cvar no funcioan.. si alguien me pude pasar uno ya echo que funcione?
GonzaNewells is offline
Calaverazo
Senior Member
Join Date: Dec 2009
Old 02-19-2011 , 05:05   Re: [ZP]como dar ammo ¿?
#2

No es CVAR, es un comando.

Pone zp_giveap "Nombre" "AmmoPacks" y probá
Calaverazo is offline
GonzaNewells
Junior Member
Join Date: Feb 2011
Old 02-19-2011 , 15:31   Re: [ZP]como dar ammo ¿?
#3

Quote:
Originally Posted by Calaverazo View Post
No es CVAR, es un comando.

Pone zp_giveap "Nombre" "AmmoPacks" y probá
jaja si prove asi tambien pero no pasa nadaa me dice asi:

Unknown command: zp_giveap
GonzaNewells is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 02-19-2011 , 16:00   Re: [ZP]como dar ammo ¿?
#4

no tenes cargado el plugin.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
GonzaNewells
Junior Member
Join Date: Feb 2011
Old 02-19-2011 , 16:54   Re: [ZP]como dar ammo ¿?
#5

Quote:
Originally Posted by lucas_7_94 View Post
no tenes cargado el plugin.
si esta cargado puse el archivo sma en scripting el amxx en pluging... agregue la linea en config plugin... no se si sera un error del plugin lo dejo aca:

Quote:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

public plugin_init ()
{
register_plugin ( "Colorchat", "1.0.0", "arkshine" );
register_clcmd ( "zp_amo", "CmdGiveAP", ADMIN_CVAR, "- zp_giveap <name> <amount> : Give Ammo Packs" );
}

public CmdGiveAP ( id, level, cid )
{
if ( !cmd_access ( id, level, cid, 3 ) )
{
return PLUGIN_HANDLED;
}

new s_Name[ 32 ], s_Amount[ 4 ];

read_argv ( 1, s_Name, charsmax ( s_Name ) );
read_argv ( 2, s_Amount, charsmax ( s_Amount ) );

new i_Target = cmd_target ( id, s_Name, 2 );

if ( !i_Target )
{
client_print ( id, print_console, "(!) Player not found" );
return PLUGIN_HANDLED;
}

zp_set_user_ammo_packs ( i_Target, max ( 1, str_to_num ( s_Amount ) ) );

return PLUGIN_HANDLED;
}
GonzaNewells is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 02-19-2011 , 17:00   Re: [ZP]como dar ammo ¿?
#6

y fijate lo que pones , porque el comando que vos pones no corresponde a la del plugin.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 02-19-2011 , 17:07   Re: [ZP]como dar ammo ¿?
#7

Quote:
zp_amo
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
GonzaNewells
Junior Member
Join Date: Feb 2011
Old 02-19-2011 , 17:30   Re: [ZP]como dar ammo ¿?
#8

zp_amo tambien lo puse y me dice lo mismo :s
GonzaNewells is offline
Old 02-19-2011, 18:06
GonzaNewells
This message has been deleted by Mauro79. Reason: No hagas doble post.
GonzaNewells
Junior Member
Join Date: Feb 2011
Old 02-19-2011 , 18:25   Re: [ZP]como dar ammo ¿?
#9

Quote:
Originally Posted by GonzaNewells View Post
zp_amo tambien lo puse y me dice lo mismo :s
solucionado use este:
PHP Code:
#include <amxmodx> 
#include <zombieplague> 
#include <amxmisc> 
  
#define PLUGIN "dar ammo packs" 
#define VERSION "1.0" 
#define AUTHOR "tjncho" 
  
  
public plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
    
register_concmd ("amx_ammo""CmdGiveAmmo"ADMIN_LEVEL_A"<Name> <Ammopacks>"

  
public 
CmdGiveAmmo(idlevelcid

    if (!
cmd_access(idlevelcid,2)) 
        return 
PLUGIN_HANDLED 
  
    
new arg[32],ammos[32
    
read_argv(1arg31); 
    
read_argv(2ammos31); 
  
    new 
target cmd_target(id,arg,1
    if (!
target) return PLUGIN_HANDLED 
  
    zp_set_user_ammo_packs 
(targetzp_get_user_ammo_packs(target) + str_to_num(ammos)) 
  
    return 
PLUGIN_HANDLED 

GonzaNewells 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 23:33.


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