AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Join Massage (https://forums.alliedmods.net/showthread.php?t=303757)

F a R a Z 12-20-2017 07:39

Join Massage
 
I want One Source Code That Every Player Join The Game Open And Welcome
Thanks

Saint Sinner 12-20-2017 07:41

Re: Join Massage
 
Code:

#include <amxmodx>
#includ <amxmisc>

public client_putinserver( id )
set_task( 6.0, "welcome", id )

public welcome( id )
{
new name [ 32 ]
get_user_name( id, name, 31 )
set_hudmessage( 200, 100, 0, -1.0, 0.7, 0, 0.0, 3.0, _, _, -1 )
show_hudmessage( id, "Welcome to our server, %s", name )

return PLUGIN_HANDLED
}


CrazY. 12-20-2017 08:08

Re: Join Massage
 
Join "massage"? :lol:

Seta00 12-20-2017 09:31

Re: Join Massage
 
Moved to Suggestions/Requests.

Relaxing 12-20-2017 09:56

Re: Join Massage
 
Quote:

Originally Posted by CrazY. (Post 2567234)
Join "massage"? :lol:

Forgive him. He won't make grammar mistakes anymore.

Alber9091 12-20-2017 10:05

Re: Join Massage
 
PHP Code:

/*---------------------------------------------------------------------------
 |                  Welcome Message (v1.2)  © 2011                 |
 |                                                             |
 |              Plugin by Dusan (Uncut*) Stojadinovic                   |
 |                                        |
 |     Made 28. III 2011.             Contact - [email protected]    |
 ---------------------------------------------------------------------------*/

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "Welcome msg"
#define VERSION "1.2"
#define AUTHOR "Uncut*"


new gprefixautoserver


public plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_cvar("welcomemsg""1.2" , (FCVAR_SERVER|FCVAR_SPONLY))
    
register_cvar("uncut""1.0" , (FCVAR_SERVER|FCVAR_SPONLY))

    
gprefix register_cvar("amx_connect_prefix""Server")
    
auto register_cvar("amx_connect_auto""1")
    
server register_cvar("amx_connect_server""Ime servera")

 
}
public 
client_putinserver(id){
    
set_task(2.0"poruka"id__"a"1)
}
public 
poruka(id){
    new 
Ime[32]
    
get_user_name(idIme[id], 31)
        
    static 
prefix[10]
    
get_pcvar_string(gprefixprefix9)
        
    new 
hostname[55]
    
get_pcvar_string((get_cvar_pointer("hostname")), hostname54)
        
    new 
pserver[41]
    
get_pcvar_string(serverpserver40)
        
        
    if(
get_pcvar_num(auto) == 0)
        
ColorChat(id ,RED"^x04[%s]^x01 Pozdrav ^x03 %s ^x01 , Dobrodosao na ^x03 %s ^x01 | ^x04Uzivaj u igri ;)^x01"prefixIme[id], pserver )
    else
        
ColorChat(id ,RED"^x04[%s]^x01 Pozdrav ^x03 %s ^x01 , Dobrodosao na ^x03 %s ^x01 | ^x04Uzivaj u igri ;)^x01"prefixIme[id], hostname )
        
        
    return 
PLUGIN_HANDLED


Use Google Translate: Language Is Serbian/Bosnian/Crotian.

http://plugins.kgb-hosting.com/index...ceeab23ac83ec3

CrazY. 12-20-2017 13:31

Re: Join Massage
 
I'm just being sarcastic, besides, since when has this forum become Serbian, Bosnian or Crotian? I guess it's just English, isn't it?...

http://go.sevenidiomas.com.br/campin...-1-480x287.jpg

OciXCrom 12-20-2017 14:25

Re: Join Massage
 
PHP Code:

new Ime[32]
get_user_name(idIme[id], 31

I've seen some bad codes, but this... This is next level.

Alber9091 12-20-2017 16:11

Re: Join Massage
 
Quote:

Originally Posted by CrazY. (Post 2567311)
I'm just being sarcastic, besides, since when has this forum become Serbian, Bosnian or Crotian? I guess it's just English, isn't it?...

http://go.sevenidiomas.com.br/campin...-1-480x287.jpg

Well I don't know coding ..!! And What I Knew I Shared To Help ..!! Hence In Case, I also mentioned language in script + I also provided the actual link.

Alber9091 12-20-2017 16:12

Re: Join Massage
 
Quote:

Originally Posted by OciXCrom (Post 2567327)
PHP Code:

new Ime[32]
get_user_name(idIme[id], 31

I've seen some bad codes, but this... This is next level.


Hahaha, Neither I know coding! Nor I Made It, I Shared It, As It Is ..!!


All times are GMT -4. The time now is 20:35.

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