Raised This Month: $ Target: $400
 0% 

connect message exp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 13:04   connect message exp
Reply With Quote #1

Okay i've maked a 'expansion' on that connect message script. And as usual i got errors...

Code:
#include <amxmodx> public client_putinserver(id) {   new UserName[33]   get_user_name(id, UserName, 32)   new message[64]   format(message,63,"%s has joined the game!",UserName)   set_hudmessage(100, 100, 100, 0.50, 0.50, 0, 6.0, 12.0, 1, 1, 1)   show_hudmessage(id,message) } public client_connect(id) {   new UserName[33]   get_user_name(id, UserName, 32)   new message[64]   format(Dmessage,63,"%s is connecting to the game!",Username)   set_hudmessage(100,100,100, 0.50, 0.50, 0, 6.0, 12.0, 1, 1, 1)   show_hudmessage(id,message) } public plugin_init(){   register_plugin("client_putinserver","1.0","stigma")   register_plugin("client_connect","1.0","stigma")   return PLUGIN_CONTINUE }

Please help....
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 03-25-2005 , 14:01  
Reply With Quote #2

Look at the changes and you'll see what's wrong.

Code:
#include <amxmodx> public client_putinserver(id) {     new UserName[33]     get_user_name(id, UserName, 32)     new message[64]     format(message,63,"%s has joined the game!",UserName)         set_hudmessage(100, 100, 100, 0.50, 0.50, 0, 6.0, 12.0, 1.0, 1.0, 1)     show_hudmessage(id,message) } public client_connect(id) {     new UserName[33]     get_user_name(id, UserName, 32)     new message[64]     format(message,63,"%s is connecting to the game!",UserName)         set_hudmessage(100,100,100, 0.50, 0.50, 0, 6.0, 12.0, 1.0, 1.0, 1)     show_hudmessage(id,message) } public plugin_init() {     register_plugin("client_connect","1.0","stigma") }
__________________

My 3D Art: http://k-c-e.deviantart.com/

[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]
KCE is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 14:05  
Reply With Quote #3

Ooh the brackets? -

Well that aint working... - there aint coming any connect/disconnect message....
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 03-26-2005 , 00:16  
Reply With Quote #4

Only the player connecting will see the message.
__________________

My 3D Art: http://k-c-e.deviantart.com/

[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]
KCE is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-26-2005 , 00:20  
Reply With Quote #5

Code:
show_hudmessage(id,message)

Code:
show_hudmessage(0,message)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



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


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