Re: Lua Question [message #463458 is a reply to message #463298] |
Fri, 02 March 2012 09:30 |
iRANian
Messages: 4308 Registered: April 2011
Karma:
|
General (4 Stars) |
|
|
It's better to store it in a HashTemplateClass (where the key is the player name), so the kills can be "saved" when the player leaves and restored when the player joins, you'll need to use the HashIterator class to remove all the values at level load or gameover in your HashTemplateClass.
But the FDS stores the kill count (in a similar way internally) in cPlayer::Kills so he'll just need to attach a script to all players and in ::Killed() check that variable for a number of 50 really.
Long time and well respected Renegade community member, programmer, modder and tester.
Scripts 4.0 private beta tester since May 2011.
My Renegade server plugins releases
|
|
|