Author Topic: resize player  (Read 17158 times)

0 Members and 2 Guests are viewing this topic.

Offline bojan

  • Newbie
  • *
  • Posts: 4
  • Karma: 1
resize player
« on: March 05, 2010, 09:35:49 AM »
Ok here's my first ever release, and first dive into lua.

This gives you a command to resize players instead of just having a STool.

It took me a while to write because I thought every time I tried to call the ScalePlayer command it would crash, so I tried different things until finally trying to write the size manual to the sql table and it still crashed.. so I FINALLY realized the most obvious but nearly impossible to see mistake, I was running an infinite loop lol!(Isn't gmod supposed to catch these?)
So anyways, once I figured that out I had the thing running in 30 seconds.


Installation
Put the whole folder into your addons folder.

Usage
Console Command: ulx resize <user(s)> <size>
Chat Command: !resize <user(s)> <size>

Size is a whole number, in percent 100 being full size.
There are no limits on the max size, but 1 is minimum.

« Last Edit: March 05, 2010, 10:04:08 AM by bojan »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: resize player
« Reply #1 on: March 05, 2010, 02:41:14 PM »
Cool. Gmod does find some types of infinite loops, but not all of them. It's really up to you to determine if what you're doing will ever end.
Experiencing God's grace one day at a time.

Offline Magicnachoz

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: resize player
« Reply #2 on: August 26, 2010, 10:28:26 AM »
Um yeah where do I extract custom plugins like this

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: resize player
« Reply #3 on: August 26, 2010, 02:58:11 PM »
Um yeah where do I extract custom plugins like this
Installation
Put the whole folder into your addons folder.

If you don't understand that, please be more detailed with your question
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming