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


Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Hasler
BANNED
Join Date: Jul 2009
Location: Argentina, Rosario
Old 12-24-2009 , 02:00   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#11

Quote:
Originally Posted by Starsailor View Post
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")

Quote:
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?
pide lo que yo le deje y.y, agu probalo y decime si es esto

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)
    {
    new 
yooo[32]
    
get_user_name(id,yooo,31)
    
ChatColor(id,"!team%s !y: Prometo no wallearla ni pasar ips de otros servers",yooo)
    }
    else
    {
    new 
yooo[32]
    
get_user_name(id,yooo,31)
    
ChatColor(id,"!team%s !y: Prometo no wallearla ni pasar ips de otros servers",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-24-2009 at 02:16.
Hasler is offline
MaNuCs
BANNED
Join Date: Oct 2009
Location: Venezuela
Old 12-24-2009 , 03:25   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#12

Quote:
Originally Posted by Cisko94 View Post
Pero el creo que quiere que solo lo lea la persona que entra... o no??
facil si quiere que todo el mundo lo lea
ke ponga

0 = todos leen
id = solamente lo lee la persona k entra.
MaNuCs is offline
Send a message via MSN to MaNuCs
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 12-24-2009 , 08:13   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#13

Quote:
Originally Posted by Starsailor View Post

PHP Code:
#include <amxmodx>

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

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

Esto esta bien para cuando alguie entra al server?
__________________
Ciio is offline
Send a message via MSN to Ciio
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 12-24-2009 , 10:48   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#14

Quote:
Originally Posted by Ciio View Post
Esto esta bien para cuando alguie entra al server?
Es exactamente cuando el player elige ser de un team.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 12-24-2009 , 13:42   Re: [ES] Como hago que cuando alguien entre al sv diga en say algo automaticamente
#15

Quote:
Originally Posted by Alucard^ View Post
Es exactamente cuando el player elige ser de un team.
A ok...
__________________
Ciio is offline
Send a message via MSN to Ciio
Old 12-24-2009, 14:10
nicolazo103
This message has been deleted by nicolazo103. Reason: ya esta
 



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:42.


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