Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: D4rkR420R on Aug 24, 2017, 11:58 PM

Title: About onPlayerAwayChange.
Post by: D4rkR420R on Aug 24, 2017, 11:58 PM
onPlayerAwayChange, a function in which will tell whether the player paused his game or not with newStatus. The problem I'm having with this function is that it will set newStatus to true if the player had returned in the class selection. Isn't there a way to avoid this from happening? Your opinions will be greatly appreciated and looking for a great answer. Thank you.

Regards, DarkRaZoR^
Title: Re: About onPlayerAwayChange.
Post by: ℛḝξ☂ on Aug 25, 2017, 12:27 AM
add a condition: player.IsSpawned
Title: Re: About onPlayerAwayChange.
Post by: D4rkR420R on Aug 25, 2017, 02:38 AM
Quote from: Rest on Aug 25, 2017, 12:27 AMadd a condition: player.IsSpawned

You had made me my mouth smiled :D Thank you for your support and for your kindness. This issue is known as solved.