Skip to content

Commit

Permalink
Update fancy.js (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
FreakinsPL authored Aug 4, 2020
1 parent 3514c1d commit cf5dd7d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions javascript/features/playground/commands/fancy.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ export default class FancyCommand extends Command {
pawnInvoke('RemovePlayerAttachedObject', 'ii', target.id, 0);

player.sendMessage(
Message.COMMAND_SUCCESS, target.name + ' is not fancy anymore :(.');
Message.COMMAND_SUCCESS, target.name + ' is not fancy anymore :(');
break;

case 'parrot':
case 'cow':
case 'shark':
this.fancy_.set(target, type);
this.onPlayerSpawn({ playerid: target.id });

Expand All @@ -57,7 +58,7 @@ export default class FancyCommand extends Command {
break;

default:
player.sendMessage(Message.COMMAND_USAGE, '/fancy [player] [none/cow/parrot]');
player.sendMessage(Message.COMMAND_USAGE, '/fancy [player] [none/cow/shark/parrot]');
break;
}
}
Expand All @@ -77,6 +78,11 @@ export default class FancyCommand extends Command {
0.12, 0.05, 0, 180, 270, 0, 1, 1, 1, 0xFFFFFF00, 0xFFFFFF00);
break;

case 'shark':
pawnInvoke('SetPlayerAttachedObject', 'iiiifffffffff', player.id, 0, 1608, 8,
-0.20, -2 , 0, 180, 270, 190, 1, 1, 1);
break;

case 'cow':
pawnInvoke('SetPlayerAttachedObject', 'iiiifffffffff', player.id, 0, 19833, 1,
-3.14, 0, 0, 180, 90, 0, 3.14, 3.14, 3.14);
Expand Down

0 comments on commit cf5dd7d

Please sign in to comment.