Permalink
Browse files

Disallow VIP room entrance when the player has been fighting

Fixes #398
  • Loading branch information...
RussellLVP committed Oct 30, 2016
1 parent 7e1b258 commit c56bd05336fdd5a2116e5932036d36fb8e8cdd4a
Showing with 5 additions and 0 deletions.
  1. +5 −0 pawn/Entities/Pickups/LegacyProcessing.pwn
@@ -103,6 +103,11 @@ LegacyOnPlayerPickUpPickup(playerid, pickupid)
playerVipRoomEntryTime[playerid] = 0;
if (GetPlayerTeleportStatus(playerid, 0 /* timeLimited */) != TELEPORT_STATUS_ALLOWED) {
SendClientMessage(playerid, Color::Red, "You cannot use this command because you have recently been in a fight.");
return 1;
}
if(chaseData[1] == playerid && chaseData[0] == 1)
{
// The chase is active, they're trying to escape to the VIP room..

0 comments on commit c56bd05

Please sign in to comment.