Raised This Month: $ Target: $400
 0% 

client_putinserver - respawn problem/explanation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-18-2017 , 08:18   Re: client_putinserver - respawn problem/explanation
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
PHP Code:
#include <hamsandwich>

#define TASK_RESPAWN 124253
#define TEAM_T      1
#define TEAM_CT    2

public client_putinserver(id)
{
       
remove_task(TASK_RESPAWN+id)
       
set_task(5.0"task_respawn"TASK_RESPAWN+id__"b")
}

public 
task_respawn(taskid)
{
       new 
id taskid TASK_RESPAWN;
       if((
1<<get_user_team(id)) & ((1<<TEAM_CT)|(1<<TEAM_T))
       {
                 
client_cmd(id"joinclass 5");
                 
ExecuteHamB(Ham_CS_RoundRespawnid)
                 
remove_task(taskid)
       }

I'd love to see you compiling that. Also you can just use 'id' for the task id.
__________________
edon1337 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 21:01.


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