Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Lua Question
Re: Lua Question [message #463458 is a reply to message #463298] Fri, 02 March 2012 09:30 Go to previous messageGo to previous message
iRANian is currently offline  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
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Veteran Plugin
Next Topic: Copyright question
Goto Forum:
  


Current Time: Thu Dec 12 02:06:28 MST 2024

Total time taken to generate the page: 0.00726 seconds