Raised This Month: $ Target: $400
 0% 

[SOLVED] set_task in client_authorized


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
James
Senior Member
Join Date: Dec 2004
Old 08-31-2007 , 12:42   [SOLVED] set_task in client_authorized
Reply With Quote #1

Can I use set_task in client_authorized / putinserver methods? Doesnt work for me

Example: I want to type something on player console 5 sec after client connect to server.

I make:

Code:
public hello(id) {
      client_cmd(id,"echo hello")
}

public client_authorized(id) {
   set_task(5.0,"hello",id)
}
doesnt work.

When I use
Code:
public hello(id) {
      client_cmd(id,"echo hello")
}

public client_authorized(id) {
   hello(id)
}
It works (of course without delay what I need).

Can you help me please?
__________________
Do good things, and good things happen to you

Last edited by James; 09-01-2007 at 23:44.
James is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 08-31-2007 , 13:22   Re: set_task in client_authorized
Reply With Quote #2

try using either client_connect, or client_putinserver
__________________
toazron1 is offline
Send a message via AIM to toazron1
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 09-01-2007 , 19:28   Re: set_task in client_authorized
Reply With Quote #3

PHP Code:
public hello(id) {
      
client_cmd(id,"echo hello")
}

public 
client_putinserver(id) {
   
set_task(5.0,"hello",id)

__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
James
Senior Member
Join Date: Dec 2004
Old 09-01-2007 , 23:44   Re: set_task in client_authorized
Reply With Quote #4

thanks, putinserver works finally ;)
__________________
Do good things, and good things happen to you
James 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 18:21.


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