Question
#3

Quote:
Originally Posted by Shetch
Посмотреть сообщение
I highly doubt of this code kicking a player falsely.

'Spawned[playerid] = 1' and 'SetPlayerHealth' are getting called on the same callback at the same time, so you would not get kicked.
Logically it seems that way, but the reason I ask is that even if SetPlayerHealth is called at the same time Spawned is set, if they have 1000 ping, what if the server check their health before the players client has received the SetPlayerHealth message.

-> SetPlayerHealth(playerid, ScriptHealth[playerd]);

<- Client has 1k ping and has not responded yet ...

-> Server continues execution and checks the players health anyway and kicks them because it thinks their health is still 100.0 (i think)
Reply


Messages In This Thread
Question - by gtaplayer1 - 24.01.2014, 10:38
Re: Question - by Shetch - 24.01.2014, 10:56
Re: Question - by gtaplayer1 - 24.01.2014, 11:01
Re: Question - by Threshold - 24.01.2014, 11:18
Re: Question - by Shetch - 24.01.2014, 11:27
Re: Question - by gtaplayer1 - 24.01.2014, 11:31
AW: Question - by Nero_3D - 24.01.2014, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)