Skip to content

Commit

Permalink
Cruise Commands (#784)
Browse files Browse the repository at this point in the history
* Cruise Commands

Solving #783.

* Update CruiseCommands.pwn

* Update CruiseCommands.pwn
  • Loading branch information
Specifer committed Jul 22, 2020
1 parent 5a8a3e6 commit 87f90db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pawn/Features/Gameplay/Vehicles/Cruise/CruiseCommands.pwn
Expand Up @@ -91,6 +91,11 @@ class CruiseCommands {
if (cruiseLeaderId == Player::InvalidId)
return 1;

if (Player(cruiseLeaderId)->isNonPlayerCharacter()) {
SendClientMessage(playerId, Color::Error, "You can't assign NPC's as Cruise Leader");
return 1;
}

CruiseController->setCruiseLeader(cruiseLeaderId);

new message[128];
Expand Down

0 comments on commit 87f90db

Please sign in to comment.