![]() |
Online Time Variable
first off ill explain what im trying to do , then ill explain the trouble im having . shaded legend use to have an event prize that was called "noob detector" . this npc while touching another player generated a random number then show text next to the player you were touching . the text looked like this
"50% noob" as ive said the old one generated a random percentage number . what id like to do is make it check the players online time for this server . then depending on that , give a percentage . the problem im having is accessing that variable . ive tryed old code as well as new code to find it but ive been unsucessfull . id like to do it in new code but if i cant ill resort to GS1 . ive tryed playeronlinetime , onlinetime , playertime but i cant get the right number . has anyone tryed to access this variable and been sucessfull ? |
yes, I remember this, it's like player.onlinesecs or something
|
TServerPlayer.onlinetime
So you would use something like findplayer("Inverness").onlinetime |
Or simply player.onlinetime.
|
Sorry but is there a clientside version?
|
Quote:
|
Quote:
player.onlinetime = clientr.login_onlinetime + (timevar2 - this.login_timevar2); Serverside: clientr.login_onlinetime = player.onlinetime; Clientside: this.login_timevar2 = timevar2; It won't be perfectly precise (may vary by a few seconds), but close enough for what you plan to do I bet. |
ah its ok- I wondered if there was a global flag =p
thanks fp4 |
| All times are GMT +2. The time now is 09:24 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.