Raised This Month: $ Target: $400
 0% 

Zombie Apocalypse 4.6 (ZP 4.3)


  
 
 
Thread Tools Display Modes
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-31-2013 , 14:27   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#761

ya que no voy a actualizar más, al menos les dejo esto

PHP Code:
// plugin_init()
// Admin commands
register_concmd("za_give_exp""cmd_exp"_"<player> <amount> - Give experience"0)

// code...
// za_give_exp <player> <ammount>
public cmd_exp(idlevelcid)
{
    if (!
cmd_access(idg_access_flag[ACCESS_ADMIN_MENU], cid2))
        return 
PLUGIN_HANDLED;
        
    new 
target[32], exp[16];
    
read_argv(1targetcharsmax(target));
    
read_argv(2expcharsmax(exp));
    
    new 
player cmd_target(idtargetCMDTARGET_ALLOW_SELF);
    
    if (!
player) return PLUGIN_HANDLED;
    
    if (
no_contain_numbers(exp) || equal(exp""))
    {
        
client_print(idprint_console"La cantidad de EXP debe ser un numero.")
        return 
PLUGIN_HANDLED;
    }
    
    new 
name[32], name2[32];
    
get_user_name(idnamecharsmax(name));
    
get_user_name(playername2charsmax(name2));
    
    
zp_colored_print(0"^x04[ZA]^x01 ADMIN %s ha dado %s EXP al jugador %s."nameexpname2)
    
g_experience[player] += str_to_num(exp)
    
update_level(player)
    
    return 
PLUGIN_HANDLED;
}

stock no_contain_numbers(const str[])
{
    new 
len strlen(str)
    for (new 
0leni++)
    {
        if (!
isdigit(str[i]))
            return 
1;
    }
    
    return 
0;


Last edited by baneado; 07-31-2013 at 14:27.
baneado is offline
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 08-18-2013 , 10:18   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#762

Alguna solución para las cajas? Esque al jugar con los pod salen pero en nuestro servidor son invisibles :S
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)
Winchester90 is offline
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 08-18-2013 , 10:47   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#763

Ja, no pusiste el .mdl o se paso mal, si te sale con los POD...
__________________
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
MexPower
Veteran Member
Join Date: Nov 2012
Old 08-18-2013 , 11:46   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#764

Nel en el sv no salen en la 4.6 las cajas
__________________
Allied Modders En Español
MexPower is offline
MexPower
Veteran Member
Join Date: Nov 2012
Old 08-24-2013 , 15:53   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#765

Menu de donaciones
PHP Code:
#include <amxmodx>
#include <zombieapocalypse>

#define PLUGIN "Donate"
#define VERSION "1.0"
#define AUTHOR "Mex"

new g_maxplayersg_selecteduser[33], g_ingap[33]

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("ing_ap""cmd_ingap")
    
register_clcmd("say /donar""clcmd_donar")
    
g_maxplayers get_maxplayers()
}
public 
clcmd_donar(id)
{
    if(!
zp_get_user_ammo_packs(id)) {
        
client_print(idprint_chat"Usted no tiene AmmoPacks")
        return 
PLUGIN_HANDLED;
    }
    
show_players_menu(id)
    return 
PLUGIN_HANDLED;
}
show_players_menu(id)
{
    new 
len[50], szname[33], menunum[2]
    
formatex(lencharsmax(len), "\rMenu de donaciones, Seleccione al jugador que le donara...^n\yAmmoPacks: %i"zp_get_user_ammo_packs(id))
    
menu menu_create(len"handler_playersmenu")
    for(new 
1<= g_maxplayersi++)
    {
        if(!
is_user_connected(i))
            continue;
        
get_user_name(isznamecharsmax(szname))
        
formatex(lencharsmax(len), "%s - \y(%i)"sznamezp_get_user_ammo_packs(i))
        
num_to_str(inumcharsmax(num))
        
menu_additem(menulennum)
    }
    
menu_display(idmenu0)
}
show_confirm_menu(id)
{
    new 
szname[33], len[50], menu
    get_user_name
(g_selecteduser[id], szname32); formatex(lencharsmax(len), "\rConfirma darle \y%i AmmoPacks \ra \y%s"g_ingap[id], szname)
    
menu menu_create(len"handler_confirmenu")
    
    
menu_additem(menu"Si""0")
    
menu_additem(menu"No""1")
    
menu_display(idmenu0)
}
public 
handler_playersmenu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED;
    }
    new 
buffer[2], dummy
    menu_item_getinfo
(menuitemdummybuffercharsmax(buffer), __dummy)
    
g_selecteduser[id] = buffer[0]
    
    if(!
is_user_connected(g_selecteduser[id]))
    {
        
client_print(idprint_chat"[AMXX] Usuario seleccionado se ha desconectado")
        return 
PLUGIN_HANDLED;
    }
    
    
client_cmd(id"messagemode ing_ap"
    return 
PLUGIN_HANDLED;
}
public 
handler_confirmenu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
show_players_menu(id)
        return 
PLUGIN_HANDLED;
    }
    if(!
is_user_connected(g_selecteduser[id]))
    {
        
client_print(idprint_chat"[AMXX] Usuario seleccionado se ha desconectado")
        return 
PLUGIN_HANDLED;
    }
    if(!
item)
    {
        new 
selectedname[33]; get_user_name(g_selecteduser[id], selectednamecharsmax(selectedname))
        new 
username[33]; get_user_name(idusernamecharsmax(username))
        
zp_set_user_ammo_packs(g_selecteduser[id], zp_get_user_ammo_packs(g_selecteduser[id]) + g_ingap[id])
        
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) - g_ingap[id])
        
client_print(idprint_chat"[AMXX] %s le dono %i AP a %s"selectednameusername)
    }
    return 
PLUGIN_HANDLED;
}
        
public 
cmd_ingap(id)
{
    new 
Args[15];read_args(Argscharsmax(Args))
    
remove_quotes(Args)
    
    if(!
is_user_connected(g_selecteduser[id]))
    {
        
client_print(idprint_chat"[AMXX] Usuario seleccionado se ha desconectado")
        return 
PLUGIN_HANDLED;
    }
    if(!
str_only_num(Args))
    {
        
client_print(idprint_chat"[AMXX] Solo puedes escribir numeros")
        return 
PLUGIN_HANDLED;
    }
    if(!
str_to_num(Args))
    {
        
client_print(idprint_chat"[AMXX] Debes de dar una cantidad mayor a 0")
        return 
PLUGIN_HANDLED;
    }
    
g_ingap[id] = str_to_num(Args)
    
show_confirm_menu(id)
    return 
PLUGIN_HANDLED;
}
stock str_only_num(string[])
{
    new 
len strlen(string)
    for(new 
0leni++)
    {
        if(!(
48 <= string[i] <= 57))
            return 
0
    
}
    return 
1

__________________
Allied Modders En Español

Last edited by MexPower; 08-26-2013 at 15:29.
MexPower is offline
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 08-25-2013 , 19:07   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#766

Encontré un error...

PHP Code:
        while (iNemesis iMaxNemesis)
        {
            
// Choose random guy
            
id fnGetRandomAlive(random_num(1iPlayersnum))
            
            
// Already a survivor or nemesis?
            
if (g_class[id] == SURVIVOR || g_class[id] == NEMESIS) continue;
            
            
// If not, turn him into one
            
zombieme(id0100)
            
iNemesis++
            
            
// Apply survivor health
            
set_user_health(idget_pcvar_num(cvar_plaguesurvhp)) // Plague surv pero es nemesis
        

Se te paso 1 xD
__________________
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
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-26-2013 , 05:12   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#767

ya sé que hay pequeños errores, pero son bastantes pocos comparados con lo otros zp de por aqui...

y ya lo dije, no voy a actualizar mas
baneado is offline
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 08-26-2013 , 13:06   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#768

Si encuentro mas pequeños errores te aviso, o lo aviso por acá, así la gente puede arreglarlos.
__________________
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
black1221
New Member
Join Date: Sep 2010
Old 08-28-2013 , 07:35   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#769

excelente tenia una pregunta como hago para activar de nuevo el radar y el hp que no sale! gracias
black1221 is offline
jesusaliso
Member
Join Date: Aug 2013
Location: Venezuela
Old 08-28-2013 , 13:56   Re: Zombie Apocalypse 4.6 (ZP 4.3)
#770

El link de los models 2.5, todos estan editados? Osea que si todos son nuevos?
jesusaliso is offline
Send a message via Skype™ to jesusaliso
 



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 16:49.


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