Raised This Month: $32 Target: $400
 8% 

help witch welcome_again.amx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
holyslap
Junior Member
Join Date: Mar 2004
Location: de_dust
Old 03-19-2004 , 07:09   help witch welcome_again.amx
Reply With Quote #1

Dont worker sound and players incomming.
Worked only admins, help please
Attached Files
File Type: sma Get Plugin or Get Source (welcome_again.sma - 1358 views - 1.8 KB)
holyslap is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-19-2004 , 19:33  
Reply With Quote #2

Try use different id's
Fox example:
set_task( 10.0 , "welcome" , (id+100) , param , 1 )
set_task( 17.0 , "admin" , (id+200) , param ,1 )
PM is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 03-19-2004 , 21:10  
Reply With Quote #3

Code:
public client_putinserver(id) {   if ( !is_user_bot(id) )   {     set_task( 10.0 , "welcome" , id)     set_task( 17.0 , "admin" , id)    } }
Which means you functions now use id instead of params ie public welcome(id)
T(+)rget is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-19-2004 , 22:08   Hey
Reply With Quote #4

Hey T(+)rget its nice to see you over here..
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
holyslap
Junior Member
Join Date: Mar 2004
Location: de_dust
Old 03-20-2004 , 04:12  
Reply With Quote #5

Quote:
Originally Posted by albo
Try use different id's
Fox example:
set_task( 10.0 , "welcome" , (id+100) , param , 1 )
set_task( 17.0 , "admin" , (id+200) , param ,1 )
dont work
holyslap is offline
holyslap
Junior Member
Join Date: Mar 2004
Location: de_dust
Old 03-20-2004 , 04:12  
Reply With Quote #6

Quote:
Originally Posted by T(+)rget
Code:
public client_putinserver(id) {   if ( !is_user_bot(id) )   {     set_task( 10.0 , "welcome" , id)     set_task( 17.0 , "admin" , id)    } }
Which means you functions now use id instead of params ie public welcome(id)
dont work
holyslap is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 03-20-2004 , 13:06  
Reply With Quote #7

Why are you using putinserver why not like this:

Code:
#if defined NO_STEAM public client_connect(id) #else public client_authorized(id) #endif { //CODE HERE }
T(+)rget is offline
BAILOPAN
Join Date: Jan 2004
Old 03-20-2004 , 13:19  
Reply With Quote #8

putinserver catches both, I'm assuming it's easier.

there are people like me that find such symbolic defines to be very unnecessary and they should only be used if needed

#if defined STEAM is definitely unnecessary... maybe in amxx core we should have is_steam() function?
__________________
egg
BAILOPAN is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 03-20-2004 , 13:42  
Reply With Quote #9

No wonder you code doesn't work because you are setting HUD messages which means as soon as client connects to server its trying to send the HUD message which is impossible since the client doesn't have the HUD until he has fully entered the server.

BAILOPAN:
It would be an idea to have automactic STEAM function or something to determine public client_connect(id) and client_authorized(id). I think that is 1 of the main forwards for scripters which was the main cause for using #DEFINE NO_STEAM
T(+)rget is offline
Reply


Thread Tools
Display Modes

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 17:06.


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