Raised This Month: $ Target: $400
 0% 

Say command print chat & set_task


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-03-2015 , 21:00   Re: Say command print chat & set_task
Reply With Quote #6

Quote:
Originally Posted by redivcram View Post
Use the for loop
I'm no pro, but this might help you... and remove the "set_task"s
No. A for loop will execute just as fast as multiples of the same command one after the other.

Quote:
Originally Posted by 4ever16 View Post
Solved it: client_cmd(0, "say_team B B B;wait;say_team B B B;wait;say_team B B B")
This will not work for anybody that is using cl_filterstuffcmd 1 FYI (and everybody should have this set to 1, IMO).

The proper way would be to use set_task() with engclient_cmd() like so:

PHP Code:
public function(id)
{
    
set_task(0.2"saycommand"id)
}

public 
saycommand(id)
{
    
engclient_cmd(id"say_team""lol")

__________________

Last edited by fysiks; 09-03-2015 at 21:01.
fysiks is offline
 



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 22:12.


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