AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Quick "Welcome" script fix (https://forums.alliedmods.net/showthread.php?t=48036)

kmal2t 12-02-2006 20:35

Quick "Welcome" script fix
 
brawr

diamond-optic 12-02-2006 20:37

Re: Quick "Welcome" script fix
 
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);

kmal2t 12-02-2006 21:57

Re: Quick "Welcome" script fix
 
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>?

stupok 12-02-2006 22:09

Re: Quick "Welcome" script fix
 
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) }

The Specialist 12-02-2006 22:17

Re: Quick "Welcome" script fix
 
Quote:

Originally Posted by kmal2t (Post 410056)
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

kmal2t 12-03-2006 04:14

Re: Quick "Welcome" script fix
 
Works now except the player doesnt see it when coming in but everyone else does

stupok 12-03-2006 14:55

Re: Quick "Welcome" script fix
 
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) }

kmal2t 12-03-2006 17:34

Re: Quick "Welcome" script fix
 
Tnx, I forgot about just putting in a set_task. Works well now.

diamond-optic 12-03-2006 18:48

Re: Quick "Welcome" script fix
 
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...


All times are GMT -4. The time now is 06:51.

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