ULX

Author Topic: Block Addons (Pills) for normal users  (Read 1630 times)

0 Members and 1 Guest are viewing this topic.

Offline jvicu_2001

  • Newbie
  • *
  • Posts: 3
  • Karma: -1
Block Addons (Pills) for normal users
« on: December 12, 2014, 08:05:16 AM »
Can I block Pills for normal users? How?

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: Block Addons (Pills) for normal users
« Reply #1 on: December 12, 2014, 08:41:39 AM »
Hello,
this is not the proper sub-forum, it should go into off-topic/developer discussion, in my opinion.

Anyways, you could do a simple if statement that checks if the player is admin that uses the pill, if not return. :)
Code: [Select]
if !ply:IsAdmin() then return end

But I do now know anything about the pills addon, unfortunatley.
Avoid

Offline jvicu_2001

  • Newbie
  • *
  • Posts: 3
  • Karma: -1
Re: Block Addons (Pills) for normal users
« Reply #2 on: December 12, 2014, 08:55:35 AM »
I'm new in this, how can i use this in a non-dedicated server?