Raised This Month: $ Target: $400
 0% 

[ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente


  
 
 
Thread Tools Display Modes
Author Message
aagguuu
Senior Member
Join Date: Nov 2009
Old 12-23-2009 , 21:33   [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#1

Quiero que cuando alguien se conecte al server y elija ser TT o CT se auto envie sin que el quiera algo por el say. Pero que si todavia no elijio team que no se mande (osea que no haya elejido eqipo). Si pueden me dejan el codigo? Espero que alguien me ayude. Gracias
__________________
Scripting: 0% ):

[IMG]http://img340.**************/img340/7371/avrilagu.png[/IMG]


aagguuu is offline
Hasler
BANNED
Join Date: Jul 2009
Location: Argentina, Rosario
Old 12-23-2009 , 21:43   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#2

en este plugin cuando entras, si no elejiste ningłn team, osea ni ct ni tt no te manda el mensaje, pero por ejemplo si entras al sv y elegis uno de los 2 team a los 5 segundos te manda le mensaje

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

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id)
{
    
set_task(5.0,"mensaje",id)
}

public 
mensaje(id){
    if(
cs_get_user_team(id) == CS_TEAM_T)
    
client_print(id,print_chat,"soy re puto")
    else
         
client_print(id,print_chat,"soy re puto")

    return 
PLUGIN_HANDLED;

Hasler is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 12-23-2009 , 21:52   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#3

el 5.0 el jugador ni abrio el motd..
__________________
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
Zapdos1
BANNED
Join Date: Jul 2009
Location: Chile - La Serena
Old 12-23-2009 , 21:53   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#4

mejor ponerle un set_task de 1.0
Zapdos1 is offline
Hasler
BANNED
Join Date: Jul 2009
Location: Argentina, Rosario
Old 12-23-2009 , 21:54   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#5

y bue que le ponga 15.
Hasler is offline
aagguuu
Senior Member
Join Date: Nov 2009
Old 12-23-2009 , 22:15   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#6

Anda, el mensaje se manda, pero no lo manda como que vos escribiste en say "soy re puto" sino se manda como en el ad_manager pongas el mensaje "soy re puto" se manda asi suelto digamos. entendes?
__________________
Scripting: 0% ):

[IMG]http://img340.**************/img340/7371/avrilagu.png[/IMG]


aagguuu is offline
Hasler
BANNED
Join Date: Jul 2009
Location: Argentina, Rosario
Old 12-23-2009 , 22:27   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#7

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

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id)
{
    
set_task(10.0,"mensaje",id)
}

public 
mensaje(id){
    if(
cs_get_user_team(id) == CS_TEAM_T)
    {
    new 
yooo[32]
    
get_user_name(id,yooo,31)
    
ChatColor(id,"!team%s !y: soy re puto",yooo)
    }
    else
    {
    new 
yooo[32]
    
get_user_name(id,yooo,31)
    
ChatColor(id,"!team%s !y: soy re puto",yooo)
    }

    return 
PLUGIN_HANDLED;
}

stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4")
    
replace_all(msg190"!y""^1")
    
replace_all(msg190"!team""^3")
    
replace_all(msg190"!team2""^0")
    
    if (
idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }


Last edited by Hasler; 12-23-2009 at 22:29.
Hasler is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 12-23-2009 , 22:32   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#8

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

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id)
{
    
set_task(10.0,"mensaje",id)
}

public 
mensaje(id){
    if(
cs_get_user_team(id) == CS_TEAM_T)
    {
    new 
yooo[32]
    
get_user_name(id,yooo,31)
    
ChatColor(id,"!team%s !y: soy re puto",yooo)
    }
    else
    {
    new 
yooo[32]
    
get_user_name(id,yooo,31)
    
ChatColor(id,"!team%s !y: soy re puto",yooo)
    }

    return 
PLUGIN_HANDLED;
}

stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4")
    
replace_all(msg190"!y""^1")
    
replace_all(msg190"!team""^3")
    
replace_all(msg190"!team2""^0")
    
    if (
idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

Mega Fail.

Primero eso esta mal.
2do lo que pidio no era eso

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_event("TeamInfo""JoinTeam""a")
}

public 
JoinTeam()
{
    
client_print(read_data(1),"Entraste al server")

__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
MaNuCs
BANNED
Join Date: Oct 2009
Location: Venezuela
Old 12-23-2009 , 22:39   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#9

PHP Code:
public client_putinserver(id)
{
    
mensaje(id)
}

public 
mensaje(id)
{
    new 
usuario[32
    
get_user_name(id,usuario,31
    
ChatColor(0,"!team%s!y: Ajam Entre Yo, Preparen Ese Culo Ps!",usuario)
}

stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4")
    
replace_all(msg190"!y""^1")
    
replace_all(msg190"!team""^3")
    
replace_all(msg190"!team2""^0")
    
    if (
idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

Acuerdense De Poner En El Client Prin o Chat Color("0")
para que el mensaje lo lean todas las personas
MaNuCs is offline
Send a message via MSN to MaNuCs
Cisko94
Senior Member
Join Date: Oct 2009
Old 12-24-2009 , 01:56   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#10

Pero el creo que quiere que solo lo lea la persona que entra... o no??
__________________
100% Vago
100% vicio
50% loco
Cisko94 is offline
Send a message via Yahoo to Cisko94
 



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 14:55.


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