Skip to content
Permalink
Browse files
Update fancy.js (#812)
  • Loading branch information
FreakinsPL committed Aug 4, 2020
1 parent 3514c1d commit cf5dd7df74bf507498563b88d6172a096b0a0c79
Showing 1 changed file with 8 additions and 2 deletions.
@@ -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 });

@@ -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;
}
}
@@ -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);

0 comments on commit cf5dd7d

Please sign in to comment.