This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[APORTE] Menu Para Navidad 2.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
StrikerV2
Senior Member
Join Date: Nov 2012
Location: Chile , O Yes!
Old 12-17-2012 , 16:52   [APORTE] Menu Para Navidad 2.0
Reply With Quote #1

Bueno Esta Es La Version 2.0 Se Las Dejo Esta 100% Testeada Sin Bugs .
Well this is the version 2.0 I leave This 100% Tested Without Bugs.

PHP Code:
/* Plugin generated by AMXX-Studio */
/* Creditos a Claans Por Arreglar Mi Menu De navidad , Eres el mejor Very Good :D*/
/* PLUGIN VERY VERY GOOD*/

#include <amxmodx> 
#include <amxmisc> 
#include <cstrike>  

#define PLUGIN    "Navidad" 
#define AUTHOR    "StrikerV2" 
#define VERSION    "2.0" 

#define TAG "[MENU DE NAVIDAD]" 

const KEYSMENU = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9
new 
cvarbind ,g_conectado[33
new 
g_msgSayText 

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR
     
    
register_clcmd("say /santa" "model_menu"
    
register_clcmd("say  santa" "model_menu"
    
register_clcmd("say  santaclaus" "model_menu"
     
    
cvarbind register_cvar("smenu_bindear""1")  
     
    
register_menu"FelicesFiestas"KEYSMENU"MenuNavidad" 
     
    
g_msgSayText get_user_msgid("SayText"


public 
plugin_precache()   
{  
    
precache_model("models/player/santaclaustt/santaclaustt.mdl")  
    
precache_model("models/player/santaclausct/santaclausct.mdl")      
}  


public 
client_putinserver(id

    
g_conectado[id] = 


public 
client_disconnect(id

    
g_conectado[id] = 


public 
spawnbind(id)    
{   
    if(
get_pcvar_num(cvarbind))    
    {   
         
        
hns_print_color(id"^x04%s^x01 Escribe /santa o santa Para Abrir Un Menu Especial"TAG)   
    }    
     
    else   
    {   
        
hns_print_color(id"^x04%s^x01 Escribe /santa o santaclaus Para Abrir Un Menu Especial"TAG)   
    }     
}   

public 
model_menu(id

    static 
Menu[2500], len 
    len 

     
    
new name[33
    
get_user_name(idname32
     
    
len += formatexMenu[len], sizeof Menu len"\y==============================^n\w  Traje Navidad \d|| \wFelices Fiestas^n\y==============================^n^n" 
    
len += formatexMenu[len], sizeof Menu len"\wTraje - \ySanta Claus - Gratis^n"
    
len += formatexMenu[len], sizeof Menu len"\wTraje - \ySanta Claus - Gratis^n^n"
    
len += formatexMenu[len], sizeof Menu len"\r[\w0\r] \wSalir del menu" 
     
    
show_menuidKEYSMENUMenu, -1"FelicesFiestas" // register_menu( "FelicesFiestas", KEYSMENU, "MenuNavidad" ) 


public 
MenuNavidadidkey 

    switch( 
key 
    { 
        case 
0:  
        {  
            if(
cs_get_user_team(id) == CS_TEAM_T)  
            {  
                
cs_set_user_model(id,"santaclaustt")  
                
hns_print_color(id"^x04%s^x01Eres santa claus TT Hasta Lo Que Dure El Mapa"TAG)  
                
hns_print_color(id"^x04%s^x01PD:Un Santa Claus CT"TAG)  
                
hns_print_color(id"^x04%s^x01Tiene Un Sombrero NEGRO"TAG)  
            }  
            else {  
                
hns_print_color(id"^x04%s^x01Tienes que ser TT Para Usar Esto!"TAG)  
            }  
        }  
        case 
1:  
        {  
            if(
cs_get_user_team(id) == CS_TEAM_CT)  
            {  
                
cs_set_user_model(id,"santaclausct")  
                
hns_print_color(id"^x04%s^x01Eres santa claus CT Hasta Lo Que Dure El Mapa"TAG)  
                
hns_print_color(id"^x04%s^x01PD:Un Santa Claus TT"TAG)  
                
hns_print_color(id"^x04%s^x01Tiene Un Sombrero ROJO"TAG)  
            }  
            else {  
                
hns_print_color(id"^x04%s^x01Tienes que ser CT Para Usar Esto!"TAG)  
            }  
        }  
    } 
    return 
PLUGIN_HANDLED


stock hns_print_color(id, const mensaje[], any:...) 

    if(!
g_conectado[id]) 
        return 
     
    static 
buffer[192
    
vformat(buffercharsmax(buffer), mensaje3
     
    
message_begin(MSG_ONE_UNRELIABLEg_msgSayText_id
    
write_byte(id
    
write_string(buffer
    
message_end()     

Attached Files
File Type: zip Christmas.zip (3.00 MB, 128 views)
File Type: sma Get Plugin or Get Source (newchristmass.sma - 224 views - 3.1 KB)

Last edited by StrikerV2; 12-17-2012 at 17:03.
StrikerV2 is offline
Send a message via MSN to StrikerV2
r0ma
Senior Member
Join Date: Apr 2012
Location: Great Tomb of Nazarick
Old 12-17-2012 , 16:55   Re: [APORTE] Menu Para Navidad 2.0
Reply With Quote #2

PHP Code:
/* PLUGIN VERY VERY GOOD/* 
cs_set_user_model genera error...
y se puede optimizar 1 poco mas

EDIT: El rar esta vacio.
__________________
Discord:FluffyDeveloper#4753
Github: https://github.com/francoromaniello
AMX-ES: https://amxmodx-es.com/r0ma'

Last edited by r0ma; 12-17-2012 at 16:56.
r0ma is offline
Send a message via MSN to r0ma
StrikerV2
Senior Member
Join Date: Nov 2012
Location: Chile , O Yes!
Old 12-17-2012 , 17:04   Re: [APORTE] Menu Para Navidad 2.0
Reply With Quote #3

Quote:
Originally Posted by r0ma View Post
PHP Code:
/* PLUGIN VERY VERY GOOD/* 
cs_set_user_model genera error...
y se puede optimizar 1 poco mas

EDIT: El rar esta vacio.
Listo ,

r0ma te agregare al msn para ver si puedes ayudarme a crear un menu mas optimizado :B
StrikerV2 is offline
Send a message via MSN to StrikerV2
claans
Senior Member
Join Date: Jul 2012
Location: Argentina
Old 12-17-2012 , 17:55   Re: [APORTE] Menu Para Navidad 2.0
Reply With Quote #4

-.-' , ese cambio de model te tira el sv , mirate esto :

http://forums.alliedmods.net/showthread.php?t=161255

el stock del chat es de roma :$ .

sl2
cLAANS.-
__________________
http://amxmodx-es.com/ Allied Modders en español
http://amxmodx-es.com/ Allied Modders in spanish
claans is offline
Send a message via MSN to claans Send a message via Skype™ to claans
StrikerV2
Senior Member
Join Date: Nov 2012
Location: Chile , O Yes!
Old 12-17-2012 , 18:00   Re: [APORTE] Menu Para Navidad 2.0
Reply With Quote #5

Quote:
Originally Posted by claans View Post
-.-' , ese cambio de model te tira el sv , mirate esto :

http://forums.alliedmods.net/showthread.php?t=161255

el stock del chat es de roma :$ .

sl2
cLAANS.-
Nunca supe eso :c

Y Ese Api como se usaria para setear el model??
StrikerV2 is offline
Send a message via MSN to StrikerV2
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 12-17-2012 , 18:28   Re: [APORTE] Menu Para Navidad 2.0
Reply With Quote #6

Podrías haber editado tu thread anterior agregando esta información.

PD : Entiendo que estés emocionado por crear plugins , pero no postees cada code que vas haciendo/modificando.
__________________
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
StrikerV2
Senior Member
Join Date: Nov 2012
Location: Chile , O Yes!
Old 12-17-2012 , 18:56   Re: [APORTE] Menu Para Navidad 2.0
Reply With Quote #7

Quote:
Originally Posted by lucas_7_94 View Post
Podrías haber editado tu thread anterior agregando esta información.

PD : Entiendo que estés emocionado por crear plugins , pero no postees cada code que vas haciendo/modificando.
Lo Entiendo , Perdon .

Los Codes Que Voy Poniendo Son Para Que Me Ayuden En Cosas Que Problablemente Pueden Estar Fallando

Por eso publico Los Aportes

Last edited by StrikerV2; 12-17-2012 at 18:57.
StrikerV2 is offline
Send a message via MSN to StrikerV2
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 12-17-2012 , 20:09   Re: [APORTE] Menu Para Navidad 2.0
Reply With Quote #8

entonces si los pones para que te ayuden, no le pongas el tag APORTE.
Y no es necesario que pongas la traducción, estamos en un foro en ESPAÑOL.
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
xGreat
Senior Member
Join Date: Jul 2012
Location: Chilean
Old 12-18-2012 , 08:27   Re: [APORTE] Menu Para Navidad 2.0
Reply With Quote #9

Es un plugin sencillo , no es mal , pero cualquiera lo puede hacer incluso lo puede hacer mejor , es un buen plugin ami no se me hubiese ocurrido hacerlo xD . eso

PD : Me sirvieron mas los models que el plugin.

Saludos xGreat
__________________
Mi 255
WwW.HnsBJz.Tk = MI FORO


Last edited by xGreat; 12-18-2012 at 08:27.
xGreat is offline
Send a message via MSN to xGreat
BlackFur
BANNED
Join Date: Apr 2012
Location: RCL
Old 12-18-2012 , 08:29   Re: [APORTE] Menu Para Navidad 2.0
Reply With Quote #10

que pasa si toy muerto abro el plugin y me pongo el modelo :O , quizas se caiga el sv digo yo o no se
BlackFur is offline
Reply



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 19:08.


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