Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 02:27:46 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: ULX groups and TTT
Pages: [1]
Author Topic: ULX groups and TTT  (Read 4632 times)
SwftOne
Poster

Posts: 28


« on: April 13, 2011, 08:20:11 PM »

Sorry if I sound retarded I'm not a coder by any means but I have my new ULX groups. And I would like to give them a custom load-out like I have for admins. Example for admins:

  if ply:IsAdmin() || ply:IsSuperAdmin() then
ply:Give( "weapon_ttt_M3" )

Only problem is when i do this with the new group *if ply:IsModerator* TTT doesn't know what to do with it. So I gotta go add it in somewhere problem is I don't know what line of code I should be searching for or where it is. So some assistance on finding this would be greatly appreciated. Any questions please ask.
Cush
Poster

Posts: 79


« Reply #1 on: April 13, 2011, 08:56:57 PM »

if ply:IsUserGroup("Moderator") then
      DoShit()
end

« Last Edit: April 13, 2011, 08:58:14 PM by Cush »
Handy_man
Poster

Posts: 308


SNG community admin


« Reply #2 on: April 13, 2011, 09:10:35 PM »

Honestly just to say this would be a bad idea to give certain weapons to certain users other then traitors, as well people will learn/ know the admins, moderators, superadmins etc. If there is a set group of people with a certain gun set and lots of dead bodies killed by that gun problems will arise.

[b]
Sky-netgaming.com
SwftOne
Poster

Posts: 28


« Reply #3 on: April 13, 2011, 09:18:16 PM »

if ply:IsUserGroup("Moderator") then
      DoShit()
end





awesome TY man I will try it out tmw I have some debugging to do with some other stuff tonight.
Cush
Poster

Posts: 79


« Reply #4 on: April 13, 2011, 09:24:44 PM »

Honestly just to say this would be a bad idea to give certain weapons to certain users other then traitors, as well people will learn/ know the admins, moderators, superadmins etc. If there is a set group of people with a certain gun set and lots of dead bodies killed by that gun problems will arise.


It was an example.
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #5 on: April 14, 2011, 04:29:51 AM »

if ply:IsUserGroup("Moderator") then
     DoShit()
end




if ply:IsUserGroup("moderator") then
    DoShit()
end

ULX groups have to be in lower-case letters. :)

Also, if someone is moderator it won't check if they're admin. Most likely he doesn't want just one specific group to be getting the weapon, but if he does just ignore the "or ply:IsAdmin()" ;O

Edit #2: Read the full post, snip'd the admin part. Lawl
« Last Edit: April 14, 2011, 04:32:28 AM by Mr. Gash »
SwftOne
Poster

Posts: 28


« Reply #6 on: April 15, 2011, 07:10:37 PM »

awesome worked great thank you guys!!!
Raneman
Poster

Posts: 219

Shitposter


« Reply #7 on: April 16, 2011, 04:04:24 PM »

Doing shit like this will make no one want to play on your server.
jake_Da_snake
Poster

Posts: 5


« Reply #8 on: April 16, 2011, 05:19:23 PM »

I've played in their server and its usually got alot of people there. So they must be doing something right.
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: ULX groups and TTT « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.008 seconds with 17 queries.