Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Move organize command
Browse files Browse the repository at this point in the history
  • Loading branch information
marqdevx committed Mar 4, 2024
1 parent 19a914b commit 0edbdb9
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,17 +390,6 @@ CON_COMMAND_CHAT(myuid, "test")
ClientPrint(player, HUD_PRINTTALK, CHAT_PREFIX "Your userid is %i, slot: %i, retrieved slot: %i", g_pEngineServer2->GetPlayerUserId(iPlayer).Get(), iPlayer, g_playerManager->GetSlotFromUserId(g_pEngineServer2->GetPlayerUserId(iPlayer).Get()));
}


CON_COMMAND_CHAT(noflash, "noflash"){

if (!player || !g_bEnablePractice)
return;

no_flash_mode = !no_flash_mode;

ClientPrint(player, HUD_PRINTTALK, CHAT_PREFIX "Flash mode set to \04%i", no_flash_mode);
}

bool match_paused = false;
bool ct_ready = true;
bool t_ready = true;
Expand Down Expand Up @@ -459,6 +448,21 @@ CON_COMMAND_CHAT(unpause, "Request unpause")
g_pEngineServer2->ServerCommand("mp_unpause_match");
}

CON_COMMAND_CHAT(noflash, "noflash"){

if (!player || !g_bEnablePractice)
return;

if (!practiceMode){
ClientPrint(player, HUD_PRINTTALK, CHAT_PREFIX"Only available on practice mode");
return;
}

no_flash_mode = !no_flash_mode;

ClientPrint(player, HUD_PRINTTALK, CHAT_PREFIX "Flash mode set to \04%i", no_flash_mode);
}

CON_COMMAND_CHAT(spawn, "teleport to desired spawn")
{
if (!g_bEnablePraccSpawn)
Expand Down

0 comments on commit 0edbdb9

Please sign in to comment.