AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   connect message exp (https://forums.alliedmods.net/showthread.php?t=11650)

stigma 03-25-2005 13:04

connect message exp
 
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.... :?

KCE 03-25-2005 14:01

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") }

stigma 03-25-2005 14:05

Ooh the brackets? -

Well that aint working... - there aint coming any connect/disconnect message....

KCE 03-26-2005 00:16

Only the player connecting will see the message.

v3x 03-26-2005 00:20

Code:
show_hudmessage(id,message)
:arrow:
Code:
show_hudmessage(0,message)


All times are GMT -4. The time now is 09:55.

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