Raised This Month: $ Target: $400
 0% 

Models and Set_task Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-03-2018 , 10:06   Re: Models and Set_task Help
Reply With Quote #1

Notice: set_task's 3rd param is equal to task's function first param 'public Model_check(id << this)', so if u set this 3rd param to 0, id will be 0
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 08-03-2018 at 10:07.
Ghosted is offline
RockyRock123
Junior Member
Join Date: Jan 2018
Old 08-03-2018 , 10:11   Re: Models and Set_task Help
Reply With Quote #2

A little More Explanation Plz.
:\
btw there are Many other set_tasks too
but
PHP Code:
#define TASK_MODEL 248600
public plugin_init()
{
set_task(5.0"Model_check"id+TASK_MODEL__"b")

as Cant Define id in plugin_init
so I tried it like this
PHP Code:
public Model_check(id)
{
set_task(7.0"Model_check"id+TASK_MODELCHECK__"b"
        if(
cs_get_user_team(id) == CS_TEAM_CT)
        {
        if(
user_Simon [id])
        {
            
cs_set_user_model(id"Simon")
        }
        else if(
Zombie_Day)
        {
            
cs_set_user_model(id"zombie")
        }
        else
        {
            
cs_set_user_model(id"guard")
        }
        }
        if(
cs_get_user_team(id) == CS_TEAM_T)
        {
            
cs_set_user_model(id"prisoners")
        }
            

but it also didnt work

Last edited by RockyRock123; 08-03-2018 at 10:14.
RockyRock123 is offline
Reply



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


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