Raised This Month: $ Target: $400
 0% 

help :)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 04-30-2016 , 15:33   Re: help :)
Reply With Quote #2

Because you check if he is not alive but you don't check if he is connected.
You bassicaly are respawning a non connected player.

It confuses because if player is not connected then is_user_alive(id) will return false as it was connected but dead.
So use this instead in both respawn cases:

Quote:
if (!is_user_alive(Client) && is_user_connected(Client))

Last edited by siriusmd99; 04-30-2016 at 15:39.
siriusmd99 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 18:36.


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