"/q" not saving data
#9

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
Create separate variable for storing money, score etc. Increment/decrement their value whenever the the change is needed. Now use this variable in OnPlayerDisconnect(). Do not forget to reset them after saving it in OnPlayerDisconnect().

Storing money in variable also helps to detect money hack. As if player uses a money cheat GetPlayerMoney will return then money value at from client side which could be changed with help of a hack but the value stored in variable you made in script won't change as it is server sided.
Can you give me a example of a code for it?
Reply


Messages In This Thread
"/q" not saving data - by eikzdej - 24.01.2017, 01:47
Respuesta: "/q" not saving data - by Eloy - 24.01.2017, 02:06
Re: "/q" not saving data - by Loinal - 24.01.2017, 07:08
Re: "/q" not saving data - by Vince - 24.01.2017, 08:08
Re: "/q" not saving data - by eikzdej - 24.01.2017, 11:43
Re: "/q" not saving data - by saffierr - 24.01.2017, 11:50
Re: "/q" not saving data - by eikzdej - 24.01.2017, 11:56
Re: "/q" not saving data - by BroZeus - 24.01.2017, 15:40
Re: "/q" not saving data - by eikzdej - 24.01.2017, 21:27
Re: "/q" not saving data - by YouHack - 25.01.2017, 01:24

Forum Jump:


Users browsing this thread: 1 Guest(s)