PDA

View Full Version : Any way to check player score?


Lula
02-08-2004, 10:42 PM
Im currently trying to produce a mod that requires the player's score. I have already searched the forums and to no avail have found my answer. I am wondering how do I check the player's score when writing the code for my PK3 file?

Thanks in advance,
-Lula

Lula
02-09-2004, 07:47 PM
Anyone know anyway to check the player's score through the code?

Could i please get this moved to the file section as well?

Thank you.

Hammer
02-09-2004, 09:38 PM
The player's score is kept within differently depending on the gametype being run. For example, TDM keeps a player's kills and death in player.score and player.deaths, respectively. The SD/RE scripts to it a little differently. Check them out for additional information (particularly the PlayerKilled callback function). Team scores are kept internally by the game, but can be read/set via functions (getTeamScore/setTeamScore).

Lula
02-09-2004, 10:11 PM
Thank you very much. Also is it possible to send a discconect command to a client as a kick does?