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

[ZP]Guia/C&P | Como Hacer Grand Reset.


  
 
 
Thread Tools Display Modes
Author Message
MegaNecro
Junior Member
Join Date: Jul 2013
Old 09-08-2013 , 12:51   [ZP]Guia/C&P | Como Hacer Grand Reset.
#1

Guía/C&P.
¿Qué es el Grand Reset?
Como lo dice su nombre "Gran Reseteo",es para alargar mas el juego y darle cosas exclusivas como el reset.El code no es mio,solo modifique el reset de rak.
REQUISITOS: Tener un sistema de resets (obvio)
Empezamos.
Primero creamos una variable
PHP Code:
// Grand Reset
g_grandreset[33
Luego nos vamos a public plugin_init(),buscan la linea // Menus y agregan lo siguiente.
PHP Code:
register_menu("Menu Grand Reset"KEYSMENU"menu_grand_reset"// Registramos el menu 
Busque la linea show_menu_game(id) y agregan lo siguiente.
PHP Code:
//8.Grand Reset
    
len += formatex(menu[len], charsmax(menu) - len"^n\r8.\r %L^n"id"MENU_GRAND_RESET"
Al final del plugin o donde quieran agregan el siguiente public.
PHP Code:
//Public del menu de Grand Reset
public show_menu_grand_reset(id

    static 
menu[800], len 
    len 

     
    len 
+= formatex(menu[len], charsmax(menu) - len"\y%L^n^n\r- \wRequisitos^n\r- Reset:\y10^n^n"id"MENU_GRAND_RESET_TITLE")
     
    if (
g_reset[id] >= 10// Los resets requeridos
        
len += formatex(menu[len], charsmax(menu) - len"\r1.\w Gran Reseteo de Personaje^n^n^n^n"
         
    else 
        
len += formatex(menu[len], charsmax(menu) - len"\r1.\d Gran Reseteo de Personaje - Te Faltan %d resets^n^n^n^n"g_reset[id]) !!!
         
     
    
len += formatex(menu[len], charsmax(menu) - len"\r0.\w %L"id"MENU_EXIT"
     
    
show_menu(idKEYSMENUmenu, -1"Menu Grand Reset"

En public menu_game(id, key) agregamos esto
PHP Code:
case 7// Grand Reset Menu     
            
show_menu_grand_reset(id
Y esto tambien lo agregan donde quieran.
PHP Code:
//Grand Reseteo
public menu_grand_reset(idkey

     
    if (
key >= 1
    { 
        if (
key != MENU_KEY_EXIT
            
show_menu_grand_reset(id
         
        return 
PLUGIN_HANDLED
    } 
     
    if (
g_grandreset[id] > 10)
    { 
        
client_print(id"^x03[^x04ZP^x03]^x01 Vicio,llegastes al ultimo Grand Reset"
        return 
PLUGIN_HANDLED
    } 
     
    switch (
key
    { 
        case 
0
        { 
            if (
g_reset[id] == 10
            { 
                
g_level[id] = 
                g_reset
[id] = 0
                g_grandreset
[id]++
                
g_ammopacks[id] = 
                client_print
(id"^x03[^x04ZP^x03]^x01 Acabas de hacer Grand Reset, ahora tenes^x03 %d Grand Resets!"g_grandreset[id]) 
                
WPN_AUTO_ON 
                g_zombieclassnext
[id] = -
            

            else 
                
zp_colored_print(id"^x03[^x04ZP^x03]^x01 Necesitas ser reset:10"
        } 
    } 
    return 
PLUGIN_HANDLED 

Eso es todo,pueda que tenga bugs,son libres de arreglarlo y compartirlo.
__________________

Last edited by MegaNecro; 09-09-2013 at 17:53.
MegaNecro is offline
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 09-08-2013 , 13:34   Re: [ZP]Guia/C&P | Como Hacer Grand Reset.
#2

Quote:
Originally Posted by MegaNecro View Post
//Para hacer Grand Reset
public show_menu_grand_reset(id)
{
static menu[800], len, reset
reset = 10 - g_reset[id] // Reset requeridos
len = 0

len += formatex(menu[len], charsmax(menu) - len, "\y%L^n^n\r- \wRequisitos^n\r- Reset:\y10^n^n", id, "MENU_GRAND_RESET_TITLE")

if (g_reset[id] >= 10) // Los resets requeridos
len += formatex(menu[len], charsmax(menu) - len, "\r1.\w Gran Reseteo de Personaje^n^n^n^n")

else
len += formatex(menu[len], charsmax(menu) - len, "\r1.\d Gran Reseteo de Personaje - Te Faltan %d resets^n^n^n^n", g_reset)


len += formatex(menu[len], charsmax(menu) - len, "\r0.\w %L", id, "MENU_EXIT")

show_menu(id, KEYSMENU, menu, -1, "Menu Grand Reset")
}


->

Code:
//Para hacer Grand Reset public show_menu_grand_reset(id) {     static menu[800], len     len = 0           len += formatex(menu[len], charsmax(menu) - len, "\y%L^n^n\r- \wRequisitos^n\r- Reset:\y10^n^n", id, "MENU_GRAND_RESET_TITLE")           if (g_reset[id] >= 10) // Los resets requeridos         len += formatex(menu[len], charsmax(menu) - len, "\r1.\w Gran Reseteo de Personaje^n^n^n^n")               else         len += formatex(menu[len], charsmax(menu) - len, "\r1.\d Gran Reseteo de Personaje - Te Faltan %d resets^n^n^n^n", g_reset[id]) !!!                     len += formatex(menu[len], charsmax(menu) - len, "\r0.\w %L", id, "MENU_EXIT")           show_menu(id, KEYSMENU, menu, -1, "Menu Grand Reset") }

Pero esto que eees! XD

static reset
reset = 10 - g_reset[id] // Reset requeridos

RE WTF!

Code:
if (g_grandreset[id] >= 10)     {         zp_colored_print(id, "^x03[^x04ZP^x03]^x01 Vicio,llegastes al ultimo Grand Reset")         return PLUGIN_HANDLED;     }

->

Code:
if (g_grandreset[id] == 10)     {         zp_colored_print(id, "^x03[^x04ZP^x03]^x01 Vicio,llegastes al ultimo Grand Reset")         return PLUGIN_HANDLED;     }

Dps haces:

Code:
if (g_grandreset[id] > 10)          {             client_print(id, print_center, "Alcanzaste el Maximo de Gresets")           return PLUGIN_HANDLED; }
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)
Winchester90 is offline
MegaNecro
Junior Member
Join Date: Jul 2013
Old 09-08-2013 , 13:45   Re: [ZP]Guia/C&P | Como Hacer Grand Reset.
#3

Quote:
Originally Posted by Winchester90 View Post


->

Code:
//Para hacer Grand Reset public show_menu_grand_reset(id) {     static menu[800], len     len = 0           len += formatex(menu[len], charsmax(menu) - len, "\y%L^n^n\r- \wRequisitos^n\r- Reset:\y10^n^n", id, "MENU_GRAND_RESET_TITLE")           if (g_reset[id] >= 10) // Los resets requeridos         len += formatex(menu[len], charsmax(menu) - len, "\r1.\w Gran Reseteo de Personaje^n^n^n^n")               else         len += formatex(menu[len], charsmax(menu) - len, "\r1.\d Gran Reseteo de Personaje - Te Faltan %d resets^n^n^n^n", g_reset[id]) !!!                     len += formatex(menu[len], charsmax(menu) - len, "\r0.\w %L", id, "MENU_EXIT")           show_menu(id, KEYSMENU, menu, -1, "Menu Grand Reset") }

Pero esto que eees! XD

static reset
reset = 10 - g_reset[id] // Reset requeridos

RE WTF!

Code:
if (g_grandreset[id] >= 10)     {         zp_colored_print(id, "^x03[^x04ZP^x03]^x01 Vicio,llegastes al ultimo Grand Reset")         return PLUGIN_HANDLED;     }

->

Code:
if (g_grandreset[id] == 10)     {         zp_colored_print(id, "^x03[^x04ZP^x03]^x01 Vicio,llegastes al ultimo Grand Reset")         return PLUGIN_HANDLED;     }

Dps haces:

Code:
if (g_grandreset[id] > 10)          {             client_print(id, print_center, "Alcanzaste el Maximo de Gresets")           return PLUGIN_HANDLED; }
Estaba muy al pedo y se me pasaron esos errores(muy grandes).
Gracias ya lo arregle.
__________________
MegaNecro is offline
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 09-09-2013 , 03:17   Re: [ZP]Guia/C&P | Como Hacer Grand Reset.
#4

Code:
if (g_grandreset[id] > 10)          {             client_print(id, print_center, "Alcanzaste el Maximo de Gresets")           return PLUGIN_HANDLED; }

Esto no lo veo por ningun lado
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)
Winchester90 is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 09-09-2013 , 05:43   Re: [ZP]Guia/C&P | Como Hacer Grand Reset.
#5

esto sigue siendo lo mismo que un reset normal, no hace falta hacer una guía específica porque es el mismo método, en vez de con la variable g_level con g_reset, es lo mismo LOL
baneado is offline
h34s
Member
Join Date: Aug 2013
Location: Pornhub
Old 09-11-2013 , 19:27   Re: [ZP]Guia/C&P | Como Hacer Grand Reset.
#6

La verdad un post al pedo es lo mismo q un menu de reset nada mas q cambias algunas cosas
h34s 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 15:47.


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