Raised This Month: $ Target: $400
 0% 

Quick "Welcome" script fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kmal2t
BANNED
Join Date: Apr 2006
Old 12-02-2006 , 20:35   Quick "Welcome" script fix
Reply With Quote #1

brawr

Last edited by kmal2t; 05-21-2007 at 04:32.
kmal2t is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 12-02-2006 , 20:37   Re: Quick "Welcome" script fix
Reply With Quote #2

why get the players list and go thru each one sending the same msg? when you can just send one message across the whole server...

also putting 'id' in the set_hudmessage is incorrect.. it starts with the red variable
Code:
native set_hudmessage(red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2,channel=4);
__________________

Last edited by diamond-optic; 12-03-2006 at 18:50.
diamond-optic is offline
Old 12-02-2006, 21:02
LittleDude
This message has been deleted by LittleDude. Reason: lol
kmal2t
BANNED
Join Date: Apr 2006
Old 12-02-2006 , 21:57   Re: Quick "Welcome" script fix
Reply With Quote #3

LoL, your code has an emoticon in it...can you please clarify what you mean for what should go where and put it in <small>?

Last edited by kmal2t; 12-02-2006 at 21:59.
kmal2t is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 12-02-2006 , 22:09   Re: Quick "Welcome" script fix
Reply With Quote #4

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Welcome","1.0","stupok69") } public client_putinserver(id) {     new name[32]     get_user_name(id, name, 31)     //red, green, blue, x position, y position, effects, effects time, hold time, fade in time, fade out time, channel     set_hudmessage(225, 0, 0, 0.05, 0.45, 0, 6.0, 6.0, 0.5, 0.5, -1)     //when id = 0 all players receive the message     show_hudmessage(0, "Welcome %s", name) }
stupok is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-02-2006 , 22:17   Re: Quick "Welcome" script fix
Reply With Quote #5

Quote:
Originally Posted by kmal2t View Post
LoL, your code has an emoticon in it...can you please clarify what you mean for what should go where and put it in <small>?
Oh amxmodx version 1.76b now supports emotioncon
The Specialist is offline
Send a message via AIM to The Specialist
kmal2t
BANNED
Join Date: Apr 2006
Old 12-03-2006 , 04:14   Re: Quick "Welcome" script fix
Reply With Quote #6

Works now except the player doesnt see it when coming in but everyone else does
kmal2t is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 12-03-2006 , 14:55   Re: Quick "Welcome" script fix
Reply With Quote #7

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Welcome","1.0","stupok69") } public client_putinserver(id) {     //when the user joins, wait 3.0 seconds, then execute show_welcome     set_task(3.0, "show_welcome", id) } public show_welcome(id) {     new name[32]     get_user_name(id, name, 31)     set_hudmessage(225, 0, 0, 0.05, 0.45, 0, 6.0, 6.0, 0.5, 0.5, -1)     show_hudmessage(0, "Welcome %s", name) }
stupok is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 12-03-2006 , 17:34   Re: Quick "Welcome" script fix
Reply With Quote #8

Tnx, I forgot about just putting in a set_task. Works well now.
kmal2t is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 12-03-2006 , 18:48   Re: Quick "Welcome" script fix
Reply With Quote #9

lol sorry it made it an emoticon automatically and wouldnt let me turn them off...

should have been pretty simple to realize what was supposed to be there...
__________________
diamond-optic 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 06:51.


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