AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] set_task in client_authorized (https://forums.alliedmods.net/showthread.php?t=60302)

James 08-31-2007 12:42

[SOLVED] set_task in client_authorized
 
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?

toazron1 08-31-2007 13:22

Re: set_task in client_authorized
 
try using either client_connect, or client_putinserver

Reaper2331 09-01-2007 19:28

Re: set_task in client_authorized
 
PHP Code:

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

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



James 09-01-2007 23:44

Re: set_task in client_authorized
 
thanks, putinserver works finally ;)


All times are GMT -4. The time now is 23:02.

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