Raised This Month: $ Target: $400
 0% 

client_putinserver - respawn problem/explanation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xTr3m3r
Member
Join Date: Feb 2010
Old 02-18-2017 , 07:22   client_putinserver - respawn problem/explanation
Reply With Quote #1

Its me again! (apparently)

So Im trying to add a task when a player joins my server to be automatically spawned after a few seconds but it seems that it bugs the whole hidenseek plugin and the plugins on the server doesnt work as supposed as well.

PHP Code:
public client_putinserver(plr)
{
    
g_bConnected[plr] = true;
    
g_bAlive[plr] = false;
    
g_bFirstSpawn[plr] = false;
    
        
set_task(5.0"TaskRespawn"plr); //this is what i added

    
return PLUGIN_CONTINUE;

Can somebody explain why I can't use set_task in client_putinserver and how can I make something similar to this? Thanks!

Last edited by xTr3m3r; 02-18-2017 at 07:24.
xTr3m3r is offline
 


Thread Tools
Display Modes

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