Permalink
Browse files

Don't allow `/call` while playing a minigame

Fixes #378
  • Loading branch information...
RussellLVP committed Jan 8, 2017
1 parent b2d54ab commit 158190a77166d6cd7deaadfb95495c5f8ebf4d79
Showing with 5 additions and 0 deletions.
  1. +5 −0 pawn/Features/Gameplay/Communication/CallCommands.pwn
@@ -28,6 +28,11 @@ class CallCommands {
return 1;
}
if (IsPlayerInMinigame(playerId)) {
SendClientMessage(playerId, Color::Error, "You're currently playing a minigame and cannot use the phone.");
return 1;
}
if (CallManager->isCalling(playerId) == true || GetPlayerSpecialAction(playerId) == 11) {
SendClientMessage(playerId, Color::Error, "You're currently talking on the phone, use \"/hangup\" first.");
return 1;

0 comments on commit 158190a

Please sign in to comment.