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

[ZP] Duda y Peticion [VIP]


  
 
 
Thread Tools Display Modes
matrix123
Veteran Member
Join Date: Feb 2011
Old 07-06-2011 , 21:25   Re: [ZP] Duda y Peticion [VIP]
#11

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Rango V.I.P"
#define VERSION "1.0"
#define AUTHOR "Matrix"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say","HookSay"// hookeamos el say
    // Add your code here...
}

public 
HookSay(id)
{
new 
szArg[256// creamos la variable
read_args(szArgcharsmax(szArg)) // obtenemos lo que escribe la persona
remove_quotes(szArg// le quitamos las comillas al say
new name[32// creamos la variable
get_user_name(idname31// obtenemos el nombre

client_print(0,print_chat,"!g[VIP] !team%s: %s"nameszArg)  // ahi reemplazamos el say por este
return PLUGIN_HANDLED// ponemos esto para que no aparezcan 2 mensajes 
}
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
 
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
 
    
new iPlayer;
     
    if (
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            
iPlayer players[i];
            if (
is_user_connected(iPlayer))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_SayText_iPlayer);
                
write_byte(iPlayer);
                
write_string(msg);
                
message_end();
            }
        }
    }


ahi ta :F
matrix123 is offline
Enri
Junior Member
Join Date: Jan 2011
Old 07-06-2011 , 21:27   Re: [ZP] Duda y Peticion [VIP]
#12

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Rango V.I.P"
#define VERSION "1.0"
#define AUTHOR "Matrix"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say","HookSay"// hookeamos el say
    // Add your code here...
}

public 
HookSay(id)
{
new 
szArg[256// creamos la variable
read_args(szArgcharsmax(szArg)) // obtenemos lo que escribe la persona
remove_quotes(szArg// le quitamos las comillas al say
new name[32// creamos la variable
get_user_name(idname31// obtenemos el nombre

client_print(0,print_chat,"!g[VIP] !team2%s: %s"nameszArg)  // ahi reemplazamos el say por este
return PLUGIN_HANDLED// ponemos esto para que no aparezcan 2 mensajes 
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
 
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
 
    
new iPlayer;
     
    if (
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            
iPlayer players[i];
            if (
is_user_connected(iPlayer))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_SayText_iPlayer);
                
write_byte(iPlayer);
                
write_string(msg);
                
message_end();
            }
        }
    }

->

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Rango V.I.P"
#define VERSION "1.0"
#define AUTHOR "Matrix"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say","HookSay"// hookeamos el say
    // Add your code here...
}

public 
HookSay(id)
{
new 
szArg[256// creamos la variable
read_args(szArgcharsmax(szArg)) // obtenemos lo que escribe la persona
remove_quotes(szArg// le quitamos las comillas al say
new name[32// creamos la variable
get_user_name(idname31// obtenemos el nombre

client_print(0,print_chat,"^4[VIP] ^0%s: %s"nameszArg)  // ahi reemplazamos el say por este
return PLUGIN_HANDLED// ponemos esto para que no aparezcan 2 mensajes 
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
 
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
 
    
new iPlayer;
     
    if (
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            
iPlayer players[i];
            if (
is_user_connected(iPlayer))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_SayText_iPlayer);
                
write_byte(iPlayer);
                
write_string(msg);
                
message_end();
            }
        }
    }


Probá de esa forma.
__________________
Enri is offline
Send a message via MSN to Enri Send a message via Skype™ to Enri
CoQuito
Senior Member
Join Date: Jul 2011
Location: Hempstead, New York
Old 07-06-2011 , 21:33   Re: [ZP] Duda y Peticion [VIP]
#13

Quote:
Originally Posted by Enri View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Rango V.I.P"
#define VERSION "1.0"
#define AUTHOR "Matrix"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say","HookSay"// hookeamos el say
    // Add your code here...
}

public 
HookSay(id)
{
new 
szArg[256// creamos la variable
read_args(szArgcharsmax(szArg)) // obtenemos lo que escribe la persona
remove_quotes(szArg// le quitamos las comillas al say
new name[32// creamos la variable
get_user_name(idname31// obtenemos el nombre

client_print(0,print_chat,"!g[VIP] !team2%s: %s"nameszArg)  // ahi reemplazamos el say por este
return PLUGIN_HANDLED// ponemos esto para que no aparezcan 2 mensajes 
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
 
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
 
    
new iPlayer;
     
    if (
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            
iPlayer players[i];
            if (
is_user_connected(iPlayer))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_SayText_iPlayer);
                
write_byte(iPlayer);
                
write_string(msg);
                
message_end();
            }
        }
    }

->

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Rango V.I.P"
#define VERSION "1.0"
#define AUTHOR "Matrix"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say","HookSay"// hookeamos el say
    // Add your code here...
}

public 
HookSay(id)
{
new 
szArg[256// creamos la variable
read_args(szArgcharsmax(szArg)) // obtenemos lo que escribe la persona
remove_quotes(szArg// le quitamos las comillas al say
new name[32// creamos la variable
get_user_name(idname31// obtenemos el nombre

client_print(0,print_chat,"^4[VIP] ^0%s: %s"nameszArg)  // ahi reemplazamos el say por este
return PLUGIN_HANDLED// ponemos esto para que no aparezcan 2 mensajes 
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
 
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
 
    
new iPlayer;
     
    if (
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            
iPlayer players[i];
            if (
is_user_connected(iPlayer))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_SayText_iPlayer);
                
write_byte(iPlayer);
                
write_string(msg);
                
message_end();
            }
        }
    }

Probá de esa forma.
Enri tu forma tiene 4 Errores D: !
y la de Matrix no tiene errores Pero
Sigue como siempre estuvo :
!g[VIP] y etc. y en amarillo Todito xD!
CoQuito is offline
Send a message via MSN to CoQuito Send a message via Skype™ to CoQuito
_Venganza_
Senior Member
Join Date: Apr 2011
Location: Valparaiso, Chile
Old 07-06-2011 , 22:10   Re: [ZP] Duda y Peticion [VIP]
#14

Siguen usando client_print en vez de ChatColor.
_Venganza_ is offline
matrix123
Veteran Member
Join Date: Feb 2011
Old 07-06-2011 , 23:24   Re: [ZP] Duda y Peticion [VIP]
#15

gracias venganza soy un pajero :$

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Rango V.I.P"
#define VERSION "1.0"
#define AUTHOR "Matrix"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say","HookSay"// hookeamos el say
    // Add your code here...
}

public 
HookSay(id)
{
new 
szArg[256// creamos la variable
read_args(szArgcharsmax(szArg)) // obtenemos lo que escribe la persona
remove_quotes(szArg// le quitamos las comillas al say
new name[32// creamos la variable
get_user_name(idname31// obtenemos el nombre

ChatColor(0,"!g[VIP] !team%s: %s"nameszArg)  // ahi reemplazamos el say por este
return PLUGIN_HANDLED// ponemos esto para que no aparezcan 2 mensajes 
}
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
 
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
 
    
new iPlayer;
     
    if (
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            
iPlayer players[i];
            if (
is_user_connected(iPlayer))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_SayText_iPlayer);
                
write_byte(iPlayer);
                
write_string(msg);
                
message_end();
            }
        }
    }

matrix123 is offline
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 07-06-2011 , 23:30   Re: [ZP] Duda y Peticion [VIP]
#16

¿Por qué siempre usan ese ChatColor feo y no este?
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
CoQuito
Senior Member
Join Date: Jul 2011
Location: Hempstead, New York
Old 07-07-2011 , 10:19   Re: [ZP] Duda y Peticion [VIP]
#17

Quote:
Originally Posted by matrix123 View Post
gracias venganza soy un pajero :$

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Rango V.I.P"
#define VERSION "1.0"
#define AUTHOR "Matrix"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say","HookSay"// hookeamos el say
    // Add your code here...
}

public 
HookSay(id)
{
new 
szArg[256// creamos la variable
read_args(szArgcharsmax(szArg)) // obtenemos lo que escribe la persona
remove_quotes(szArg// le quitamos las comillas al say
new name[32// creamos la variable
get_user_name(idname31// obtenemos el nombre

ChatColor(0,"!g[VIP] !team%s: %s"nameszArg)  // ahi reemplazamos el say por este
return PLUGIN_HANDLED// ponemos esto para que no aparezcan 2 mensajes 
}
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
 
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
 
    
new iPlayer;
     
    if (
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            
iPlayer players[i];
            if (
is_user_connected(iPlayer))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_SayText_iPlayer);
                
write_byte(iPlayer);
                
write_string(msg);
                
message_end();
            }
        }
    }

nada 4 errores xD!
lol matrix no sos un pajero Tranki
todos nos Equivocamos si o no ?
Saludos ;D
CoQuito is offline
Send a message via MSN to CoQuito Send a message via Skype™ to CoQuito
matrix123
Veteran Member
Join Date: Feb 2011
Old 07-07-2011 , 13:19   Re: [ZP] Duda y Peticion [VIP]
#18

wee ahi agarree el amx stuido ¬¬ la cosa no era que te lo de en bandeja sino que te de una idea

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

#define PLUGIN "Rango V.I.P"
#define VERSION "1.0"
#define AUTHOR "Matrix"

new g_SayText

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say","HookSay"// hookeamos el say
    
g_SayText get_user_msgid("SayText")
}

public 
HookSay(id)
{
    new 
szArg[256// creamos la variable
    
read_args(szArgcharsmax(szArg)) // obtenemos lo que escribe la persona
    
remove_quotes(szArg// le quitamos las comillas al say
    
new name[32// creamos la variable
    
get_user_name(idname31// obtenemos el nombre
    
    
ChatColor(0,"!g[VIP] !team%s: %s"nameszArg)  // ahi reemplazamos el say por este
    
return PLUGIN_HANDLED// ponemos esto para que no aparezcan 2 mensajes 
}
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
    
    
new iPlayer;
    
    if (
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            
iPlayer players[i];
            if (
is_user_connected(iPlayer))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_SayText_iPlayer);
                
write_byte(iPlayer);
                
write_string(msg);
                
message_end();
            }
        }
    }


este si anda ¬¬
matrix123 is offline
CoQuito
Senior Member
Join Date: Jul 2011
Location: Hempstead, New York
Old 07-07-2011 , 14:39   Re: [ZP] Duda y Peticion [VIP]
#19

Quote:
Originally Posted by matrix123 View Post
wee ahi agarree el amx stuido ¬¬ la cosa no era que te lo de en bandeja sino que te de una idea

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

#define PLUGIN "Rango V.I.P"
#define VERSION "1.0"
#define AUTHOR "Matrix"

new g_SayText

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say","HookSay"// hookeamos el say
    
g_SayText get_user_msgid("SayText")
}

public 
HookSay(id)
{
    new 
szArg[256// creamos la variable
    
read_args(szArgcharsmax(szArg)) // obtenemos lo que escribe la persona
    
remove_quotes(szArg// le quitamos las comillas al say
    
new name[32// creamos la variable
    
get_user_name(idname31// obtenemos el nombre
    
    
ChatColor(0,"!g[VIP] !team%s: %s"nameszArg)  // ahi reemplazamos el say por este
    
return PLUGIN_HANDLED// ponemos esto para que no aparezcan 2 mensajes 
}
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^4"); // Green Color
    
replace_all(msg190"!y""^1"); // Default Color
    
replace_all(msg190"!team""^3"); // Team Color
    
replace_all(msg190"!team2""^0"); // Team2 Color
    
    
new iPlayer;
    
    if (
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            
iPlayer players[i];
            if (
is_user_connected(iPlayer))
            {
                
message_begin(MSG_ONE_UNRELIABLEg_SayText_iPlayer);
                
write_byte(iPlayer);
                
write_string(msg);
                
message_end();
            }
        }
    }

este si anda ¬¬
Molestate que igual te amo <3
mi amoooor xD!
Gracias
jajajajaj me da mucha risa por que igual tira Errores en
invalid Funcion or Declaracion xD!
jajajjaja ok muchas gracias Dejalo asi lol !!
como 2 dias en este plugins xD!
matrix igual te amo <3

Last edited by CoQuito; 07-07-2011 at 14:42.
CoQuito is offline
Send a message via MSN to CoQuito Send a message via Skype™ to CoQuito
alk_del_boom
BANNED
Join Date: May 2012
Location: Santiago, Chile
Old 05-18-2012 , 00:45   Re: [ZP] Duda y Peticion [VIP]
#20

Quote:
Originally Posted by CoQuito View Post
Molestate que igual te amo <3
mi amoooor xD!
Gracias
jajajajaj me da mucha risa por que igual tira Errores en
invalid Funcion or Declaracion xD!
jajajjaja ok muchas gracias Dejalo asi lol !!
como 2 dias en este plugins xD!
matrix igual te amo <3
Disculpa pero yo lo probe y funca a la perfección!
otra cosa me podrias dar ese plugin o el .sma del que cuando hablas sale [Humano] [Zombie]
alk_del_boom is offline
Send a message via MSN to alk_del_boom
 



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


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