generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
18
_module/nss/reset_scores.nss
Normal file
18
_module/nss/reset_scores.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
////////////////////////////////////////
|
||||
// Reset Player Score //
|
||||
////////////////////////////////////////
|
||||
#include "rank"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
SetLocalInt (oPC,"iDied", 0);
|
||||
SetLocalInt (oPC,"iKilled", 0);
|
||||
PlaySound("gui_select");
|
||||
PCEffect(0.5, VFX_DUR_PIXIEDUST, oPC);
|
||||
DelayCommand(0.5, PlaySound("sce_neutral"));
|
||||
DelayCommand(2.0, PlaySound("sce_positive"));
|
||||
Message(2.0, "*** Your kills/deaths score has been reset ***", oPC);
|
||||
GetRank(oPC);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user