Author Topic: Banana Player - THE MOST CRUEL PUNISHMENT IN EXISTANCE (v1.000001)  (Read 14529 times)



Shoulda done eggplant instead.


%victim = findClientByName(%victim);
         if(isObject(%victim))
         {
            messageAll('', "\c4" @ %victim.name @ "\c6 has been Banana'd by \c4" @ %client.name @ "\c6.");
         
            %victim.player.unmountImage(1);
            %victim.player.mountImage(BananaModelImage,1);
         }
         else {
            messageClient(%client,'',"\c6Player doesn't exist."); }

it doesn't look like you check for a player...

Make it a playertype too, so we can have banana TDMs.



I use this for my RPG.. I don't think they are dangerous -- (Gets stabbed by a banana)

advance bot, what are the faces on those white guys?


%victim = findClientByName(%victim);
         if(isObject(%victim))
         {
            messageAll('', "\c4" @ %victim.name @ "\c6 has been Banana'd by \c4" @ %client.name @ "\c6.");
         
            %victim.player.unmountImage(1);
            %victim.player.mountImage(BananaModelImage,1);
         }
         else {
            messageClient(%client,'',"\c6Player doesn't exist."); }

it doesn't look like you check for a player...
What? It functions just fine

What? It functions just fine
you need to check if(isObject(%victim.player)) otherwise it will throw console errors when you try to do it to someone who doesn't have a player object

What? It functions just fine
you say "Player doesn't exist" when there is no client
You attempt to turn them into a banana even if there is no player

you need to check if(isObject(%victim.player)) otherwise it will throw console errors when you try to do it to someone who doesn't have a player object

<-- Not much of a scripter, clearly

I will fix now.

edit: fixed, thanks.
« Last Edit: October 29, 2013, 10:57:28 PM by Aware »

advance bot, what are the faces on those white guys?
Just a happy blockhead face. - Hopefully.


is this some kind of weird fad thing?

idk i saw something about turning people into bananas on some ign article comment section the other day.

More of a reward than a punishment IMO :P