Raised This Month: $ Target: $400
 0% 

[CSTRIKE] Player out of RANGE (0)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 01-04-2019 , 14:03   Re: [CSTRIKE] Player out of RANGE (0)
Reply With Quote #2

1. Maybe player left game before task was executed?
So you should use is_user_connected in checkdead
2. Use putinserver and not connect

Code:
public checkdead(id)
{
if(!is_user_connected(id) || is_user_alive(id))
return;

new Team = cs_get_user_team(id);

if (Team < 1 || Team > 2)
return;

/// Player is ready for spawning, your code here
}

EDIT (2): in set_task you should pass playerIndex (id) as task id, if you need infinity in set_task then you should use remove_task(id) in client disconnect/disconnected forward
__________________

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


Probably Left AM

Last edited by Ghosted; 01-04-2019 at 14:14.
Ghosted 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 17:01.


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