Raised This Month: $ Target: $400
 0% 

set_task problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 11-06-2005 , 09:46  
Reply With Quote #2

try this:
Code:
public level4(id)
    {
    new frags = get_user_frags(id)
    new death = get_user_deaths(id)
    if (frags > 59 && death <= 30)
        {
        new thing[64]
        get_cvar_string("offon",thing,63)
        new CsTeams:userTeam = cs_get_user_team(id)
        if (userTeam == CS_TEAM_T)
            {
            client_print(id,print_chat,"[MR]: Congrats!! You have reached Level 4!")
            cs_set_user_model(id, "leet_t")
            set_task(1.0, thing) // also tried like this but dint work
        }
        else if(userTeam == CS_TEAM_CT)
            {
            client_print(id,print_chat,"[MR]: Congrats!! You have reached Level 4!")
            cs_set_user_model(id, "leet_ct")
            set_task(1.0, thing) // I ALSO TRIED LIKE THIS BUT DINT WORK
        }
    }
}
a function will be called
name of function must be equal to what you stored in the CVAR "offon"
__________________
alias White Panther
karlos 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 23:36.


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