Permalink
Browse files

Added a prevention for /kill while spectating someone. Fixes #455.

  • Loading branch information...
xhoogland committed Feb 9, 2017
1 parent 53eda48 commit bcdb64de31d28c8e3c7e3f7170be1514ca12f1a7
Showing with 5 additions and 0 deletions.
  1. +5 −0 pawn/Resources/Callbacks/OnPlayer/OnPlayerCommandText.pwn
@@ -463,6 +463,11 @@ public OnPlayerCommandText(playerid, cmdtext[]) {
return 1;
}
if(PlayerSpectateHandler->isSpectating(playerid)) {
ShowBoxForPlayer(playerid, "You can't do this while spectating. Please stop spectating.");
return 1;
}
preventKillLamers[playerid] = 1;
SetPlayerHealth(playerid, 0.0);

0 comments on commit bcdb64d

Please sign in to comment.