disallow command unlockStats while ingame
This commit is contained in:
parent
764a565bde
commit
8d344dd578
@ -47,6 +47,12 @@ namespace Components
|
|||||||
|
|
||||||
void QuickPatch::UnlockStats()
|
void QuickPatch::UnlockStats()
|
||||||
{
|
{
|
||||||
|
if (Game::CL_IsCgameInitialized())
|
||||||
|
{
|
||||||
|
Toast::Show("cardicon_locked", "^1Error", "Not allowed while ingame.", 3000);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Command::Execute("setPlayerData prestige 10");
|
Command::Execute("setPlayerData prestige 10");
|
||||||
Command::Execute("setPlayerData experience 2516000");
|
Command::Execute("setPlayerData experience 2516000");
|
||||||
Command::Execute("setPlayerData iconUnlocked cardicon_prestige10_02 1");
|
Command::Execute("setPlayerData iconUnlocked cardicon_prestige10_02 1");
|
||||||
|
Loading…
Reference in New Issue
Block a user