Raised This Month: $ Target: $400
 0% 

Only when being terrorist or CT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-07-2010 , 22:06   Re: Only when being terrorist or CT
Reply With Quote #2

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")



PHP Code:
public doAction(id)
{
    if(
get_user_team(id) == 1)
    {
        
client_cmd(id,"say I'm a terrorist");
    }
    if(
get_user_team(id == 2)
    {
        
client_cmd(id"say I'm a CT");
    }



then call it where you want.
if you want it to loop every x amounts of seconds
PHP Code:
set_task(Time"Function"id_,_,_,b); //The b flag is the loop tag.

If No loop

set_task
(Time"Function"id); 
Doc-Holiday 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