I'd like to ask if there's a way to check how long a player is playing in his current team on the current map?
#61
OFFLINE
Posted 03 January 2015 - 12:30 AM

#62
OFFLINE
Posted 03 January 2015 - 12:54 AM

#63
OFFLINE
Posted 03 January 2015 - 06:05 AM

I'd like to ask if there's a way to check how long a player is playing in his current team on the current map?
I'm interested, mind I'd I ask you what would you use this info for?

#64
OFFLINE
Posted 03 January 2015 - 11:35 AM

I don't know if there is such thing in the LUA (rather not), but we added a server cvar to show the real play time of the player, maybe this would help you.
http://mygamingtalk....#g_realPlayTime
EDIT1:
But you could write a lua plugin to track players time in each team, that is possible for sure.
#65
OFFLINE
Posted 03 January 2015 - 01:50 PM

I'm interested, mind I'd I ask you what would you use this info for?
I'd like to give extra XP bonus for every player of a winning team. Of course, to avoid jumping between teams at last seconds of the map just to get XP I'd like to check how long every player was a member of the team.
#66
OFFLINE
Posted 03 January 2015 - 05:32 PM

you may want to use this as reference: https://github.com/Z...aster/ZInfo.lua
The script it self isn't done, It is kind of on hold atm, probably some errors.
There I keep track of players team time, however I add it to their total , not just the maptime.
- Dragonji likes this
Also tagged with one or more of these keywords: lua, api, scripting
![]() |
Area 51 - Development Zone →
Enemy Territory Modding →
Get winning team during intermissionStarted by Zelly, 30 Jun 2016 ![]() |
|
![]() |
|
![]() |
LESM Discussion
Area 51 - Development Zone →
LESM - Lua Enhanced Server Mod →
ETPro Support in near futureStarted by Zelly, 04 Jun 2015 ![]() |
|
![]() |
|
![]() |
Area 51 - Development Zone →
silEnT Mod - Enemy Territory →
Support →
lua and max gs chars and queryclientcvarStarted by Zelly, 31 Mar 2015 ![]() |
|
![]() |
|
![]() |
Area 51 - Development Zone →
Enemy Territory Modding →
how to change where the lua is located?Started by twt_thunder, 15 Feb 2015 ![]() |
|
![]() |
|
![]() |
Area 51 - Development Zone →
silEnT Mod - Enemy Territory →
Support →
returning shrubbot clientcommandStarted by Zelly, 14 Feb 2015 ![]() |
|
![]() |
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users