Raised This Month: $ Target: $400
 0% 

Only when being terrorist or CT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
amxxlover
Junior Member
Join Date: Mar 2010
Old 03-07-2010 , 17:32   Only when being terrorist or CT
Reply With Quote #1

I try to make make clients who are in the terrorists or CT team say "I'm a terrorist or CT" when the doAction in the plugin is triggered or as soon they are terrorist or CT. When i use the below script clients who are not terrorist or CT say each 2 secconds "I'm a terrorist or CT". However these clients aren't terrorist or CT the "client_cmd(id,"say I'm a terrorists or CT")" line in the script is executed what shouldn't be happened if im right. Anyone can tell me what i did wrong or make a working script?

PHP Code:
public doAction(id)
{
    if ( 
get_user_team(id) != && get_user_team(id) != )
    {
        
set_task(2.0"doAction",id)
    }
    
client_cmd(id,"say I'm a terrorist or CT")


Last edited by amxxlover; 03-07-2010 at 17:34.
amxxlover 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 08:40.


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