Raised This Month: $ Target: $400
 0% 

Mensaje namas empezar la ronda [SOLUCIONADO]


  
 
 
Thread Tools Display Modes
Author Message
darkvh
Member
Join Date: Sep 2010
Old 04-07-2011 , 22:06   Mensaje namas empezar la ronda [SOLUCIONADO]
#1

Hola busco algun plugin para que cuando comienze la ronda salga un mensaje.
__________________


Zombie plague: 82.194.67.229:27020

Last edited by darkvh; 04-09-2011 at 17:27.
darkvh is offline
xhiino
Senior Member
Join Date: Oct 2009
Location: santiasko
Old 04-08-2011 , 13:19   Re: Mensaje namas empezar la ronda
#2

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""round_start""a""1=0""2=0")
}
public 
round_start()
{
    
client_print(0print_chat"Tu mensajito aqui mi nene :3"// 0 parametro global

__________________

Last edited by xhiino; 04-08-2011 at 23:09.
xhiino is offline
Send a message via MSN to xhiino
Old 04-08-2011, 14:01
elmalo
This message has been deleted by Starsailor.
Old 04-08-2011, 16:00
Neeeeeeeeeel.-
This message has been deleted by Starsailor.
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 04-08-2011 , 23:03   Re: Mensaje namas empezar la ronda
#3

round start no tiene parametros , o haces un loop , o usas 0 de index.
__________________
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
xhiino
Senior Member
Join Date: Oct 2009
Location: santiasko
Old 04-08-2011 , 23:09   Re: Mensaje namas empezar la ronda
#4

Quote:
Originally Posted by lucas_7_94 View Post
round start no tiene parametros , o haces un loop , o usas 0 de index.
Tienes razon , edito altiro
__________________
xhiino is offline
Send a message via MSN to xhiino
darkvh
Member
Join Date: Sep 2010
Old 04-09-2011 , 17:27   Re: Mensaje namas empezar la ronda
#5

Gracias por bustra ayuda, ya lo e solucionado!!
__________________


Zombie plague: 82.194.67.229:27020
darkvh is offline
NaxOxZ
Member
Join Date: Dec 2009
Old 04-09-2011 , 19:41   Re: Mensaje namas empezar la ronda [SOLUCIONADO]
#6

Me sumo a ello, quisiera agregarle un FLAG, con esto me refiero que solo les llege el mensaje a los ADMIN_RESERVATION... ¿Como lo pueodh acer? xddd
NaxOxZ is offline
Calaverazo
Senior Member
Join Date: Dec 2009
Old 04-09-2011 , 22:12   Re: Mensaje namas empezar la ronda [SOLUCIONADO]
#7

Quote:
Originally Posted by NaxOxZ View Post
Me sumo a ello, quisiera agregarle un FLAG, con esto me refiero que solo les llege el mensaje a los ADMIN_RESERVATION... ¿Como lo pueodh acer? xddd
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""round_start""a""1=0""2=0")
}
public 
round_start()
{
    for (new 
id 1id <= 32id++)
    {
        if (
get_user_flags(id) & ADMIN_RESERVATION)
            
client_print(idprint_chat"wtf")
    }


Last edited by Calaverazo; 04-10-2011 at 00:40.
Calaverazo is offline
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 04-10-2011 , 00:23   Re: Mensaje namas empezar la ronda [SOLUCIONADO]
#8

Quote:
Originally Posted by Calaverazo View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""round_start""a""1=0""2=0")
}
public 
round_start()
{
    for (new 
id 1id <= 32id++)
    {
        if (
get_user_flags(id) & ADMIN_RESERVATION))
            
client_print(idprint_chat"wtf")
    }

Guarda el valor de get_maxplayers() en un variable global y haz el bucle, luego verifica si el usuario esta conectado .
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
Calaverazo
Senior Member
Join Date: Dec 2009
Old 04-10-2011 , 00:48   Re: Mensaje namas empezar la ronda [SOLUCIONADO]
#9

Quote:
Originally Posted by shinoda View Post
Guarda el valor de get_maxplayers() en un variable global y haz el bucle, luego verifica si el usuario esta conectado .
Listo , ahora funciona bien.

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new g_maxplayers

#define FLAG        ADMIN_RESERVATION

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""round_start""a""1=0""2=0")
    
    
g_maxplayers get_maxplayers()
}

public 
round_start()
{
    for (new 
idid <= g_maxplayersid++) 
    {
        if (
is_user_connected(id) && get_user_flags(id) & FLAG)
            
client_print(idprint_chat"wtf")
    }

Calaverazo 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 17:20.


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